6

I am a Chinese plain TeX user and also a beginner. Now I encounter a hard question, that is

I must write some numbered English paragraphs at the left column and its corresponding Chinese translations at the right column which have the same number with the English one. The first lines of the English paragraph and its corresponding Chinese translations should be located at the same horizontal line.

Here is an example if I can't explain this question clearly: enter image description here

My method to solve this problem is using \halign with two \vtop, but it can't span pages or produce overfull, underfull \vbox.

\newcount\mycount
\mycount=1
\bigskip
\halign{\tabskip=.5in
        \vtop{\hsize=3in\noindent\number\mycount.\enspace#}&
        \tabskip=0pt\vtop{\hsize=3in
        \noindent\romannumeral\mycount.\enspace#\global\advance\mycount by1}\cr
        ...}

so ugly it is :-(

Anyone else has a better solution?

3

1 Answer 1

3

You may be interested in parallel package.

\documentclass[a4paper]{article}
\usepackage{parallel}
\usepackage{lipsum} %% dummy text
\usepackage{microtype} %% Just for my taste
\usepackage{enumitem}
%%%--------------- set a newlist for english--------------------
\newlist{eng}{enumerate}{1}
\setlist[eng]{align=left,itemindent=2.5em,leftmargin=0pt,
rightmargin=.51\textwidth,label=\textbf{\arabic*.}}
%%%--------------- set a newlist for chinese --------------------
\newlist{chin}{enumerate}{1}
\setlist[chin]{align=left,itemindent=2.5em,leftmargin=.51\textwidth,
rightmargin=0pt,label=\textbf{\roman*.}}
%%----------------------------------------------------------
\begin{document}
\begin{Parallel}{.49\textwidth}{.49\textwidth}
\ParallelLText{%
\begin{eng}[series=english]
\item \lipsum[1]
\end{eng}
}%
\ParallelRText{%
\begin{chin}[series=chinese]
\item \lipsum[2]
\end{chin}
}%
\ParallelPar
\ParallelLText{%
\begin{eng}[resume*=english]
\item \lipsum[3]
\end{eng}
}%
\ParallelRText{%
\begin{chin}[resume*=chinese]
\item\lipsum[4]
\end{chin}
}%
\ParallelPar
\ParallelLText{%
\begin{eng}[resume*=english]
\item \lipsum[5]
\end{eng}
}%
\ParallelRText{%
\begin{chin}[resume*=chinese]
\item\lipsum[6]
\end{chin}
}%
\ParallelPar
\ParallelLText{%
\begin{eng}[resume*=english]
\item \lipsum[7]
\end{eng}
}%
\ParallelRText{%
\begin{chin}[resume*=chinese]
\item\lipsum[10]
\end{chin}
}%
\end{Parallel}
\end{document}

enter image description here

5
  • Nice, but one inconvenient is that you have to hardcode the numbers...
    – jub0bs
    Mar 18, 2013 at 2:20
  • @Jubobs: No more hard coding :-)
    – user11232
    Mar 18, 2013 at 7:59
  • 1
    Please note the plain-tex -tag.
    – morbusg
    Mar 18, 2013 at 8:27
  • Harish, I have read the codes of this package today and gotten the main idea. Now I have realized a tiny edition for my purpose by using palin tex. You advice is very useful for me.
    – yanpengl
    Mar 18, 2013 at 10:12
  • @morbusg Uh! Didn't see that. Any how I am not good in TeX. Keep it a secret ;-)
    – user11232
    Mar 18, 2013 at 11:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .