MAJOR=4 MINOR=52 DEVNAME=tty52 Yˆäãë ‚tâÄè¼Y‹Õ˜]oÚ0†ïû+<_ìŽý  ™:Ri¨”"ši›¦©2±C¼9¦´ûõ3„BRÂV†•‰+âÃÉÉyì÷M,;ï¼Û¶ÿ­>ù7]Ðÿü±ÛiXAè‹ÝFÈó½ô�†U­!tÕƒFJMΚÍfÖ̶„!€"5Ž(Q’Ê"Š@÷È™ÇÜ#àDý ÅTLÝ'ô ˆ 1U #TWæ‚Ðû± Ó˜&ˆ`E+!OP,SJt³¡ƒÒûuE´,é yž?©¶GU}ó¢9<\Ÿ_J×QxÄ1ñTb]‡�G ‘A "]fcþ`�XŽU ~ï´oè<¤¢ùÝ®ƒA$i؂ڭÞÅm˃n�©ƒpqÎ�ι„n' èžYÈ(Ùš|—&ß±_Û ziŽG“@²‰b‚¯S‘FÌ¢"N&X³k‚Hf³Òò·ÙÀAn2ú—ƒ«žïué”�y‰uw;¬tûXR®€Ç$ ”�ÏKŠ´ä{>L&/C°ìQ²Q¤  @fî6å\Ìx–MÏ[!U(ä+�% ó€ZÁϺ›±lû¯ú­Wë'•j³R?Õæ¹m°%±f�]ï ¦è“ÊRù_ý·P+P›\‹¨²Zmï%ûg²B°ƒç*�¡)žî­Â�íÕ|”µÖËØЙÝ,y‘Ýç,µŽ˜ ÍãÿC´tÐ<¯äfFm§Çû³ìlŸ�±b�¹¯S6fÌnÚ%/ÒŠ g¥|ô0ßâ†B°ƒç*�¡!`ÚÁ^‹«ÞާÆÊŽŒÀX�Ò6|«Þ—fÊ��¼ÅÏÊûÎfºsÀ,9‰™R˜]æfNû=ˆR¯¬.Í`ÔK3JÚøÒ%™�YUK“ÕKëYŒC¥X Ê”žjÐÓOPÐòlÉA‹ó*¥'c¿+Ô| [ˆÝ�þ^‘ùVn2¶ˆ(ÜŒ€þì „eÁ6ßëÄè?÷[%D \module %D [ file=page-mix, %D version=2012.07.12, %D title=\CONTEXT\ Page Macros, %D subtitle=Mixed Columns, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \writestatus{loading}{ConTeXt Page Macros / Mixed Columns} %D This is a very experimental module. Eventually it will replace the current %D multi column mechanism (that then will be an instance). The \LUA\ part of %D the interface will quite probably change so don't use that one directly %D (yet). % todo: % % consult note class % notes per page % notes in each column % notes in last column % notes local/global % top and bottom inserts % wide floats % move floats % offsets (inner ones, so we change the hsize ... needed with backgrounds % when no content we currently loose the page % luatex buglet: % % \ctxlua{tex.setbox("global",0,node.hpack(nodes.pool.glyph("a",font.current())))}\box0 \registerctxluafile{page-mix}{} \unprotect %D The mixed output routine replaces the traditional multi column handler that %D started out in \MKII. One of the complications of a routine is that it needs %D to align nicely when mixed in a single column layout. Instead of using all %D kind of shift juggling in this mechanism we simply switch to grid mode %D locally. After all, columns don't look nice when not on a. As the grid %D snapper in \MKIV\ is more advanced not that much extra code is needed. %D We use the command handler but the parent settings are not to be changed. %D Instead we could have used a dedicated root setup, but it's not worth the %D trouble. \installcorenamespace{mixedcolumns} \installframedcommandhandler \??mixedcolumns {mixedcolumns} \??mixedcolumns % old multicolumns mechanism % % \c!ntop=1, % \c!rule=\v!off, : now separator=rule % \c!height=, % \c!blank={\v!line,\v!fixed}, % \c!rulethickness=\linewidth, % \c!offset=.5\bodyfontsize, \setupmixedcolumns [\c!distance=1.5\bodyfontsize, \c!n=\plustwo, %\c!align=, % inherit (also replaces tolerance) %\c!before=, %\c!after=, %\c!separator=\v!none, %\c!setups=, %\c!balance=\v!no, %\c!blank={\v!line,\v!fixed}, yes or no \c!frame=\v!off, \c!strut=\v!no, \c!offset=\v!overlay, \c!alternative=\v!local, \c!maxheight=\textheight, \c!maxwidth=\makeupwidth, \c!grid=\v!tolerant, \c!internalgrid=\v!line, \c!step=.25\lineheight, % needs some experimenting %\c!splitmethod=\v!fixed, % will be default \c!direction=\v!normal, % new (also todo in the new columnsets) \c!notes=\v!yes, \c!method=\ifinner\s!box\else\s!otr\fi] % automatic as suggested by WS \let\startmixedcolumns\relax % defined later \let\stopmixedcolumns \relax % defined later \appendtoks % could become an option \setuevalue{\e!start\currentmixedcolumns}{\startmixedcolumns[\currentmixedcolumns]}% \setuevalue{\e!stop \currentmixedcolumns}{\stopmixedcolumns}% \to \everydefinemixedcolumns %D In order to avoid a mixup we use quite some local registers. \newdimen \d_page_mix_column_width \newdimen \d_page_mix_max_height \newdimen \d_page_mix_max_width