I just want to come up with a rather general question regarding eledmac and typesetting verse. I am experimenting with that issue since while, but I wonder whether there is really a simple way to handle verse in eledmac. I want to typeset a critical edition of a text that is basically a mixture of prose and verse and I have serious problems to control the vertical space between the prose sections and the stanzas inbetween, or the space between a section of several verses. If I use the quotation environment, the space between the stanzas is too big or the line numbers and the text happen to be disarranged. Does anyone have experience with that? Other packages such as ednotes are far more tolerant in this regard, but have other general disadvantages wherefore I would like to stick to eledmac.

Edit (Wang Junqi)

This is to add MWE. I met almost the same problem with you. eledmac works pretty well in a file only consisting of proses. But in a mixture of verses and proses, line number is always disarranged and wrong. Sometimes as you said, the space between stanzas is too big or too small. I think it's a bug of eledmac.

\newfontfamily\sanskritfont{Times New Roman}
++++ contents

The result is as follows:

The line with number 30 should be line 31.

The line with number 30 should be line 31.

In quote 45, the space between stanzas is too big or small.

The space between stanzas is too big or small

It's obvious that the place of line number 15 is wrong.

It's obvious that the place of line number 30 is wrong.

  • Stick with eledmac. However, and I mean no offence by this, you have not really asked a question that can be answered (yet), only raised a vague complaint that is difficult to address without a minimal example (or see here). Can you provide a real example of the problem(s) you would like fixed? Changing vertical spacing between environments is normally trivial, but all the extra things eledmac either does or might need to worry about can sometimes make things tricky....
    – jon
    Commented Jun 20, 2014 at 1:58
  • yes, a mwe should be welcome. Vertical spacing with eledmac is always complex, because of the way eledmac is cutting line to allow numbering and such thing.
    – Maïeul
    Commented Jun 20, 2014 at 8:16
  • is it possible to have a MWE?
    – Maïeul
    Commented Jul 31, 2014 at 9:41
  • we are still waiting more detial.
    – Maïeul
    Commented Mar 17, 2015 at 15:14

1 Answer 1


You have to use the \stanza environment of eledmac.

I was able to do what you are trying to do by using the \stanza environment and by defining the \startstanzahookcommand to add space before the beginning of every verse, and the \endstanzaextra command to add space at the end. These are custom commands that are automatically executed at the beginning and end of every \stanza, respectively. I used XeLaTeX and fontspec for the diacritics.

\documentclass {article}







śāstrasyāsya praṇetāram abhyarhya sugatātmajam |&
vaktāraṃ cāsmadādibhyo yatiṣye 'arthavivecane ||\&

tatrāditaḥ śāstraśarīraṃ vyavasthāpyate

lakṣaṇaṃ hyāvṛtistattvaṃ pratipakṣasya bhāvanā |&
tatrāvasthā phalaprāptir yānānuttaryam eva ca ||1||\&

\noindent ityete saptārthā hyasmin śāstra upadiśyante | yaduta lakṣaṇam āvaraṇaṃ tattvaṃ pratipakṣasya bhāvanā tasyāmeva ca pratipakṣabhāvanāyām avasthāḥ phalaprāptiḥ yānānuttaryañ ca saptamo 'rthaḥ ||1||

tatra lakṣaṇam ārabhyāha---

abhūtaparikalpo 'sti dvayaṃ tatra na vidyate&
sūnyatā vidyate tvatra tasyāmapi sa vidyate ||2||\&



enter image description here

  • instead of adding \x you can just define \endstanzaextra. It's nice to you to have understood the question.
    – Maïeul
    Commented Mar 19, 2015 at 22:57
  • Ah! Yes, this is a better solution.
    – Paul
    Commented Mar 20, 2015 at 5:47
  • My answer has been updated accordingly.
    – Paul
    Commented Mar 21, 2015 at 14:30
  • Although, @Maïeul, I notice that when I try to define \startstanzahook and \endstanzaextra as above in a document made with two columns using eledpar, they do not take effect. Do you know the reason for this?
    – Paul
    Commented Mar 23, 2015 at 12:47
  • yes I know. It the same problem with hook from eledmac to eledpar : the hooks is called when the pstart is called, not when the \Columns or \Pages is called. Open an issue on github.
    – Maïeul
    Commented Mar 23, 2015 at 13:09

You must log in to answer this question.

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