New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page marks within a paragraph breaking eledmac's output #112
Comments
Hi, could you make a test ?
|
This seems to help with the funny spacing in the layout, but now the page marks don't work like they should. It seems as if only the last \markboth has an effect on the verse range. Here's an example: \documentclass[11pt, a4paper,twoside]{article} \makeatletter \newcounter{ch} \newcommand{\startledbibleverse}{% \newcommand{\ledbiblechapter}[1]{% \numberonlyfirstinline[A] \begin{document} \beginnumbering \ledbiblechapter{2}\ledbibleverse{1} Lorem ipsum dolor \edtext{sit}{\Afootnote{ABC om. D}} amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \ledbibleverse{2}At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \ledbibleverse{3} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \ledbibleverse{4} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \ledbibleverse{5}At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \ledbibleverse{6} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \ledbiblechapter{3}\ledbibleverse{1} Lorem ipsum dolor \edtext{sit}{\Afootnote{ABC om. D}} amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \ledbibleverse{2}At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \ledbibleverse{3} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \ledbibleverse{4} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \ledbibleverse{5}At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \ledbibleverse{6} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, \edtext{sed}{\Afootnote{ABC om. D}} diam voluptua. \ledbibleverse{7} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \ledbibleverse{8} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. |
yes, it is what i was afraid this night. I will try to correct it next |
Thanks again for looking into this. I stumbled on a thread in comp.text.tex where former ledmac maintainer Peter Wilson essentially gave up on the problem:
Maybe it can't be helped? OTOH, verse ranges are a prerequisite for editions of biblical texts. Are there any alternatives to the page mark hack? |
I don't think it's possible to correct the system. But I have found a |
Ok
So this system can't work. But I have add a feature, which allow you to add commands at the begining of ALL ledmac lines. I think, it could solve your problem (my test with your little example was OK). Could you test more ? The first thing you have to do is to re-download the files of dev, and to run again the .ins file, to have the .sty file. As you have said a verse number = a line number, we can use it. The most important line is inside the This command will be call at the begining of each line, during the time of line splitting. So the content :
I hope you understand the problem and the solution (and my English !) |
Hurray! I think it's almost working, at least for the verse numbers. The chapters, however, in your example |
could you send your example working bad ? I must have it to test |
The file is https://github.com/signinstranger/ledmac/blob/master/issue112-long.tex |
I will try this weekend |
Hi, the problem is that you had only one pstart. And so, as the line splitting is made at the end of each pstart ... you line splitting was made only with the ultimate value... See The \autopar is used to have \pstart\pend at each paragraph. But it coulnd't work with your previous l. 30 |
Thank you Maïeul! This is great! I wish I could start a new paragraph in the apparatus for each chapter, but this is not possible with \footparagraph, right? |
Actually, I think't it's not possible. |
LaTeX's mechanism for page marks (e.g. \markboth, markright, etc.) currently breaks eledmac's output when used within a paragraph. Note the layout bug in the following example:
\documentclass{article}
\usepackage{eledmac}
\begin{document}
\beginnumbering
\pstart
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, \markboth{1}{2} sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
\pend
\endnumbering
\end{document}
The text was updated successfully, but these errors were encountered: