maieul / ledmac

package reledmac for latex
http://www.ctan.org/tex-archive/macros/latex/contrib/reledmac
54 stars 28 forks source link

The line numbering does not work well with the quotation environment #84

Closed alexad closed 11 years ago

alexad commented 12 years ago

Hi, The command \pstart and \pend mess with the margins: the left and the right margin of the quotation disappear, and the bottom margin is too big. File for testing:

\documentclass{article}
\usepackage{eledmac,lipsum}
\begin{document}

\begingroup
  \beginnumbering

    \pstart
    \lipsum[1]
    \pend

    \begin{quotation}
    \pstart
    \lipsum[2]
    \pend
    \end{quotation}

    \pstart
    \lipsum[3]
    \pend

  \endnumbering
\endgroup

\end{document}

I found on the web that ledmac was not doing well with quote environment: http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2005-08/msg01370.html

Is it possible to fix this problem in eledmac.sty? Or is it too complicate?

Thanks! Alex

maieul commented 12 years ago

I think, like for the title section, we can't make the native section environnment, but we could make somethink which will be like it (ie -> indented).

But it is some complex, because it implies to change the way of splitting the block in line.

maieul commented 11 years ago

Could you say me if something like the result of the file https://github.com/maieul/ledmac/blob/issue84/issue84.tex could be what you want ?

alexad commented 11 years ago

Not really: I would like the quotation to have a left and a right margin. Furthermore, when I compile the "issue84.tex" document, the bottom margin of the {quotation} is a bit bigger than the top margin.

Example of a regular quote in latex: https://pangea.stanford.edu/computing/unix/formatting/latexexample3.jpg

maieul commented 11 years ago

I don't see the difference : the quotation in my example have left and right margin …., even if this right margin and left margin is not of the same size.

For the vertical space, I push a new example ...

alexad commented 11 years ago

Sorry, I tried again and it works for the left and the right margin. (I do not know why I messed the first compilation of the document.) It is indeed what I wanted. Thanks for the "\leftskip=0.1\textwidth\rightskip=0.1\textwidth" tip.

maieul commented 11 years ago

ok, I will make a generic command this week-end or in the next summer. I invite you, if not emergency, to wait

maieul commented 11 years ago

could you try https://github.com/maieul/ledmac/tree/issue84 ?

you must run the .ins file to obtain the .sty file. This new file will propose quotation inside numbering section (like in the issue84.tex file)

alexad commented 11 years ago

Hi Maieul, the quote now is indeed numbered, but the resultat is not perfect. Here is my test file: https://sites.google.com/site/testxyz789x/tex/test.pdf And the pdf: https://sites.google.com/site/testxyz789x/tex/test.tex

Thanks, Alex.

maieul commented 11 years ago

I think your problem is because you open \pstart and \pend inside quotation, and not outside ...

alexad commented 11 years ago

In fact I tried both. If you look at the two files I linked, in the second page of the document, the quotation in inside \pstart and \pend. The quotation is correctly numbered but the bottom margin of the quotation is missing. Can you reproduce this?

maieul commented 11 years ago

I have just seen the problem. Please for the next time, be more explicit. "The resultat is not perfect" didn't say what is the problem ...

I have just pushed the solution. Could you try ?

alexad commented 11 years ago

Sorry for the vague reports. The solution you pushed works well: the quotation has a bottom margin. One more thing, though:

This code:

\begingroup
  \beginnumbering
  \autopar
    \lipsum[1]
    \begin{quotation}
    \lipsum[2]
    \end{quotation}
    \lipsum[3]
  \endnumbering
\endgroup

... produces top and bottom margins which are bigger than the same code without the "\autopar" command:

\begingroup
  \beginnumbering
  \pstart
    \lipsum[1]
    \begin{quotation}
    \lipsum[2]
    \end{quotation}
    \lipsum[3]
  \pend
  \endnumbering
\endgroup
maieul commented 11 years ago

You are right. I have just push a change, wich I hope will correct this problem

maieul commented 11 years ago

could you test the new version ?

alexad commented 11 years ago

The latest code seems to work well, thanks a lot for your work! Alex

maieul commented 11 years ago

thanks, I will publish it today on CTAN