12.07.2015 Views

TEX pour l'Impatient - Apprendre en ligne.net

TEX pour l'Impatient - Apprendre en ligne.net

TEX pour l'Impatient - Apprendre en ligne.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24 Sep 2004 2:48 p.m.<strong>TEX</strong> <strong>pour</strong> l’Impati<strong>en</strong>t N o 342320 Un abrégé de macros utiles \ §12\previousoutput = \expandafter{\the\output}\advance\doublecolumnhsize by -\gutter\divide\doublecolumnhsize by 2\output = {\global\setbox\@partialpage =\vbox{\unvbox255\vskip\abovedoublecolumnskip}}%\pagegoal = \pagetotal \break % Expands \output above.\output = {\doublecolumnoutput}%\singlecolumnhsize = \hsize\singlecolumnvsize = \vsize\hsize = \doublecolumnhsize \vsize = 2\vsize}%Le macro \@doublecolumnsplit fait le dédoublem<strong>en</strong>t réel. On supposeque le source est insérée <strong>en</strong> colonne simple. Si vous ne voulez pas quecela soit le cas, vous devrez modifier la routine de résultat. Après que\@doublecolumnsplit ait effectué son travail, \box255 aura le matériel<strong>en</strong> double colonne. Le matériel <strong>en</strong> double colonne sera précédé parn’importe quel matériel <strong>en</strong> colonne simple qui aura été composé avantque \doublecolumns ait été appelé. \box4 aura le matériel qui ne s’estpas adapté à la page.\def\@doublecolumnsplit{%\splittopskip = \topskip \splitmaxdepth = \maxdepth\dim<strong>en</strong>0 = \singlecolumnvsize\advance\dim<strong>en</strong>0 by -\ht\@partialpage\advance\dim<strong>en</strong>0 by -\ht\footins\advance\dim<strong>en</strong>0 by -\skip\footins\advance\dim<strong>en</strong>0 by -\ht\topins\begingroup\vbadness = 10000\global\setbox1=\vsplit255 to \dim<strong>en</strong>0 \wd1=\hsize\global\setbox3=\vsplit255 to \dim<strong>en</strong>0 \wd3=\hsize\<strong>en</strong>dgroup\global\setbox4=\vbox{\unvbox255\p<strong>en</strong>alty\outputp<strong>en</strong>alty}%\global\setbox255=\vbox{\unvbox\@partialpage\hbox to \singlecolumnhsize{\box1\hfil\box3}%\vfill}}%\doublecolumnoutput est la routine de sortie réelle. Nous appelonsl’anci<strong>en</strong>ne \output <strong>pour</strong> faire le travail de sortie de la boîte.\def\doublecolumnoutput{\@doublecolumnsplit\hsize = \singlecolumnhsize \vsize = \singlecolumnvsize\previousoutput \unvbox4}%\singlecolumn repr<strong>en</strong>d la composition <strong>en</strong> une colonne. Il suppose que\doublecolumns a été appelé.\def\singlecolumn{\par % Don’t start in horizontal mode.\output = {\global\setbox1 =

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!