Once again, thank you for answering.
I started using “eledmac” as you and Doc suggested and I am trying to make all the changes needed in my original document.
What I needed, as you said, is an unbroken numbering of line for stanza but a broken for prose (2).
I tried to follow your suggestion and set my preamble and it worked perfectly for the first two stanzas (with prose section in between): like this
\documentclass[a4paper,oneside,11pt]{article}
\usepackage{eledmac}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[italian,latin]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage
{geometry} %%%%
\onehalfspacing
%%%%NEW COMMAND%%%%%%
\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 @
%%%%NEW COMMAND%%%%%%
\begin{document}
\setstanzaindents{0,2,2,2,2,2,2,2,2,2,2,2,2,0}
[1] \emph{Stanza}
\vspace{1cm}
\beginnumbering
\stanza
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi
\&
\savestanzaline
\endnumbering
\vspace{1cm}
\beginnumbering
\pstart
[Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa ]
\pend
\endnumbering
\vspace{1cm}
[2]\emph{Stanza}
\vspace{1cm}
\beginnumbering
\setlinenum{\thestanzaline}
\stanza
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi
\&
\endnumbering
\end{document}
..but if i add another prose section and another stanza (I have to do it 60 times) it all changes, and goes like this:
\documentclass[a4paper,oneside,11pt]{article}
\usepackage{eledmac}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[italian,latin]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage
{geometry} %%%%
\onehalfspacing
%%%%NEW COMMAND%%%%%%
\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 @
%%%%NEW COMMAND%%%%%%
\begin{document}
\setstanzaindents{0,2,2,2,2,2,2,2,2,2,2,2,2,0}
[1] \emph{Stanza}
\vspace{1cm}
\beginnumbering
\stanza
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi
\&
\savestanzaline
\endnumbering
\vspace{1cm}
\beginnumbering
\pstart
[Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa ]
\pend
\endnumbering
\vspace{1cm}
[2]\emph{Stanza}
\vspace{1cm}
\beginnumbering
\setlinenum{\thestanzaline}
\stanza
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi
\&
\savestanzaline
\endnumbering
\beginnumbering
\pstart
[Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa Questo è il testo in prosa ]
\pend
\endnumbering
\vspace{1cm}
\vspace{1cm}
[3]\emph{Stanza}
\vspace{1cm}
\beginnumbering
\setlinenum{\thestanzaline}
\stanza
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi
\&
\endnumbering
\end{document}
So I have the following problems:
1) The first stanza verse numbering is correct, the following are incorrect (for example the counter in stanza II does not start from verse 13, but from verse 50)
2) Everytime I make a change and refresh to get a new PdF output file, the verse line counter increases
[attachment:1]C:\fakepath\test Pdf.pdf[/attachment]
Maybe I have done something wrong, but I spent a lot of time tying before bothering you again…unfortunaly I was not able to make it work by myself!
Thanks again
Lorenzo