maieul / ledmac

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

line numbering of sectioning commands #197

Open sonator opened 10 years ago

sonator commented 10 years ago

Arguments of sectioning comands longer than one line are numbered as a single line. The section of the MWE is runing over two lines, but it will be numbered as one line.

\documentclass[twoside,12pt]{book} \usepackage{polyglossia,fontspec,xunicode} \usepackage{libertineotf} \setmainlanguage{english}

\usepackage{eledmac} \linenumincrement{1} \firstlinenum{1}

\begin{document}

\beginnumbering \beforeeledchapter \pstart \eledchapter{\edtext{chapter}{\Afootnote{chapitre}}\ledsidenote{chapter}} \pend

\pstart \eledsection{long section long section long section long section long section\ledsidenote{section}} \pend

\pstart text text text text text text text text text text text text text text text text text \pend \endnumbering

\end{document}

maieul commented 10 years ago

hum, it will be difficult to solve this problem. Especially in the case of a chapter… did the "chapter" text must be numbering.

A title is a semantic unity, and have only one number is "normal".

I will do some test...

Doc73 commented 10 years ago

Simple solution:

\documentclass[twoside,12pt]{book}
\usepackage{polyglossia,fontspec,xunicode}
\usepackage{libertineotf}
\setmainlanguage{english}

\usepackage{eledmac}
\linenumincrement{1}
\firstlinenum{1}

\begin{document}

\beginnumbering
\beforeeledchapter
\pstart
\eledchapter{\edtext{chapter}{\Afootnote{chapitre}}\ledsidenote{chapter}}
\pend

\pstart
\eledsection{long section long section long \\ section long section long section\ledsidenote{section}}
\pend

\pstart
text text text text text text text text text text text text text text text text text 
\pend
\endnumbering

\end{document}
maieul commented 10 years ago

indeed, in this particular cas it correctly count the line number but it does not print it. The problem must be solved in eledmac, to add the line number when printing each line...

sonator commented 10 years ago

  Thank you for your rapid verifying, and also thanks to Domenico for the proposal!     -----Original-Nachricht----- Betreff: Re: [ledmac] line numbering of sectioning commands (#197) Datum: Tue, 26 Aug 2014 10:59:29 +0200 Von: Maïeul Rouquette notifications@github.com An: maieul/ledmac ledmac@noreply.github.com     hum, it will be difficult to solve this problem. Especially in the case of a chapter… did the "chapter" text must be numbering. A title is a semantic unity, and have only one number is "normal". I will do some test... —Reply to this email directly or view it on GitHub.