ledmac icon indicating copy to clipboard operation
ledmac copied to clipboard

line numbering of sectioning commands

Open sonator opened this issue 11 years ago • 4 comments

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}

sonator avatar Aug 26 '14 08:08 sonator

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...

maieul avatar Aug 26 '14 08:08 maieul

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}

Doc73 avatar Aug 26 '14 09:08 Doc73

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...

maieul avatar Aug 26 '14 09:08 maieul

  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 [email protected] An: maieul/ledmac [email protected]     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.

 

sonator avatar Aug 26 '14 09:08 sonator