Re: [MiKTeX] Boustrophedon --- Changing writing direction
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: Hartmut H. <har...@gm...> - 2007-03-02 21:35:37
|
On Wed, 28 Feb 2007, Stephan Boehme wrote: > does anybody know of a MikTeX-Package that implements the > boustrophedon writing behaviour? Boustrophedon means that the writing > direction changes at every line, see also > http://en.wikipedia.org/wiki/Boustrophedon or > http://de.wikipedia.org/wiki/Boustrophedon. I'm especially interested > in a solution to use with German. just as a hint: you can play with PDF coordinate transforms. To show the principle, here is a plain TeX Boustrophedon example for pdftex that is a small modification to the \NumberParagraph macro from the book "Einf=FChrung in TeX", 3. ed., by Norbert Schwarz. Every even line is mirrored by the "... cm" transform. Maybe there is also some LaTeX package as basis that could be tweaked like this... Regards, Hartmut \long\def\NumberParagraph#1{% {\setbox1=3D\vbox{\advance\hsize by -20pt#1}% \vfuzz=3D10pt \splittopskip=3D0pt \count1=3D0 \par\noindent \def\rebox{% \advance\count1 by 1\relax \count2=3D\count1 \divide\count2 by 2 \multiply\count2 by 2 \hbox to 20pt{\strut\hfil\number\count1\hfil}% \nobreak \setbox2=3D\vsplit 1 to 6.1pt \ifnum\count1=3D\count2\relax \kern\hsize\kern-20pt \pdfliteral{-1 0 0 1 0 0 cm}% \rlap{\vbox{\unvbox2\unskip}}% \pdfliteral{-1 0 0 1 0 0 cm}% \else \vbox{\unvbox2\unskip}% \fi \hskip 0pt plus 0pt\relax}% \loop \rebox \ifdim\ht1>0pt \repeat \par}} \NumberParagraph{\noindent \input tufte } \bye |