Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is it possible to use \startlock and \endlock in Ledmac to number sentences instead of lines?

153 views
Skip to first unread message

lepidus

unread,
Aug 13, 2005, 6:37:11 PM8/13/05
to
I am preparing an edition of a dialogue text with ledmac. I would like
to use sentencenumbers instead of linenumbers as references for my
critical and explanatory apparatus. I thought of using the \startlock
and \endlock commands as described in Wilson manual (pp. 12-13). I have
marked up the text as follows, but the commands seem to work randomly
(sometimes yes sometimes no). Any ideas? Thank you very much for any
suggestions on how to use these commands: this would be the simplest
and easiest solution.

\beginnumbering
\pstart\noindent \startlock
Ahimè, quanto è cosa dignissima di laude [... text continues] ogni
celeste e angelica natura in perfida, nequissima e diabolica si
pervertiria%
\endlock
. %
\startlock
Ahimè, quanto è dolce [... text continues] fia la vita loro eterna et
immortale%
\endlock
. %
\startlock
Che altro è, [... text continues] et adversi%
\endlock
? %
\startlock
Clausule hora ho audite, [... text continues] e mi corrode%
\endlock
. %
\pend
\endnumbering

John Burt kindly suggested this alternative option [plus another using
poemscol]:

The first would be something like this: define a counter to hold the
sentence number, and a counter to hold the turn number for each
character. Then define a token register, let's call it \noteheader,
which can, during each speech, hold the name of the speaker, the turn,
and the sentence number. At the beginning of each speech, issue a
command (let's call it \turnstart) that specifies the speaker,
increments the turn number of that speaker, and resets the sentence
counter to one. At the beginning of each sentence issue a command
(let's call it \sentencestart), which increments the sentence counter,
clears the \noteheader token register, and writes into it the name of
the speaker, the turn, and the sentence. Then, using as a model the
commands for writing notes with overlapping lemmas, you need to define
note commands for each of the species of note your edition will
contain. This command will give for the lemma of the note the contents
of the \noteheader register (\the\noteheader, I think), followed by the
rest of the lemma, followed by the command ledmac uses for the rest of
the note.

lepidus

unread,
Aug 13, 2005, 6:52:36 PM8/13/05
to
addendum: Of course I put in the preamble \firstlinenum{1}
\linenumincrement{1} to make lineno numbering all "lines" (= sentences).

Dirk-Jan Dekker

unread,
Aug 15, 2005, 1:06:32 AM8/15/05
to
lepidus wrote:

> I am preparing an edition of a dialogue text with ledmac. I would like
> to use sentencenumbers instead of linenumbers as references for my
> critical and explanatory apparatus. I thought of using the \startlock
> and \endlock commands as described in Wilson manual (pp. 12-13). I have
> marked up the text as follows, but the commands seem to work randomly
> (sometimes yes sometimes no). Any ideas?

Is question 28 of the ledmac Q&A at http://www.djdekker.net/ledmac/
of any help to you?

Dirk-Jan

--
Dirk-Jan Dekker
Radboud University Nijmegen
djdekker at let dot ru dot nl

lepidus

unread,
Aug 15, 2005, 12:46:06 PM8/15/05
to
Thank you for your reply. I was hoping to have a ledmac specialist
giving me a hint on that issue. My goal is to get rid of linenumbers,
forcing lineno to number the sentences instead, printing the
sentencenumbers in the margin. I know that you (and Peter Wilson)
explained how to number paragraphs, but I would like to be able to
number the sentences without breaking a line. I thought \startlock and
\endlock would help me in that direction.

Question 28 of the ledmac Q&A (thank you!) explains how to place the
numbers WITHIN the text not in the MARGIN. Is there a way to change
the commands keeping the same (or a similar) system of coding?

Stefano

lepidus

unread,
Aug 15, 2005, 12:51:47 PM8/15/05
to
Addendum. Of course, the \bibleverse solution is a good compromise. If
it is not possible to place the number in the margin I would probably
use it. The nice effect that \startlock and \endlock (if the were
working properly) would allow is that the numbering would be
automatic. I have little experience on how changing counters, though.

Dirk-Jan Dekker

unread,
Aug 16, 2005, 1:30:27 AM8/16/05
to
lepidus wrote:

[...]

> Question 28 of the ledmac Q&A (thank you!) explains how to place the
> numbers WITHIN the text not in the MARGIN. Is there a way to change
> the commands keeping the same (or a similar) system of coding?

You could change the new command \bibleverse (qu. 28) like this:

\newcommand{\bibleverse}[1]{%
\ledsidenote{#1}%
\setline{#1}%
}

Section 11 of the ledmac manual explains sidenotes.

lepidus

unread,
Aug 16, 2005, 7:49:43 AM8/16/05
to
Excellent! Thank you very much. There is another problem, though. What
if I have two "bibleverses" on the same line?

\startbibleverse \bibleverse{1} In labore fructus. \bibleverse{2} In
amore fructus. \stopbibleverse

Is there a way to put on the same margin something like 1, 2? Making
the footnotes working properly?

\startbibleverse \bibleverse{1} In \edtext{labore}{\Afootnote{amore}}
fructus. \bibleverse{2} In \edtext{amore}{Afootnote{labore}} fructus.
\stopbibleverse

1. labore] amore 2. amore] labore

Stefano

lepidus

unread,
Aug 16, 2005, 10:51:30 AM8/16/05
to
I tried two things.

[1]
\noindent\startbibleverse\bibleverse{1}In labore fructus etc. etc.
etc.\stopbibleverse
It works, but I get some space (which is not connected with
carriage_return or blank spaces in the code) at the beginning of the
paragraph. The subsequent lines work fine. Should I place something
like \llap or similar?

[2] I tried to automatize the numbering (which is useful if later, in
rereading the text, I need to make changes in the numeration, like
adding or eliminating one \bibleverse withouth having to change the
numeration for the rest of the paragraph)

\newcounter{bverse}\setcounter{bverse}{0}
\newcommand{\bibleverse}{%
\addtocounter{bverse}{1}
\ledsidenote{\thebverse}
\setline{\thebverse}

It does not work...

I have not tried to see if it is possible to place in the margin two
references occurring in the same line. [desideratum 3]

Thank you for any hint.

Stefano

lepidus

unread,
Aug 16, 2005, 10:54:23 AM8/16/05
to
I forgot to write (here, not in my preamble) one "}" at the end of code
[2]. Sorry.

Dirk-Jan Dekker

unread,
Aug 16, 2005, 3:36:50 PM8/16/05
to
lepidus wrote:

[...]

> [1]
> \noindent\startbibleverse\bibleverse{1}In labore fructus etc. etc.
> etc.\stopbibleverse
> It works, but I get some space (which is not connected with
> carriage_return or blank spaces in the code) at the beginning of the
> paragraph. The subsequent lines work fine. Should I place something
> like \llap or similar?

Add a comment sign after \setcounter{firstlinenum}{999} in the
definition of \startbibleverse. The space should disappear.


> [2] I tried to automatize the numbering (which is useful if later, in
> rereading the text, I need to make changes in the numeration, like
> adding or eliminating one \bibleverse withouth having to change the
> numeration for the rest of the paragraph)
>
> \newcounter{bverse}\setcounter{bverse}{0}
> \newcommand{\bibleverse}{%
> \addtocounter{bverse}{1}
> \ledsidenote{\thebverse}
> \setline{\thebverse}
>
> It does not work...

I'm getting a "Runaway argument" error message, which often indicates
that a closing brace was forgotten. In fact, a closing brace is missing
after \setline{\thebverse}.

Dirk-Jan Dekker

unread,
Aug 16, 2005, 4:03:53 PM8/16/05
to
lepidus wrote:
> I forgot to write (here, not in my preamble) one "}" at the end of code
> [2]. Sorry.

Ah I see... I tried the new definition and it seems that something is
wrong in the code of \ledsidenote. If two \bibleverse commands are
issued shortly after each other, only one sidenote gets printed; if
there is enough text between the \bibleverse's, both get printed. You
could look in the ledmac manual for clues.

Dirk-Jan

lepidus

unread,
Aug 17, 2005, 5:48:32 PM8/17/05
to
The automatic numbering of sentences (or bibleverses, if you like) does
not work. I don't know why. I am experiencing the same problem as
before: randomness! That is the numbering sometimes occurs correctly
sometimes it does not. Perhaps \startlock and \endlock don't work
consistently when applied to several sections.

Again:

[1]


\newcounter{bverse}\setcounter{bverse}{0}
\newcommand{\bibleverse}{%

\addtocounter{bverse}{1}%
\ledsidenote{\thebverse}%
\setline{\thebverse} %
}% now it is here the missing }%

At the beginning of each section I wrote:
\setcounter{bverse}{0}
to reset the counter, but sometimes the numbering of the "bibleverses"
starts at two, sometimes correctly at one, sometimes at three and so
on.

Moreover:

[2]
The footenotes continue to refer to the linenumbers and not to the new
"bibleverses".

[3]
John Burt kindly made me realize that marn.sty allows to number more
than one sentence in a line, putting on the margin 1, 2, 3, ... But it
is not possible to use marn.sty within ledmac. I would switch to
poemscol, but I have already formatted my text with footnotes in
ledmac...

Thank you very much for you time,

Stefano

P.S. If some of you could tell me: "no this is not possible to do with
ledmac" at least I knew it.

Dirk-Jan Dekker

unread,
Aug 18, 2005, 1:07:26 AM8/18/05
to
lepidus wrote:

> The automatic numbering of sentences (or bibleverses, if you like) does
> not work. I don't know why. I am experiencing the same problem as

> before: randomness! [...]


>
> At the beginning of each section I wrote:
> \setcounter{bverse}{0}
> to reset the counter,

Could you please post a minimal complete example that shows the problem?


> Moreover:
>
> [2]
> The footenotes continue to refer to the linenumbers and not to the new
> "bibleverses".

You can make ledmac refer to the sentence number instead of the line
number by adapting the \printlines macro (see lines 1234--1243 in
ledmac v0.7). The manual explains the seven arguments of \printlines.

Peter Wilson

unread,
Aug 18, 2005, 1:12:24 PM8/18/05
to

"Dirk-Jan Dekker" <djde...@see.sig.below> wrote in message
news:slrndg4hkt....@oecumenicum.lan...

The clue in the ledmac manual is in section 11 where it says you can't
have two sidenotes on the same side for a single line.

Peter W.


lepidus

unread,
Aug 18, 2005, 2:21:44 PM8/18/05
to
Ledmac manuar reads at p. 25:

"If two, say, \ledleftnote, commands are called in the same line the
second htexti will obliterate the first. There is no problem though
with having both a left and a
right sidenote on the same line."

This means that it is not possible to print in the output, say, <1,2>
on the same margin? This is the standard for Italian prose text
editions that use sentence numbers as references. Isn't it possible to
define an "if-else" macro to print two references on the same line? I
am sorry, I cannot do it alone...

The following code works fine for numbering the sentences, if one
sentence occurs in one line. I need to keep the right margin for
"marginalia". The problem here is that these numbers do not show up in
the footnotes. I am still trying to understand how the \printlines
\setlines mechanism work in order to make ledmac using the sentence. I
am also trying to modify the \edtext macro to meet that goal. Am I
loosing my time?


%% SENTENCENUMBERING
\newcommand{\startsnt}{%
\startlock
\setcounter{firstlinenum}{999}%
}
\newcounter{sntcnt}\setcounter{sntcnt}{0}
\newcommand{\snt}{%
\addtocounter{sntcnt}{1}%
\ledleftnote{\numlabfont \thesntcnt}%
\setline{\thesntcnt}}
\newcommand{\stopsnt}{%
\endlock
\setcounter{firstlinenum}{10000}%
}

lepidus

unread,
Aug 18, 2005, 2:53:05 PM8/18/05
to
Here is the complete example asked (Dirk-Jan Dekker):

\documentclass[11pt]{article}
\usepackage{ledmac}
\usepackage[latin1]{inputenc}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}

\makeatletter
%
\renewcommand{\notenumfont}{\footnotesize}
\newcommand{\notetextfont}{\footnotesize}
\renewcommand{\numlabfont}{\footnotesize}
\bigskipamount=14pt plus 7pt minus 7pt
%
%% SPEAKERS
\newcounter{speakercnt} \setcounter{speakercnt}{0}
\newcommand{\newspeaker}[1]{%
\refstepcounter{speakercnt}%
\noindent\llap{\notenumfont#1~\thespeakercnt\hspace{12pt}}}
%
%% TURNS
\newcommand{\turn}{%
\setcounter{pgfcnt}{0}
\medskip\noindent}
%
%% FOOTNOTES FORMAT
%
\renewcommand{\edtext}[2]{\leavevmode%=== I modified \edtext to
%insert the sentence number, but I get also a numbered line
%calculated (who knows why?) according to the page lineation%
\begingroup
\no@expands
\xdef\@tag{#1}\relax
\set@line
\global\insert@count=0
\ignorespaces \linenum{||\the\c@pgfcnt}#2\relax
\flag@start
\endgroup
#1%
\ifx\end@lemmas\empty%
\else
\gl@p\end@lemmas\to\x@lemma
\x@lemma
\global\let\x@lemma=\relax
\fi
\flag@end}
%
% Transcription [A]
\newcommand{\newpaleofootfmt}[3]{%
\ledsetnormalparstuff
\notenumfont\printlines#1|\enspace%
{\select@lemmafont#1|#2\rbracket}\enskip #3\penalty-10}
%

%% SENTENCENUMBERING
\newcommand{\startpgf}{%


\startlock
\setcounter{firstlinenum}{999}%
}

\newcounter{pgfcnt}\setcounter{pgfcnt}{0}
\newcommand{\pgf}{%
\addtocounter{pgfcnt}{1}%
\ledleftnote{\numlabfont \thepgfcnt}%
\setline{\thepgfcnt}}
\newcommand{\stoppgf}{%


\endlock
\setcounter{firstlinenum}{10000}%
}

%
%% MARGINALIA ALLIGNMENT
\newcommand*{\allignmarginalia}[3]{%
{\parindent\z@\hsize=\ledrsnotewidth\ledrsnotefontsetup%
\global\setbox\l@drp@rbox=\vbox to\z@{#3\vss}}}% aligns on top line
\let\setl@drp@rbox=\allignmarginalia%
%
%% NOTES STYLES
\footparagraph{A}
\let\Afootfmt=\newpaleofootfmt
\let\paleo=\Afootnote
\renewcommand{\interparanoteglue}{1em plus.5em minus.1em}
%
\lineation{section}
\makeatother

\begin{document}
%========== POLYSOPHO 1 ==========%
\beginnumbering\pstart\skipnumbering\newspeaker{PO}
\centerline{POLYSOPHO}
\pend
%========== TURN ==========%
\pstart\turn \startpgf \pgf A questi giorni passati,
\edtext{clementissimo}{\paleo{clmentissimo}} Signore mio, hanno
insieme meco Amore e Reverenza summamente contrastato.~\pgf Da uno
canto, Reverenza me ha tenuto ritratto et arestito interrogarti e
chiederti quello che, non lo chiedendo, me è uno coltello e,
chiedendolo, ho temuto essere accusato da te de arroganza e
presoncione.~\pgf Perché, quantunque talvolta tu mi
\edtext{riconoschi}{\paleo{riconosci. \textbf{Instead of 4 here it
would be nice to have PO 1.}}} per preceptore e tu ti degni
imparare qualche doctrina da me, non è però che io non te habbia per
mio observandissimo signore, e in me non gli acada verso di te la
servitute;\pgf\ledrightnote{marginalia should allign at sent. 4
and not lower} la qual pare che licitamente non comporti che io
habbia ardire adimandarti quello che è secreto collocato nel tuo
pecto e che è fuori de l'offitio et exercitio che io ho a fare;~\pgf
la quale cosa die' fugire e schiffare qualunque discreto e amorevole
servitore.~\pgf Da l'altro, el singulare amore, la pura fede,
isviscerata dilectione e dolce benivolenza ti porto, ha vinta e
superata la reverenza.~\pgf E atterratala e gettatala sotto li
piedi, non me ho potuto contenere che io non mi sia quivi
ingienocchiato inanzi al tuo dulcissimo conspecto\ldots
\pend
\pstart
\pgf Tu dèi sapere, benignissimo Signore mio, che innumerabili sono et
infiniti
li benifitii che continuo mi sono conferiti e contribuiti da te; per
li quali, posso credere e existimare che me ami e che assai sia la
dilectione mi porti.
\stoppgf \pend\endnumbering\bigskip
%========== ARCHOPHILO 1 ==========%
\beginnumbering\pstart\newspeaker{AR}
\centerline{ARCHOPHILO} \pend
%========== TURN ==========%
\pstart\turn \startpgf \pgf Ahimè, quanto è cosa dignissima di
laude, gloria e commendacione, uno signore havere conversatione de
homini docti e valenti, e havere virtuosi sempre seco in compagnia,
e fugire gli adulatori, maldicenti, invidi e malivoli, da cui, se
non fraude e inganni, e \edtext{pessimi}{\paleo{just another note.
\textbf{And here AR 1.}}} costumi resurgono e provengono; ché,
conversando e praticando loro, ogni celeste e angelica natura in
perfida, nequissima e diabolica si pervertiria!~\pgf Ahimè, quanto è
dolce ioconda e suavissima cosa, la vita con quelli consumare, dai
quali, continuamente conferendo, fructo e dolceza di doctrina si
colga, e sapienza, e precepti se imparino, e documenti, tali che fia
la vita loro eterna et immortale!~\pgf Che altro è, nì nobeltate nì
signoria, se non la propria vera purissima virtute?~et essere
possessore di quelle cose che in sé contengano perpetuitate e
eternitate, e non che 'l tempo e la etate le consumi e infatisca, e
fortuna le vexi contamini et adversi?~\pgf Clausule hora ho audite,
et argumenti, con ragione da me mai più intese, viste e
conosciute\ldots.
\stoppgf \pend\endnumbering
\end{document}

bu...@brandeis.edu

unread,
Aug 18, 2005, 6:30:13 PM8/18/05
to
Perhaps one way to do this is to have only every other sentence.
Alternatively, you can have the sentence numbers in the running text
--- perhaps as superscripts --- and put the paragraph numbers in the
margin. (That's how they do it in the Bible, mostly, isn't it?).
John

bu...@brandeis.edu

unread,
Aug 18, 2005, 6:38:38 PM8/18/05
to
I just had a thought about how to do this, but I haven't worked it out.
Here's my thought:
In the code to ledmac there is a line where it \vsplits off a line from
the box, appends a line number, then writes it to the main vertical
list. I think I'd do this:
define a token register.
define the sentence command to append ", <the sentence number> to that
token (if there are other numbers in it, or just to append the number
if there isn't.
\renewcommand the line where ledmac adds the line number to
1. put in the contents of the token register instead of the number
and
2. clear the token register.

As I said, I haven't searched through ledmac to find this moment, but I
bet it would work.

bu...@brandeis.edu

unread,
Aug 18, 2005, 6:38:44 PM8/18/05
to

Dirk-Jan Dekker

unread,
Aug 19, 2005, 6:56:34 AM8/19/05
to
Stefano,

Thanks for the complete example. Now I understand better what you
are looking for. The code below should get you in the right
direction.

Dirk-Jan

=======================================
\documentclass[11pt]{article}
\usepackage[italian]{babel}


\usepackage{ledmac}
\usepackage[latin1]{inputenc}

\usepackage[T1]{fontenc}


\makeatletter
\def\printlines#1|#2|#3|#4|#5|#6|#7|{\begingroup
\setprintlines{#1}{#2}{#3}{#4}{#5}{#6}%
\ifl@d@pnum #1\fullstop\fi
% \ifledplinenum \linenumrep{#2}\else \symplinenum\fi
\speaker\csname the\speaker turn\endcsname\fullstop#2%
\ifl@d@ssub \fullstop \sublinenumrep{#3}\fi
% \ifl@d@dash \endashchar\fi
\ifl@d@pnum #4\fullstop\fi
% \ifl@d@elin \linenumrep{#5}\fi
\ifl@d@esl \ifl@d@elin \fullstop\fi \sublinenumrep{#6}\fi
\endgroup}
\makeatother


\renewcommand{\notenumfont}{\footnotesize}
\newcommand{\notetextfont}{\footnotesize}
\renewcommand{\numlabfont}{\footnotesize}

\firstlinenum{9999}
\linenumincrement{1}

\bigskipamount=14pt plus 7pt minus 7pt

\newcounter{sentence}\setcounter{sentence}{0}

%% SPEAKERS
\newcommand{\speaker}{}
\newcommand{\speakername}{}
\newcounter{POturn}\setcounter{POturn}{0}
\newcounter{ARturn}\setcounter{ARturn}{0}
\newcounter{PIturn}\setcounter{PIturn}{0}


\newcommand{\newspeaker}{%
\noindent\llap{\notenumfont\speaker~%
\csname the\speaker turn\endcsname\hspace{12pt}}%
\centerline{\speakername}%
\setcounter{sentence}{0}
}

\newcommand{\Polysopho}{%
\renewcommand{\speaker}{PO}
\renewcommand{\speakername}{POLYSOPHO}
\refstepcounter{POturn}
\newspeaker
}

\newcommand{\Archophilo}{%
\renewcommand{\speaker}{AR}
\renewcommand{\speakername}{ARCHOPHILO}
\refstepcounter{ARturn}
\newspeaker
}

\newcommand{\Pistotato}{%
\renewcommand{\speaker}{PI}
\renewcommand{\speakername}{PISTOTATO}
\refstepcounter{PIturn}
\newspeaker
}


%% TURNS
\newcommand{\turn}{\medskip\noindent}

%% SENTENCENUMBERING

\newcommand{\pgf}{\stepcounter{sentence}
\ledleftnote{\numlabfont{\thesentence}}%
}


\let\oldedtext=\edtext
\renewcommand{\edtext}[2]{%
\oldedtext{#1}{\linenum{|\thesentence}#2}%
}


%% FOOTNOTES FORMAT
% Transcription [A]
\makeatletter


\newcommand{\newpaleofootfmt}[3]{%
\ledsetnormalparstuff
\notenumfont\printlines#1|\enspace%
{\select@lemmafont#1|#2\rbracket}\enskip #3\penalty-10%
}

\makeatother

%% NOTES STYLES
\footparagraph{A}
\let\Afootfmt=\newpaleofootfmt
\let\paleo=\Afootnote
\renewcommand{\interparanoteglue}{1em plus.5em minus.1em}


%% MARGINALIA ALLIGNMENT
\makeatletter


\newcommand*{\allignmarginalia}[3]{%
{\parindent\z@\hsize=\ledrsnotewidth\ledrsnotefontsetup%
\global\setbox\l@drp@rbox=\vbox to\z@{#3\vss}}}% aligns on top line
\let\setl@drp@rbox=\allignmarginalia%

\makeatother


\begin{document}
%========== POLYSOPHO 1 ==========%

\beginnumbering\Polysopho

%========== TURN ==========%
\pstart\turn\pgf A questi giorni passati,
\edtext{clementissimo}{\linenum{|\thesentence}\paleo{clmentissimo}}


Signore mio, hanno
insieme meco Amore e Reverenza summamente contrastato.~\pgf Da uno
canto, Reverenza me ha tenuto ritratto et arestito interrogarti e
chiederti quello che, non lo chiedendo, me è uno coltello e,
chiedendolo, ho temuto essere accusato da te de arroganza e
presoncione.~\pgf Perché, quantunque talvolta tu mi

\edtext{riconoschi}{\paleo{riconosci.}} per preceptore e tu ti degni


imparare qualche doctrina da me, non è però che io non te habbia per
mio observandissimo signore, e in me non gli acada verso di te la

servitute;\pgf\ledrightnote{marginalia} la qual pare che licitamente


non comporti che io
habbia ardire adimandarti quello che è secreto collocato nel tuo
pecto e che è fuori de l'offitio et exercitio che io ho a fare;~\pgf
la quale cosa die' fugire e schiffare qualunque discreto e amorevole
servitore.~\pgf Da l'altro, el singulare amore, la pura fede,
isviscerata dilectione e dolce benivolenza ti porto, ha vinta e
superata la reverenza.~\pgf E atterratala e gettatala sotto li
piedi, non me ho potuto contenere che io non mi sia quivi
ingienocchiato inanzi al tuo dulcissimo conspecto\ldots

\pgf Tu dèi sapere, benignissimo Signore mio, che innumerabili sono
et infiniti
li benifitii che continuo mi sono conferiti e contribuiti da te; per
li quali, posso credere e existimare che me ami e che assai sia la
dilectione mi porti.

\pend\endnumbering\bigskip
%========== ARCHOPHILO 1 ==========%

\beginnumbering\Archophilo
%========== TURN ==========%
\pstart\turn \pgf Ahimè, quanto è cosa dignissima di


laude, gloria e commendacione, uno signore havere conversatione de
homini docti e valenti, e havere virtuosi sempre seco in compagnia,
e fugire gli adulatori, maldicenti, invidi e malivoli, da cui, se
non fraude e inganni, e

\edtext{pessimi}{\linenum{|\thesentence}\paleo{just another note.}}

costumi resurgono e provengono; ché,
conversando e praticando loro, ogni celeste e angelica natura in
perfida, nequissima e diabolica si pervertiria!~\pgf Ahimè, quanto è
dolce ioconda e suavissima cosa, la vita con quelli consumare, dai
quali, continuamente conferendo, fructo e dolceza di doctrina si
colga, e sapienza, e precepti se imparino, e documenti, tali che fia
la vita loro eterna et immortale!~\pgf Che altro è, nì nobeltate nì
signoria, se non la propria vera purissima virtute?~et essere
possessore di quelle cose che in sé contengano perpetuitate e
eternitate, e non che 'l tempo e la etate le consumi e infatisca, e
fortuna le vexi contamini et adversi?~\pgf Clausule hora ho audite,
et argumenti, con ragione da me mai più intese, viste e
conosciute\ldots.

\pend\endnumbering
\end{document}

lepidus

unread,
Aug 19, 2005, 10:38:02 AM8/19/05
to
Many, many thanks. YES! I had already marked up manually the
sentencenumbers using the \bibleverse format. But this solution is much
better, since I can change one paragraph of a long turn without beign
force to alter the rest of the sequence: everything is done
automatically!

One problem, though. The allignment of the marginalia still does not
work. It shows up in the OP a half lineheight lower. Why is so?

%% MARGINALIA ALLIGNMENT
\makeatletter
\newcommand*{\allignmarginalia}[3]{%
{\parindent\z@\hsize=\ledrsnotewidth\ledrsnotefontsetup%
\global\setbox\l@drp@rbox=\vbox to\z@{#3\vss}}}% aligns on top line
\let\setl@drp@rbox=\allignmarginalia%
\makeatother

This is becoming more problematic, because I think I have found
(theoretically) a possible solution for getting two numbers on the left
marging in correspondence of two sentences on the same line. Here is my
thought (could you tell me if it may work?):

In this situation, the ledmac manual suggests to use in one case the
left margin and in the other the right one. If I change the \linenumsep
for \ledrightnote to a huge negative value in pc to make it go on the
other side of the page before the regular sentencenumber placed on the
left margin, maybe we can solve the problem. We would then create the
footnote for the apparatus using the right marginal note with the huge
\linenumsep. Does that make sense?

Thank you again!

Stefano

Dirk-Jan Dekker

unread,
Aug 19, 2005, 11:17:52 AM8/19/05
to
Stefano,

I'm glad to read that it's working for you.

I don't really understand why the notes align properly in the left
margin but appear too low in the right margin. The code for both margins
looks the same except for the letters 'l' and 'r' in the command names.
The hack that you propose could work, but, alternatively, you could try
to change this line:

\global\setbox\l@drp@rbox=\vbox to\z@{#3\vss}}}% aligns on top line

into this (try some values until the note gets aligned correctly):

\global\setbox\l@drp@rbox=\vbox to.7\baselineskip{#3\vss}}}%

Dirk-Jan


P.S. In my previous posting I accidentally left \linenum{|\thesentence}
twice inside the argument of \edtext (in PO1 and in AR1). Of course, you
don't need to define \linenum manually anymore, because it is already
incorporated in the revised definition of \edtext.

lepidus

unread,
Aug 19, 2005, 12:43:18 PM8/19/05
to
Thank you, again, I got the correct allignment now. Another question
regarding \edtext. Is it possible to leave the \edtext as default and
implement the variation manually at the first occurrence of the note
for each turn? In this way the turn label (PO 1, AR 1 etc.) would
appear in the footnotes only to indicate the turn change, leaving the
rest of the notes marked just with the sentence number?

I know that you have suggested something similar for linemarkup. In one
of your examples, you have omitted to repeat the same linenumber if the
variation occurs on the same line. Can I use the same principle to omit
[1] the turn label (if it is the same), [2] the sentence number (if it
is the same)?

Stefano

Dirk-Jan Dekker

unread,
Aug 19, 2005, 5:31:05 PM8/19/05
to
lepidus wrote:
> Thank you, again, I got the correct allignment now. Another question
> regarding \edtext. Is it possible to leave the \edtext as default and
> implement the variation manually at the first occurrence of the note
> for each turn? [...]

Yes, this is possible, but then you would somehow have to store the
speaker and the sentence number until the next footnote. The use of
\ledplinenum in ledmac.sty and the redefinition of \para@vfootnote
in the first sample edition on my web site could probably provide
some clues on how to accomplish this.

Dirk-Jan

lepidus

unread,
Aug 19, 2005, 7:24:38 PM8/19/05
to
Thank you. I will try, then.

Stefano

P.S. Many thanks again. I have tested the new macros to number the
sentences (or sub-paragraphs if you like) on my entire text and
everything work fine! I guess your solution constitutes a reply also to
the question that somebody, back in July, asked about sentence numbers
for an edition of Lucian's "Dialogi marini" (without obtaining any
suggestion, though).

0 new messages