我正在尝试做的事情:
eledmac
我正在尝试使用/和对开页创建文档eledpar
。左页包含注释文本covington.sty
,右页包含散文翻译。
由于每行注释文字占据两行文本的空间,因此正确的文本没有对齐。
我理想中的情况是:
.……………………………………………………………………………………………………………………………………………………………………….
| | |
| Left Page | Right Page |
| | |
| 1 foreign words here | running translation goes 1R |
| glossed words here | here and continues etc. 2R |
| 2 more foreign text | |
| more glossed text | |
| 3 next chunk of text | running translation of 3R |
| next gloss of text | next chunk here. 4R |
| | |
= = =
我乐意接受的是:
(因为如果不欺骗 eledpar 让它认为这些线在左边,那么可能无法让它在右边添加额外的线!)
.……………………………………………………………………………………………………………………………………………………………………….
| | |
| Left Page | Right Page |
| | |
| 1 foreign words here | running translation goes 1R |
| glossed words here | here and continues etc. 2R |
| 3 more foreign text | |
| more glossed text | |
| 5 next chunk of text | running translation of 3R |
| next gloss of text | next chunk here. 4R |
| | |
= = =
梅威瑟:
%!TEX program = xelatex
\documentclass{book}
\usepackage{fontspec}
\setmainfont{Hoefler Text}
\usepackage{eledmac,eledpar}
\linenumincrement*{1}
\firstlinenum*{1}
\usepackage{covington}
\newcommand\ml{\gll}
\newcommand\mll{\gln \glend \smallskip}
\newcommand\nl{\mll \ml}
\newenvironment{itside}{%
\begin{Leftside}%
\beginnumbering%
}{%
\endnumbering%
\end{Leftside}%
}
\newenvironment{engside}{%
\begin{Rightside}%
\beginnumbering%
}{%
\endnumbering%
\end{Rightside}%
}
\begin{document}
\beforeeledchapter
\begin{pages}
\begin{itside}
\pstart
\ml Imbelli Dei! su via, scagliate il vostro
cowardly gods up away throw the your
\nl più fatale rigor! Non pave l'alma.
most deadly severity not fears the.soul
\nl Se costretto son io, fra vili spoglie,
if constrained am I in vile clothes
\nl errar fra queste selve,
to.stray through these woods
\nl profugo e sconosciuto,
fugitive and unknown
\nl un dì saprò punir de' miei vassali
one day I.will.know to.punish of.the my vassals
\nl i ribelli tumulti, indi più fiero,
the rebel riots then more proud
\nl ascenderò sul trono,
I.shall.ascend on.the throne
\nl se Licaon e re d'Arcadia io sono.
if Lycaon and King of.Arcadia I am
\mll \pend
\pstart
\textbf{Some non-glossed text here}
\pend
\pstart
\ml Oh quanto bella gloria
oh how beautiful glory
\nl è quella del cacciator.
is that of.the hunter
\nl Ha sempre la vittoria,
has always the victory
\nl né vinto è dall'amor.
nor defeated is by.love
\mll \pend
\end{itside}
\begin{engside}
\pstart
Cowardly Gods! arise, throw your deadliest severity at me!
My soul is not afraid. If I am forced to wander through these woods in vile clothes,
fugitive and unknown, one day I will know how to punish the rebellious rioting of my vassals,
and then, with greater pride, I shall ascend to the throne, if I am Lycaon and King of Arcadia.
\pend
\pstart
\textbf{This should line up with the non-glossed text}
\pend
\pstart
Oh how beautiful is the glory of the hunter. He always has victory, nor is he defeated by love.
\pend
\end{engside}
\end{pages}
\Pages
\end{document}
我曾尝试将一些行打印/处理宏添加到eledpar
我的便利宏中\mll
,但它们似乎没有任何效果。
我应该做什么?
任何帮助都感激不尽!