Risposte nei forum create
-
AutoreRisposte
-
::
did you try http://ctan.org/pkg/lineno for lineno ? if it doesn’t work for you problem, I think the best solution will be to use eledmac + create you own command to have uniform presenting…
::
you can write the name character between stanza.`\documentclass{article}
\usepackage{eledmac}
\firstlinenum{1}
\linenumincrement{1}
\begin{document}
\setstanzaindents{0,0}
\setcounter{stanzaindentsrepetition}{1}
\beginnumberingFirst character
\stanza
verse&
verse&
verse\&
Second character
\stanza
verse&
verse&
verse\&
\endnumbering
\end{document}`
::
Hi,could you post a “issue” on https://github.com/maieul/ledmac/issues. I think it’s a feature which is need in eledmac.
::
No problem, it’s a quite difficult problem.I think what was wrong in the first solution, what was wrong in the second. I hope the third, which combine the two, is the good.
So you have to change you preambule code by :
`
%%%%CONTINUITà NUMERI DI VERSI DELLE STROFE%%%%%%
\makeatletter% We need to use command with an @.
\newcount\@stanzaline% The counter to save the stanza line. It's a TeX counter, not a LaTeX counter
\newcommand{\savestanzaline}[0]{\global\@stanzaline=\line@num}%\line@num is the internal counter of eledmac use for line numbering.
\newcommand{\restorestanzaline}{\setlinenum{\@stanzaline}}% Use the value of @stanzaline as new line number, but don't write it directly in the.nn file.
\makeatother%Don't forget.
%%%%%%%%%%`
::
Ok.As Doc said, you should, in any case, use eledmac instead of ledmac.
I’m not sur to understand exactly what you mean : have a number for stanza (1) or have an unbroken numbering of line for stanza but a broken for prose (2). So I will propose to you a solution for both case.
have a number for stanza (1)
The solution is very easy. If you don’t use a sectionning command (as \section), you could define your own counter and increment it a each stanza.
For example in you preamble:`
\newcounter{stanza}% A counter for stanza
\newcommand{\stanzacount}{
\stepcounter{stanza}%Add one to the counter
[\thestanza]% Print in bracket the value of the stanza
}
`And at each stanza, you call \stantzacount (instead of [1] and [2] in your example)
have an unbroken numbering of line for stanza but a broken for prose (2)
As it mix broken and unbroken line numbering, we can’t use \pausenumbering.
The solution will be :
- At the end of stanza, before \endnumbering, save the line number in a counter.
- At the begining of a stanza, between \beginnumbering and \stanza, set the line number with the value saved in the counter.
So, in you preamble, define a command \savestanzaline, and call it at the end of a stanza, after the \& and before \linenumbering :
`
\makeatletter% We need to use command with an @.
\newcounter{stanzaline}% The counter to save the stanza line.
\newcommand{\savestanzaline}[0]{\setcounter{stanzaline}{\line@num}}%\line@num is the internal counter of eledmac use for line numbering.
\makeatother% No need anymore command with @
`And so, at the begining of a stanza, between \beginnumbering and \stanza, call :
`
\setlinenum{\thestanzaline}
`To change the line number, and have a continuus line numbering with the previous stanza…
Hope to be helpful.
20 Settembre 2012 alle 16:26 in risposta a: ledmac: come sopprimere numero riga se note su stessa riga? #7775620 Settembre 2012 alle 16:24 in risposta a: ledmac: come sopprimere numero riga se note su stessa riga? #77755 -
AutoreRisposte