Post by PanglossVorrei realizzare un documento bilingue (twocolumn-landscape) scrivendo
nelle due colonne in modo da mantenere i testi corrispondenti
affiancati. Come conviene procedere?
Puoi provare ad usare un vecchio stile che avevo scritto diverso tempo fa
quando ancora mi occupavo di latex (la gioventu'... ;-) ) Era scritto per
latex 2.09, quindi potrebbe entrare in conflitto con altri stili, ma se
funziona e' molto semplice...
Ciao, Mauro
%%% ======================================================================
%%% @LaTeX-style{
%%% filename = "multicolpar.sty",
%%% version = "1.2",
%%% date = "31 March 1992",
%%% time = "16:26:52.89 EST",
%%% author = "Mauro Orlandini",
%%% address = "NASA/Goddard Space Flight Center - Code 666.0
%%% Laboratory for High Energy Astrophysics
%%% Greenbelt, MD 20771 - USA",
%%% e-mail = "***@lheavx.gsfc.nasa.gov (Internet)
%%% ***@lheavx.span.nasa.gov (Bitnet)
%%% 15426::ORLANDINI (DECnet)",
%%% telephone = "(301) 286-1128",
%%% FAX = "(301) 286-9240",
%%% supported = "yes",
%%% archived = "SHSU*",
%%% keywords = "LaTeX",
%%% abstract = "This LaTeX style file writes different paragraphs
%%% in different columns, the number of which is a
%%% free parameter.",
%%% codetable = "ISO/ASCII",
%%% checksum = "30097 100 367 4491",
%%% docstring = "This style can be useful for translated articles,
%%% in which there is the original language in the
%%% first column and the translated version in the
%%% second. This version has been modified by
%%% Max Hailperin <***@nic.gac.edu>
%%% Sintax: \begin{multicolpar}{N}
%%% ... text ...
%%% \end{multicolpar}
%%% where N is the number of columns in which the text
%%% will be displayed.
%%% WARNING: Inside the environment, each blank line
%%% (ie a \par) will correspond to a
%%% paragraph, therefore do not leave blank
%%% lines soon after the \begin command and
%%% soon before the \end command (unless you
%%% want this effect).
%%% Version 1.2: added the following parameters:
%%% \multicolparsep: length which specifies the
%%% horizontal separation between columns
%%% (default 2em)
%%% \multicolparskip: length which specifies the
%%% vertical separation between paragraphs
%%% (default \baselineskip)
%%%
%%% ======================================================================
\typeout{Style Option: `multicolpar' v1.2 <31 Mar 1992> (MO)}
\newcount\columnsleft \newcount\totalcolumns
\newdimen\multicolparsep \newdimen\multicolparskip
\multicolparsep=2em \multicolparskip=\baselineskip
\newenvironment{multicolpar}[1]{\begin{trivlist}\item[]%
\multicolumnparallelparagraphs{#1}{\multicolparsep}}%
{\endmulticolumnparallelparagraphs\end{trivlist}}
\def\multicolumnparallelparagraphs#1#2{%
\hbadness5000 \vbadness9999 \tolerance9999 \parindent=0pt
\totalcolumns=#1 \let\xpar=\par
\vskip\parskip
\columnsleft=#1\relax
\hbox to\hsize\bgroup
\let\par\nextmulticolumnparallelparagraph
\dimen0=#2\advance\hsize-\columnsleft\dimen0
\advance\hsize\dimen0
\divide\hsize\columnsleft\relax
\vtop\bgroup}
\def\nextmulticolumnparallelparagraph{%
\egroup
\advance\columnsleft-1
\ifnum\columnsleft>0
\hfil\vtop\bgroup
\else
\egroup
\xpar\vskip\multicolparskip\xpar
\multicolumnparallelparagraphs\totalcolumns\multicolparsep
\fi}
\def\endmulticolumnparallelparagraphs{%
\egroup
\advance\columnsleft-1
\ifnum\columnsleft>0
\hfil\vtop\bgroup\hbox to \hsize{}
\endmulticolumnparallelparagraphs
\else
\egroup
\xpar
\fi}
\endinput