- Questo topic ha 40 risposte, 5 partecipanti ed è stato aggiornato l'ultima volta 11 anni, 7 mesi fa da
Valeria.
-
CreatoreTopic
-
12 Maggio 2013 alle 16:37 #85700::
Salve a tutti,
ho cominciato da poco ad usare LaTeX per impaginare la mia tesi e ho qualche difficoltà dovuta alla scarsa pratica con questo sistema.
Purtroppo, data l’inesperienza, non riesco a risolvere un problema piuttosto banale.
Sto preparando con ledmac un’edizione critica di un testo che si struttura alternando sezioni in versi e paragrafi in prosa (un prosimetro come potrebbe essere la Vita Nova, ad esempio).
Non riesco a capire se sia possibile numerare progressivamente i versi delle strofe (in modo che la numerazione dei versi sia continua e “scavalchi” la parte in prosa) e contemporaneamente numerare singolarmente le diverse parti in prosa.
Il solo risultato che sono stato in grado di ottenere è numerare ciascuna sezione, ma in questo modo ad ogni strofa il conteggio riprende da 1 e non è l’effetto che spererei di ootenereDi seguito riporto un modello semplificato per rendere l’idea del testo di cui parlo.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper,oneside,11pt]{article}
\usepackage{ledmac}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[italian,latin]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{geometry} %%%%
\onehalfspacing\begin{document}
\setstanzaindents{0,2,2,2,2,2,2,2,2,2,2,2,2,0}
[1] \emph{Stanza}
\vspace{1cm}
\beginnumbering
\firstlinenum{3}
\linenumincrement{3}
\linenummargin{right}\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
\vspace{1cm}\beginnumbering
\linenummargin{left}
\firstlinenum{5}
\linenumincrement{5}
\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
\firstlinenum{3}
\linenumincrement{3}
\linenummargin{right}
\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}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Grazie in anticipo per l’aiuto e la pazienza
-
CreatoreTopic
-
AutoreRisposte
-
-
12 Maggio 2013 alle 16:52 #85701
-
12 Maggio 2013 alle 17:04 #85702
-
12 Maggio 2013 alle 18:44 #85703
-
13 Maggio 2013 alle 6:32 #85704::
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.
-
13 Maggio 2013 alle 8:55 #85705::
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
-
13 Maggio 2013 alle 9:37 #85706
-
13 Maggio 2013 alle 10:46 #85707::
Yes! Now it works perfectly!!
thank you so much, now my text has exactly the format that i needed!But unfortunately the linenumber printed in the apparatus is still the default one!
i’ll give you an example:\documentclass[a4paper,oneside,11pt]{article}
\usepackage{eledmac}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[italian,latin]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{geometry} %%%%
\onehalfspacing%%%%CONTINUITà NUMERI DI VERSI DELLE STROFE%%%%%%
\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.
\newcommand{\restorestanzaline}{\line@num=\thestanzaline}
%%%%%%%%%%\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
\restorestanzaline
\stanza
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in versi &
Questo è il testo in \edtext{\textbf{poesia}}{\Afootnote{A 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
\restorestanzaline
\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\end{document}
That is quite a problem… I am sorry to ask you so many questions but I am not able to set the right parameters by myself!
Thanks again for you patience
Lorenzo
-
13 Maggio 2013 alle 11:13 #85708::
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.
%%%%%%%%%%`
-
13 Maggio 2013 alle 13:55 #85709
-
13 Maggio 2013 alle 14:09 #85710::
I have one last question: do you know if it is possible to set the distance between the end of the verse and the verse number, since I would like it to be on the right side?
what I usually get is something likeVerse verse verse verse____________________1
But I think it would be better to have it nearer, just like that:
Verse verse verse verse________1
Thank you..this should be the last one!!!
-
13 Maggio 2013 alle 16:36 #85711
-
13 Maggio 2013 alle 17:11 #85712
-
21 Gennaio 2015 alle 15:01 #85713::
Ciao!Riapro questo thread perché anch’io ho un problema con la numerazione…
Il mio testo è in parte in versi in parte in prosa. Si tratta di un testo drammatico e riesco a numerare facilmente e senza problemi la parte in versi, grazie al pacchetto dramatist, con i comandi
`\begin{drama*}
\poemlines{5}`Questa opzione è molto utile perché automaticamente esclude dal conteggio dei versi le didascalie del testo drammatico.
La domanda è: è possibile creare qualcosa di simile per la parte in prosa con eledmac? Si può creare un comando del tipo *\renewcommand{\direct}{\skipnumbering}*? Metto gli asterischi perché ho già provato così e non funziona. Anzi mi crea l’ulteriore problema di non trattare il testo preceduto da \direct, come una didascalia…
Poi ho notato che la numerazione del testo in prosa mi crea una sorta di interlinea diversa tra le battute dei personaggi… come posso evitare questo?
[attachment=1246]Cattura.JPG[/attachment]
Infine (ma questo forse riesco a capirlo da sola studiando meglio la documentazione), come posso impostare la numerazione sulla destra?
Grazie mille,
Valeria
Attachments:
You must be logged in to view attached files. -
21 Gennaio 2015 alle 15:04 #85714
-
21 Gennaio 2015 alle 16:18 #85715::
Ecco, ti incollo tutto il codice, anche se un po’ lungo.
Tra l’altro vedo che, mettendo i numeri di riga a sinistra, questi si sovrappongono al nome del personaggio parlante, quindi mi serve proprio spostarli a destra. Ho fatto un paio di prove ma con scarso successo…In più: come si potrebbe rendere la numerazione continua tra la parte in prosa e quella in versi?
Ti ringrazio molto intanto! 🙂
`\documentclass[12pt, a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, italian]{babel}\usepackage{footnote}
\usepackage[lnps]{dramatist}
\usepackage{paracol}
\usepackage{eledmac}
\usepackage{verse}\makeatletter
\renewcommand\@openact{%
\thispagestyle{plain}
\refstepcounter{act}
\if@lnpa
\setcounter{storelineno}{0}
\if@poemscol
\setcounter{storeprintlineindex}{0}
\else
\refstepcounter{storelineno}
\fi
\fi
}
\makeatother\renewcommand{\printactname}{}
\renewcommand{\printactnum}{}
\renewcommand{\printacttitle}[1]{\centering\acttitlefont\ #1}
\renewcommand{\printscenename}{}
\renewcommand{\printscenenum}{}
\renewcommand{\printscenetitle}[1]{\centering\scenetitlefont\ #1}\title{La Tempesta}
\author{}
\date{}\begin{document}
\maketitle\begin{paracol}[1]{2}
\selectlanguage{italian}
\Character{Alonso}{alo}
\Character{Sebastiano}{seb}
\Character{Prospero}{pro}
\Character{Antonio}{ant}
\Character{Ferdinando}{fer}
\Character{Gonzalo}{gon}
\Character{Adriano}{adr}
\Character{Francisco}{fra}
\Character{Calibano}{cal}
\Character{Trinculo}{tri}
\Character{Stefano}{ste}
\Character{Capitano}{master}
\Character{Nostromo}{boa}
\Character{Marinai}{mariners}
\Character{Miranda}{mir}
\Character{Ariele}{ari}
\Character{Iride}{iris}
\Character{Cerere}{ceres}
\Character{Giunone}{juno}
\Character{Ninfe}{nymphs}
\Character{Mietitori}{reapers}\Act{Atto Primo}
\Scene{Scena Prima}\StageDir{In mare, su un veliero; tempesta: lampi, tuoni e fragore del mare.
Entrano il \master e il \boa}\begin{drama}
\beginnumbering
\pstart\masterspeaks{Nostromo!}
\boaspeaks{\direct{Entra di corsa} A lli cumanne vuoste, Capitanio! Mal'aria e b\`a!\footnote{{\itshape Mal'aria e b\`a}: va male, non c'\`e speranza.}}
\masterspeaks{Tiempo ’a perdere nun ce n'\`e. Sotto \`e una massa de scuoglie. Cumme s'\`e miso lu mare, o ncagliate rumanimmo\footnote{{\itshape rumanimmo}: rimaniamo.} o da nu mumento all'auto se spacca la rota de poppa. D\`atte da fare. \direct{Esce in fretta}}
\boaspeaks{\direct{ai marinai che entrano} Guagli\'u, curr\'ite. Faciteve curaggio: ’a Maronna ’a Catena nce aiuta. Ammainate ’a vela maestra e manten\'iteve l\`ese. Appizzate li rrecchie pe' lu sisco de lu Capitanio. Guagli\'u, fac\'immece ann\`ore: simmo Napulitane!}
\marinersspeaks{\direct{in coro}S\'immo Napulitane! \direct{Escono di corsa}}
\boaspeaks{\direct{al vento che soffia forte} Sciosciasci\`o! Puozza jettare lu sango, tu e la tempesta de chi t'\`e muorto!}
\StageDir{Provenienti da sotto coperta entrano alonso, Sebastiano, Antonio, Gonzalo, e Ferdinando.}
\alospeaks{Forza, Nostromo! Chist'\`e lu mumenti che nce haje da fa' vedere chi \`e don Nicola. Attenzione! ’O Capotanio add\`o stace? Sveglia! Facite l'uommene nun facite lli creature! ’E marinare, ogneduno a lu posto sujo!}
boaspeaks{Aggi\`atece pacienzia, Majest\`a! Vuje purz\'i ve n'avit' ’a scennere a v'havite da mettere a lu posto vuosto}
\antspeaks{E lu Capitanio?}
\boaspeaks{E nun lu sentite? Scenn\'itev\`enne, nzerrateve in cabina. Qua disturbate la fatica nosta, facite confusione! Insomma, la prisenzia vosta fa cchi\'u dammaggio de la tempesta!}
\gonspeaks{Mb\`e? Cerca de essere calmo.}%%%%%%%TAGLIO ALCUNE BATTUTE PER INSERIRE ANCHE LA PARTE IN VERSI%%%%%%
\StageDir{Escono tutti.}
\boaspeaks{\direct{entra di corsa, assai agitato} Avasci\`ate lu picco! Av\`ascia, ancora! Attiente, facitele sentire lu velaccio! \direct{Dall'interno, grida. Entrano \gon, \ant e \seb . Vedendoli il \boa li affronta inferocito}}\pend
\endnumbering
\end{drama}\begin{drama*}
\poemlines{5}
\boaspeaks{Cc\`a state n'ata vota? E che mal\'ina? \\ Fusseve surde o pazze? Jatev\`enne! \\ Scenn\'itav\`enne dint'a li cabine. \\ Ce ne scenn\'immo a ffunno tuttuquante, \\ cumme ve l'aggia di', \\ sango … r' ’e ddieci!} \\
\sebspeaks{Nun ghiastemmare, male te ne vene}
\end{drama*}\switchcolumn
\selectlanguage{english}
\Character{Alonso}{alo}
\Character{Sebastian}{seb}
\Character{Prospero}{pro}
\Character{Antonio}{ant}
\Character{Ferdinand}{fer}
\Character{Gonzalo}{gon}
\Character{Adriano}{adr}
\Character{Francisco}{fra}
\Character{Caliban}{cal}
\Character{Trinculo}{tri}
\Character{Stephano}{ste}
\Character{Master}{master}
\Character{Boatswain}{boa}
\Character{Mariners}{mariners}
\Character{Miranda}{mir}
\Character{Ariel}{ari}
\Character{Iris}{iris}
\Character{Ceres}{ceres}
\Character{Juno}{juno}
\Character{Nymphs}{nymphs}
\Character{Reapers}{reapers}\Act{Act First}
\Scene{Scene First}\StageDir{A tempestuous noise of thunder and lightning heard.
Enter a Ship-\master and a \boa}\begin{drama}
\masterspeaks{Boatswain!}
\boaspeaks{Here, master. What cheer?}
\masterspeaks{Good –- speak to th’ mariners. Fall to’t yarely, or we run ourselves aground. Bestir, bestir! \direct{Exit}}
\direct{Enter \mariners}
\boaspeaks{Hey, my hearts! Cheerly, cheerly, my hearts! Yare, yare! Take in the topsail. Tend to th’ master’s whistle. \direct{To the storm} — Blow till thou burst thy wind, if room enough!}
\StageDir{Enter \alo , \seb , \ant , \fer , \gon and others}
\alospeaks{Good boatswain, have care. Where’s the master? \direct{To the \mariners} Play the men.}
\boaspeaks{I prey now, keep below}
\antspeaks{Where is the master, bos'n?}
\boaspeaks{Do you not hear him? You mar our labour. Keep your cabins –– you do assiste the storm.}
\gonspeaks{Nay, goog, be patient}
\boaspeaks{When the sea is. Hence! What care these roarers for the name of king? To cabin; silence! Trouble us not!}\end{drama}
\end{paracol}
\end{document}`
-
21 Gennaio 2015 alle 16:54 #85716::
Hai provato con \usepackage[noeledmac]{ledmac}?valeTi” post=99421Ecco, ti incollo tutto il codice, anche se un po’ lungo.
Tra l’altro vedo che, mettendo i numeri di riga a sinistra, questi si sovrappongono al nome del personaggio parlante, quindi mi serve proprio spostarli a destra. Ho fatto un paio di prove ma con scarso successo…In più: come si potrebbe rendere la numerazione continua tra la parte in prosa e quella in versi?
Ti ringrazio molto intanto! 🙂
`\documentclass[12pt, a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, italian]{babel}\usepackage{footnote}
\usepackage[lnps]{dramatist}
\usepackage{paracol}
\usepackage{eledmac}
\usepackage{verse}\makeatletter
\renewcommand\@openact{%
\thispagestyle{plain}
\refstepcounter{act}
\if@lnpa
\setcounter{storelineno}{0}
\if@poemscol
\setcounter{storeprintlineindex}{0}
\else
\refstepcounter{storelineno}
\fi
\fi
}
\makeatother\renewcommand{\printactname}{}
\renewcommand{\printactnum}{}
\renewcommand{\printacttitle}[1]{\centering\acttitlefont\ #1}
\renewcommand{\printscenename}{}
\renewcommand{\printscenenum}{}
\renewcommand{\printscenetitle}[1]{\centering\scenetitlefont\ #1}\title{La Tempesta}
\author{}
\date{}\begin{document}
\maketitle\begin{paracol}[1]{2}
\selectlanguage{italian}
\Character{Alonso}{alo}
\Character{Sebastiano}{seb}
\Character{Prospero}{pro}
\Character{Antonio}{ant}
\Character{Ferdinando}{fer}
\Character{Gonzalo}{gon}
\Character{Adriano}{adr}
\Character{Francisco}{fra}
\Character{Calibano}{cal}
\Character{Trinculo}{tri}
\Character{Stefano}{ste}
\Character{Capitano}{master}
\Character{Nostromo}{boa}
\Character{Marinai}{mariners}
\Character{Miranda}{mir}
\Character{Ariele}{ari}
\Character{Iride}{iris}
\Character{Cerere}{ceres}
\Character{Giunone}{juno}
\Character{Ninfe}{nymphs}
\Character{Mietitori}{reapers}\Act{Atto Primo}
\Scene{Scena Prima}\StageDir{In mare, su un veliero; tempesta: lampi, tuoni e fragore del mare.
Entrano il \master e il \boa}\begin{drama}
\beginnumbering
\pstart\masterspeaks{Nostromo!}
\boaspeaks{\direct{Entra di corsa} A lli cumanne vuoste, Capitanio! Mal'aria e b\`a!\footnote{{\itshape Mal'aria e b\`a}: va male, non c'\`e speranza.}}
\masterspeaks{Tiempo ’a perdere nun ce n'\`e. Sotto \`e una massa de scuoglie. Cumme s'\`e miso lu mare, o ncagliate rumanimmo\footnote{{\itshape rumanimmo}: rimaniamo.} o da nu mumento all'auto se spacca la rota de poppa. D\`atte da fare. \direct{Esce in fretta}}
\boaspeaks{\direct{ai marinai che entrano} Guagli\'u, curr\'ite. Faciteve curaggio: ’a Maronna ’a Catena nce aiuta. Ammainate ’a vela maestra e manten\'iteve l\`ese. Appizzate li rrecchie pe' lu sisco de lu Capitanio. Guagli\'u, fac\'immece ann\`ore: simmo Napulitane!}
\marinersspeaks{\direct{in coro}S\'immo Napulitane! \direct{Escono di corsa}}
\boaspeaks{\direct{al vento che soffia forte} Sciosciasci\`o! Puozza jettare lu sango, tu e la tempesta de chi t'\`e muorto!}
\StageDir{Provenienti da sotto coperta entrano alonso, Sebastiano, Antonio, Gonzalo, e Ferdinando.}
\alospeaks{Forza, Nostromo! Chist'\`e lu mumenti che nce haje da fa' vedere chi \`e don Nicola. Attenzione! ’O Capotanio add\`o stace? Sveglia! Facite l'uommene nun facite lli creature! ’E marinare, ogneduno a lu posto sujo!}
boaspeaks{Aggi\`atece pacienzia, Majest\`a! Vuje purz\'i ve n'avit' ’a scennere a v'havite da mettere a lu posto vuosto}
\antspeaks{E lu Capitanio?}
\boaspeaks{E nun lu sentite? Scenn\'itev\`enne, nzerrateve in cabina. Qua disturbate la fatica nosta, facite confusione! Insomma, la prisenzia vosta fa cchi\'u dammaggio de la tempesta!}
\gonspeaks{Mb\`e? Cerca de essere calmo.}%%%%%%%TAGLIO ALCUNE BATTUTE PER INSERIRE ANCHE LA PARTE IN VERSI%%%%%%
\StageDir{Escono tutti.}
\boaspeaks{\direct{entra di corsa, assai agitato} Avasci\`ate lu picco! Av\`ascia, ancora! Attiente, facitele sentire lu velaccio! \direct{Dall'interno, grida. Entrano \gon, \ant e \seb . Vedendoli il \boa li affronta inferocito}}\pend
\endnumbering
\end{drama}\begin{drama*}
\poemlines{5}
\boaspeaks{Cc\`a state n'ata vota? E che mal\'ina? \\ Fusseve surde o pazze? Jatev\`enne! \\ Scenn\'itav\`enne dint'a li cabine. \\ Ce ne scenn\'immo a ffunno tuttuquante, \\ cumme ve l'aggia di', \\ sango … r' ’e ddieci!} \\
\sebspeaks{Nun ghiastemmare, male te ne vene}
\end{drama*}\switchcolumn
\selectlanguage{english}
\Character{Alonso}{alo}
\Character{Sebastian}{seb}
\Character{Prospero}{pro}
\Character{Antonio}{ant}
\Character{Ferdinand}{fer}
\Character{Gonzalo}{gon}
\Character{Adriano}{adr}
\Character{Francisco}{fra}
\Character{Caliban}{cal}
\Character{Trinculo}{tri}
\Character{Stephano}{ste}
\Character{Master}{master}
\Character{Boatswain}{boa}
\Character{Mariners}{mariners}
\Character{Miranda}{mir}
\Character{Ariel}{ari}
\Character{Iris}{iris}
\Character{Ceres}{ceres}
\Character{Juno}{juno}
\Character{Nymphs}{nymphs}
\Character{Reapers}{reapers}\Act{Act First}
\Scene{Scene First}\StageDir{A tempestuous noise of thunder and lightning heard.
Enter a Ship-\master and a \boa}\begin{drama}
\masterspeaks{Boatswain!}
\boaspeaks{Here, master. What cheer?}
\masterspeaks{Good –- speak to th’ mariners. Fall to’t yarely, or we run ourselves aground. Bestir, bestir! \direct{Exit}}
\direct{Enter \mariners}
\boaspeaks{Hey, my hearts! Cheerly, cheerly, my hearts! Yare, yare! Take in the topsail. Tend to th’ master’s whistle. \direct{To the storm} — Blow till thou burst thy wind, if room enough!}
\StageDir{Enter \alo , \seb , \ant , \fer , \gon and others}
\alospeaks{Good boatswain, have care. Where’s the master? \direct{To the \mariners} Play the men.}
\boaspeaks{I prey now, keep below}
\antspeaks{Where is the master, bos'n?}
\boaspeaks{Do you not hear him? You mar our labour. Keep your cabins –– you do assiste the storm.}
\gonspeaks{Nay, goog, be patient}
\boaspeaks{When the sea is. Hence! What care these roarers for the name of king? To cabin; silence! Trouble us not!}\end{drama}
\end{paracol}
\end{document}`
-
21 Gennaio 2015 alle 20:08 #85717
-
22 Gennaio 2015 alle 9:51 #85718::
valeTi” post=99427Grazie 🙂
Questo pacchetto mi ha eliminato il problema dell’interlinea, ma devo ancora capire come mettere il conta versi sulla destra e come far contare righe e versi in modo continuo…
Grazie, comunque 😉
Il tuo codice va riscritto del tutto, per adattarlo a eledmac, che non si usa così! Probabilmente, riesco anche a ridurre il numero di pacchetti da te utilizzati.
Ora sono impegnato: dammi un po’ di tempo!Ciao
Domenico
-
22 Gennaio 2015 alle 9:55 #85719::
Il primo problema si risolve cambiando \linenummargin{right} (nel preambolo) e il secondo non chiudendo la sezione con \pend … \pstart.In genere, il pachetto stabile è ledmac: eledmac non risolve i problemi, come hai visto.
Un saluto
valeTi” post=99427Grazie 🙂
Questo pacchetto mi ha eliminato il problema dell’interlinea, ma devo ancora capire come mettere il conta versi sulla destra e come far contare righe e versi in modo continuo…
Grazie, comunque 😉
-
22 Gennaio 2015 alle 9:57 #85720::
Geronimo” post=99442In genere, il pachetto stabile è ledmac: eledmac non risolve i problemi, come hai visto.
Scusami, ma ti devo correggere: ledmac è il pacchetto morto, non stabile!
Oramai, si DEVE usare eledmac, in continuo sviluppo.
Tra l’altro, lo sviluppatore è estremamente cortese e accetta i suggerimenti e le migliorie proposte.
-
22 Gennaio 2015 alle 10:34 #85721
-
22 Gennaio 2015 alle 11:37 #85722::
Doc” post=99441
Grazie 🙂
Questo pacchetto mi ha eliminato il problema dell’interlinea, ma devo ancora capire come mettere il conta versi sulla destra e come far contare righe e versi in modo continuo…
Grazie, comunque 😉
Il tuo codice va riscritto del tutto, per adattarlo a eledmac, che non si usa così! Probabilmente, riesco anche a ridurre il numero di pacchetti da te utilizzati.
Ora sono impegnato: dammi un po’ di tempo!Ciao
DomenicoTemo di doverti dire che eledmac non è quello che fa per te: il pacchetto prevede numerazioni per pagina, per sezione e per paragrafo.
A te, da quanto capisco, interessa una numerazione per atto, ma, come avrai notato, il pacchetto dramatist NON usa la numerazione nel caso di testi in prosa.
Se dunque ho ben capito cosa ti serve fare, temo di doverti dire che si devono trovare altre vie.
-
22 Gennaio 2015 alle 11:44 #85723
-
22 Gennaio 2015 alle 20:13 #85724
-
22 Gennaio 2015 alle 21:25 #85725::
Hi maieul!My problem is: how can I exclude stage directions and characters names from the verse numbering? (sorry for my bad English…)
Example:
First character:
(aside)
verse
verse
verse
Second character:
verse
verse
verseMy text with edelmac counts 9 lines, but I would like it to count only the “verse” lines.
Since all stage directions and character names are introduced in the package Dramatist by “StageDir” or “direct” and “characterspeaks”, do you think it could be possible to create a new command to exclude all “\StageDir”, “\direct” and “\characterspeaks” from the line numbering?
Thanks 🙂
-
22 Gennaio 2015 alle 21:33 #85726::
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}`
-
23 Gennaio 2015 alle 7:18 #85727::
Ok thanks!I thought of something easier (I mean, not to be recalled every single line or character)… anyway I’ve tried and it doesn’t work properly…
This is what I get
[attachment=1249]versieledmac.JPG[/attachment]
With this code:
`
\begin{document}
\begin{drama*}
\setstanzaindents{0,0}
\setcounter{stanzaindentsrepetition}{1}
\beginnumbering\sebspeaks \stanza {Nun ghiastemmare, male te ne vene}\&
\boaspeaks \stanza {Facitav\`ella vuje chesta manovra.}\&
\antspeaks \stanza {Ma che nostromo si'? Da la paura & staje tremmanno da capa anz\'i\footnote{{\itshape anz\'i}: fino a.} a lu pede\dots & e che diavolo! & Paura d'affogare & nun l'avimmo: & chest'\`e lu rischio de chi va pe' mmare.}\&\endnumbering
\end{drama*}
\end{document
`
Attachments:
You must be logged in to view attached files. -
23 Gennaio 2015 alle 8:43 #85728
-
23 Gennaio 2015 alle 9:08 #85729
-
23 Gennaio 2015 alle 9:14 #85730
-
23 Gennaio 2015 alle 9:17 #85731
-
23 Gennaio 2015 alle 9:21 #85732::
I think dramatist makes the editing of a drama much easiear…\sebspeaks{…}
\gonspeaks{…}for example, would have this result:
SEBASTIANO {…}
GONZALO {…}I also need to set all stage directions in the same form, and this is quite easy with the \StageDir and \direct commands. And I use \drama* and \drama to set the verse and the prose parts of the play… I find it very easy…
*Edit
MWE (hope it works!):
`\documentclass[12pt, a4paper]{book}\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, italian]{babel}\usepackage{footnote}
\usepackage[lnps]{dramatist}
\usepackage{paracol}
\usepackage[right,modulo]{lineno}
\usepackage{verse}\makeatletter
\renewcommand\@openact{%
\thispagestyle{plain}
\refstepcounter{act}
\if@lnpa
\setcounter{storelineno}{0}
\if@poemscol
\setcounter{storeprintlineindex}{0}
\else
\refstepcounter{storelineno}
\fi
\fi
}
\makeatother\renewcommand{\printactname}{}
\renewcommand{\printactnum}{}
\renewcommand{\printacttitle}[1]{\centering\acttitlefont\ #1}
\renewcommand{\printscenename}{}
\renewcommand{\printscenenum}{}
\renewcommand{\printscenetitle}[1]{\centering\scenetitlefont\ #1}\title{La Tempesta}
\author{}
\date{}\begin{document}
\maketitle\begin{paracol}[1]{2}
\selectlanguage{italian}
\Character{Alonso}{alo}
\Character{Sebastiano}{seb}
\Character{Prospero}{pro}
\Character{Antonio}{ant}
\Character{Ferdinando}{fer}
\Character{Gonzalo}{gon}
\Character{Adriano}{adr}
\Character{Francisco}{fra}
\Character{Calibano}{cal}
\Character{Trinculo}{tri}
\Character{Stefano}{ste}
\Character{Capitano}{master}
\Character{Nostromo}{boa}
\Character{Marinai}{mariners}
\Character{Miranda}{mir}
\Character{Ariele}{ari}
\Character{Iride}{iris}
\Character{Cerere}{ceres}
\Character{Giunone}{juno}
\Character{Ninfe}{nymphs}
\Character{Mietitori}{reapers}
\Character{Voci interne}{other}\Act{Atto Primo}
\Scene{Scena Prima}\StageDir{In mare, su un veliero; tempesta: lampi, tuoni e fragore del mare.
Entrano il \master e il \boa}\begin{drama}
\linenumbers
\masterspeaks{Nostromo!}
\boaspeaks{\direct{Entra di corsa} A lli cumanne vuoste, Capitanio! Mal'aria e b\`a!\footnote{{\itshape Mal'aria e b\`a}: va male, non c'\`e speranza.}}
\masterspeaks{Tiempo ’a perdere nun ce n'\`e. Sotto \`e una massa de scuoglie. Cumme s'\`e miso lu mare, o ncagliate rumanimmo\footnote{{\itshape rumanimmo}: rimaniamo.} o da nu mumento all'auto se spacca la rota de poppa. D\`atte da fare. \direct{Esce in fretta}}
\end{drama}
\switchcolumn
\selectlanguage{english}
\nolinenumbers\Character{Alonso}{alo}
\Character{Sebastian}{seb}
\Character{Prospero}{pro}
\Character{Antonio}{ant}
\Character{Ferdinand}{fer}
\Character{Gonzalo}{gon}
\Character{Adriano}{adr}
\Character{Francisco}{fra}
\Character{Caliban}{cal}
\Character{Trinculo}{tri}
\Character{Stephano}{ste}
\Character{Master}{master}
\Character{Boatswain}{boa}
\Character{Mariners}{mariners}
\Character{Miranda}{mir}
\Character{Ariel}{ari}
\Character{Iris}{iris}
\Character{Ceres}{ceres}
\Character{Juno}{juno}
\Character{Nymphs}{nymphs}
\Character{Reapers}{reapers}\Act{Act First}
\Scene{Scene First}\StageDir{A tempestuous noise of thunder and lightning heard.
Enter a Ship-\master and a \boa}\begin{drama}
\masterspeaks{Boatswain!}
\boaspeaks{Here, master. What cheer?}
\masterspeaks{Good –- speak to th’ mariners. Fall to’t yarely, or we run ourselves aground. Bestir, bestir! \direct{Exit}}
\end{drama}\end{paracol}
\end{document}
`
-
23 Gennaio 2015 alle 9:26 #85733::
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…
-
23 Gennaio 2015 alle 9:31 #85734
-
23 Gennaio 2015 alle 9:34 #85735::
create basic new command is not so difficult…you want to print “Giunone” in small cap withj `\junospeak`?:
`\newcommand{\junospeack}{\textsc{Giunone}}`
Not so hard 😉
but I could like for compatibility between drama and eledmac if i obtain the full MWE which producted you bad printing… FULL meaning also with preamble…
-
23 Gennaio 2015 alle 9:55 #85736::
That’s the other one…`\documentclass[12pt, a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, italian]{babel}\usepackage{footnote}
\usepackage[lnps]{dramatist}
\usepackage{paracol}
\usepackage{eledmac}
\firstlinenum{1}
\linenumincrement{1}
\usepackage{verse}\makeatletter
\renewcommand\@openact{%
\thispagestyle{plain}
\refstepcounter{act}
\if@lnpa
\setcounter{storelineno}{0}
\if@poemscol
\setcounter{storeprintlineindex}{0}
\else
\refstepcounter{storelineno}
\fi
\fi
}
\makeatother\renewcommand{\printactname}{}
\renewcommand{\printactnum}{}
\renewcommand{\printacttitle}[1]{\centering\acttitlefont\ #1}
\renewcommand{\printscenename}{}
\renewcommand{\printscenenum}{}
\renewcommand{\printscenetitle}[1]{\centering\scenetitlefont\ #1}\Character{Sebastiano}{seb}
\Character{Antonio}{ant}
\Character{Nostromo}{boa}
\begin{document}
\begin{drama*}
\setstanzaindents{0,0}
\setcounter{stanzaindentsrepetition}{1}
\beginnumbering\sebspeaks \stanza {Nun ghiastemmare, male te ne vene}\&
\boaspeaks \stanza {Facitav\`ella vuje chesta manovra.}\&
\antspeaks \stanza {Ma che nostromo si'? Da la paura & staje tremmanno da capa anz\'i a lu pede\dots & e che diavolo! & Paura d'affogare & nun l'avimmo: & chest'\`e lu rischio de chi va pe' mmare.}\&\endnumbering
\end{drama*}
\end{document}`
-
23 Gennaio 2015 alle 10:12 #85737::
I have looked to your code.First, `\stanza` don’t take argument. So delete the
Spoiler
{}
.
` \stanza Nun ghiastemmare, male te ne vene\&
\boaspeaks \stanza Facitav\`ella vuje chesta manovra.\&
\antspeaks \stanza Ma che nostromo si'? Da la paura & staje tremmanno da capa anz\'i a lu pede\dots & e che diavolo! & Paura d'affogare & nun l'avimmo: & chest'\`e lu rischio de chi va pe' mmare.\&
`Second, I have hacked dramatist prevent the overloap. Add these line in your preamble.
`\makeatletter
\def\@character#1#2{%
\@namedef{#2}{{\namefont #1}\xspace}
\n@me@ppend@nddef{#2}{\@ppendname}{%
\if@drverse
{\speakstab\speaksfont{#1}\speaksdel\par\nobreak}
\else
\item[#1\speaksdel]
\fi}
}\makeatother
`But, indeed, I think you should learn how to do basic command. It’s not so hard… Do you read French ?
-
23 Gennaio 2015 alle 10:20 #85738
-
23 Gennaio 2015 alle 10:24 #85739
-
23 Gennaio 2015 alle 10:28 #85740
-
-
AutoreRisposte
- Devi essere connesso per rispondere a questo topic.