4

I am trying to use eledpar to typeset paragraphs in two languages in parallel, in columns on the same page, but am having no success. Minimal working example:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[11pt,asymmetric]{article}
\usepackage{geometry}
\geometry{letterpaper}

\usepackage{eledmac}
\usepackage{eledpar}
\usepackage{lipsum}

\begin{document}

 \begin{pairs}
  \begin{Leftside}{\lipsum[1]}
  \end{Leftside}

  \begin{Rightside}{\lipsum[1]}
  \end{Rightside}
  \Columns
 \end{pairs}

\end{document}

Here is the output: enter image description here


Version and environment:

Mac OS: 10.8.4

eledmac:

revision:    31251
cat-version: 1.5/1.4
cat-date:    2013-07-20 17:09:33 +0200

Note: This issue was raised among several others in a post from 2011 but doesn't seem to have been answered there.

  • Try paracol package... – karlkoeller Aug 12 '13 at 6:16
  • Thanks, @karlkoeller. In the end I settled on longtable for my current project. But I would like to understand why what I have done with ledpar isn't working. – brannerchinese Aug 12 '13 at 10:04
8

The eledpar package must be used in combination with command of the eledmac package. These commands are :

  • \beginnumbering \endnumbering to set a numbered text.
  • \pstart \pend to set a unit. These unit are to be defined to allow to have the right //ism.

So, in your case

\begin{pairs}

\begin{Leftside}
    \beginnumbering
        \pstart
            \lipsum[1]
    \pend
    \endnumbering
\end{Leftside}

\begin{Rightside}  
    \beginnumbering
        \pstart
            \lipsum[1]
        \pend
    \endnumbering
\end{Rightside}
\Columns
\end{pairs}

See the ¶ 2.1 of eledpar documentation.

  • So these are not optional. I had assumed that since I don't want numbering, I could just omit them, but now I see (actually in ¶ 2 of the docs), that only numbered text is set in parallel. That had not been clear at all! – brannerchinese Aug 12 '13 at 17:37
  • If you don't want numbering, you can use the option \numberlinefalse (see ¶3.1 of the eledmac documentation). But the pstart system is need to have the right //ism ... and the pstart system need beginnumbering. – Maïeul Aug 12 '13 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.