Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The ledmac/-par manual says that I may use \startstanzahook to get extra space between stanzas. But it works only in normal verses an not in parallel typsetting. The following example may give a better idea what I mean:

% XETEX-DOCUMENT
\documentclass{scrartcl}
\usepackage{xltxtra}
\usepackage{ledmac,ledpar}
    \maxchunks{100}
    \newcommand*{\startstanzahook}{\vspace{\baselineskip}}
\begin{document}
% works (vspace between stanzas):
\beginnumbering
\setstanzaindents{2,0,0}
\stanza 
    Non ego Caesareas, non arma virumque, & 
    sed chitaram plectrumque cano nec inutile numen 
\& 
\stanza 
    Doctus in Arcadiis vivebat musicus oris, & 
    clarus circa urbes et famae voce lyraeque.
\&
\endnumbering

% doesn't work (no vspace):
\begin{pages}
\begin{Leftside}
    \beginnumbering
    \setstanzaindents{2,0,0}
    \stanza 
        Non ego Caesareas, non arma virumque, & 
        et lyricam poterit, nisi centum vocibus, artem? 
    \& 
    \stanza 
        Doctus in Arcadiis vivebat musicus oris, & 
        vicina quondam late celebratus in urbe 
    \& 
    \endnumbering
\end{Leftside}
\begin{Rightside}
    \beginnumbering
    \setstanzaindents{2,0,0}
    \stanza 
        Non ego Caesareas, non arma virumque, & 
        et lyricam poterit, nisi centum vocibus, artem? 
    \& 
    \stanza 
        Doctus in Arcadiis vivebat musicus oris, & 
        vicina quondam late celebratus in urbe 
    \& 
    \endnumbering
\end{Rightside} 
\Pages 
\end{pages} 
\end{document}

Is there any way to instert extra space between stanzas in parallel-mode?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

The trick is to include the material to be inserted between the stanzas into a seperate \pstart ... \pend construct, otherwise it won't be processed by the delayed output routine of ledpar. So you'll have to replace

\newcommand*{\startstanzahook}{\vspace{\baselineskip}}

by

\def\endstanzaextra{\pstart\skipnumbering\strut\pend}

in order to add one extra line between the stanzas (with the \strut macro). Note that this hook triggers at the end of each stanza, not at the beginning. This is because the extra line is included in the line numbering by default - in order to avoid this, \skipnumbering is called, which is only possible at the end of the stanza.

share|improve this answer
    
Thank you very much! That works. I wonder why something like that isn’t mentioned in the manual—or did I overlook something? –  Tobi Apr 19 '11 at 18:44
    
@Tobi Well, I found this solution with the help of example A.3 (p. 82-86) in the ledpar manual where \endstanzaextra is used in order to insert a dash between the stanzas. I fear, however, that you can only find it there if you're explicitly looking for it... It would be worth mentioning it directly, especially because the trouble with ledpar is that you never know which features of ledmac still work and which don't. –  diabonas Apr 19 '11 at 18:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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