I need to do an interlinear text. If I understood the problem correctly, I need a macro or format that will treat each word as a three-story fraction. Top store, a number reference, mid store one language,low store another language. But those fractions , as words, must have in the middle store, to be connected,separated with, commas,, colons, etc. And the line is to be justified, so the size of word will influence the size of the line, a decision is to be made on how to justify. do not know if I have been clear.There will be cross references to footnotes, also. Well, page section and cross references do not appear to be very difficult. What seems critical is that "semi-mathematical" treatment of the three-story words... I imagine context or xetex/xelatex to be adequate, but...I expect proper advice

  • I don't quite understand. I think I would have to see a picture. Feb 10 '12 at 1:54
  • 4
    Possibly like this one? Feb 10 '12 at 2:52

Depending on your actual needs, this looks very much like the kind of job for the expex package.

The ExPex package provides very sophisticated glossing macros which should do what you need. Here's an example from the documentation:


Hom\^{a}o sa \v{c}\^{o} p\^{o} tha  \~{n}u nao ng\u{a} hmua. \~{N}u
dj\u{a} g\u{a}, \~{n}u dj\u{a} \v{c}\u{o}ng \~{n}u, laih gui r\^{e}o
\~{n}u. Todang bboi r\^{o}k jolan \~{n}u nao hma, \~{n}u bb\^{o}h sa
droi mr\u{a} d\u{o} bboi gah, a, hruh \~{n}u.//
\\{exist} one \\{clf} person old \\{3s} go do field \\{3s} hold
machete \\{3s} hold hoe \\{3s} and carry.on.back back.basket \\{3s}
while at along trail \\{3s} go field \\{3s} see one \\{clf} peacock
stay at \\{drct} -- nest \\{3s}//
`There was an old person who went to work in the field. He took
along his machete, he took along his hoe, and he carried his
basket on his back. While he was on his way to the farm, he saw a
peacock beside its nest.'//


Output of code

  • Thank you, Alan. Please, let me bother you a little more asking you to peep into www.bibliaapostolica.com and www.apostolicbible.com. The top line of each word is a code number or an asterisk, if it is a proper name. Then Greek, and then the target language. Feb 23 '12 at 13:09
  • Is there a way to not italicize the first row?
    – alvas
    Sep 3 '15 at 16:29
  • How do I remove the indexing? Or substitute it with a string label, like Example 1?
    – alvas
    Sep 3 '15 at 16:40

Isn't this a linguistic question? Jürgen Fenn maintains a topic catalogue of packages on CTAN. It is always usefull to start there. For linguistic packages see here: http://texcatalogue.sarovar.org/bytopic.html#linguistics

However, I remember discussions here in Germany. In 2008, somebody published on PSTricks for linguistic texts in our TeX-Journal. I faintly remember it was no easy going. So may be you can give us more details and we come back with better advice.

  • This list is somewhat out of date. The linguistics tag also gives a list, including some more recent packages.
    – Alan Munn
    Feb 10 '12 at 14:51
  • @AlanMunn The expex package will never make it into the topic index of CTAN as long as it is not on CTAN. I wonder why somebody undertakes to write such a difficult piece of software without pushing it into THE repository.
    – Keks Dose
    Feb 10 '12 at 16:42
  • John does put stuff up on CTAN (pst-jtree and pst-asr are there) but he's quite conservative about putting packages that are still in his opinion in beta (although lots of people are using it.) My comment more referred to the fact that neither tikz-qtree nor ot-tableau are listed (which are on CTAN).
    – Alan Munn
    Feb 10 '12 at 16:49
  • @AlanMunn Easy to answer: you have to be a linguist to comprehend that tikz-qtree is a linguistic package. And regarding ot-tableau the announcment said: »The ot-tableau package makes it easy to create beautiful optimality-theoretic tableaux.« In German: Hääää?
    – Keks Dose
    Feb 10 '12 at 17:36
  • Thanks to everyone! I am not as yet able to provide adequate feedback. But I can see I have much to study to be able to even appropriately appreciate (let alone, evaluate) your contributions, as i was doing everything "mechanically". Now I know I MUST "learn Chemistry even to strain coffee", as I was once criticized! Thanks VERY, VERY MUCH!! Learning, and learning still more is always the only choice left!!! Eventually I will return, after further study and experimentation! Mar 9 '12 at 17:21

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.