0

Dear all sorry for bothering.

I have a question related to stanza/astanza numbering. Please note that for the .tex I have to compile, I cannot use the package verse.

For a single stanza, I need change the numbering from the normal arabic to arabic+roman (e.g., 1 --> 1 I). I thought to use \numberstanzafalse and to substitute the number of the stanza with \ledinnernote or \ledleftnote, but by using these two commands: 1. the note is closer to the main text as the normal stanza numbering; 2. the font and its size are different; 3. somehow they generate strange font forms (see the screenshot). In reledmac and reledpar manuals, this issue is not dealt with.

Any clue? Thank you in advance!

\documentclass[a4paper,12pt]{book}

\usepackage{reledmac}
\usepackage{reledpar}

\begin{document}

\begin{pages}
\begin{Leftside} 
\beginnumbering
\setstanzaindents{0,0,0,0}
\setcounter{stanzaindentsrepetition}{1}
\numberstanzatrue
\setcounter{stanzaL}{47}
\begin{astanza}
Line& 
Line&
Line&
Line\&
\end{astanza}
\setcounter{stanzaL}{48}
\numberstanzatrue
\begin{astanza}
Line& 
Line&
Line&
Line\&
\end{astanza}
\numberstanzafalse
\endnumbering
\end{Leftside}

%---------

\begin{Rightside} 
\beginnumbering
\setstanzaindents{0,0,0,0}
\setcounter{stanzaindentsrepetition}{1}
\numberstanzafalse
\begin{astanza}
\ledinnernote{\textbf{48 I}}%
Line& %here (and only here) the number should be 1 I instead of 1
Line& 
Line&
Line&
Line\&
\end{astanza}
\setcounter{stanzaR}{48}
\numberstanzatrue
\begin{astanza}
Line& 
Line&
Line&
Line\&
\end{astanza}
\numberstanzafalse
\endnumbering
\end{Rightside}
\end{pages}
\Pages

\end{document}

enter image description here

5

1 Answer 1

2

Do not use a patchwork of "stanza numbering here, sidenotes there", do not waste time in unnecessary manual adjustment. Instead, have the stanza numbering work for you.

Did you look at the manual, sect. 9.10? reledmac allows you to customize the display format of stanza numbers by redefining the commands \thestanza and friends. That is, in the same way you'd customize the look of other LaTeX counter representations (\thepage, \thechapter...).

If you want to append optional text to the automatically generated representation of the counters stanza, stanzaL or stanzaR, add a placeholder to the definitions of \thestanza and friends:

\newcommand{\mysubcounter}{}
\renewcommand{\thestanza}{\textbf{\arabic{stanza}\mysubcounter}}
\renewcommand{\thestanzaL}{\textbf{\arabic{stanzaL}\mysubcounter}}
\renewcommand{\thestanzaR}{\textbf{\arabic{stanzaR}\mysubcounter}}

Then you can specify the realization of \mysubcounter on a case-by-case basis:

\renewcommand{\mysubcounter}{~I}   % gives you "48~I"
\renewcommand{\mysubcounter}{~II}  % gives you "48~II"
\renewcommand{\mysubcounter}{}     % "resets" and gives "48"

Applying this to your case:

\documentclass[a4paper,12pt]{book}

\usepackage{reledmac}
\usepackage{reledpar}
\numberstanzatrue

\newcommand{\mysubcounter}{}
\renewcommand{\thestanzaL}{\textbf{\arabic{stanzaL}\mysubcounter}}
\renewcommand{\thestanzaR}{\textbf{\arabic{stanzaR}\mysubcounter}}

\begin{document}

\begin{pages}
\begin{Leftside} 
\beginnumbering
\setstanzaindents{0,0,0,0}
\setcounter{stanzaindentsrepetition}{1}
%
\begin{astanza}
Line& 
Line&
Line&
Line\&
\end{astanza}
%
\begin{astanza}
Line& 
Line&
Line&
Line\&
\end{astanza}
\endnumbering
\end{Leftside}

%---------

\begin{Rightside} 
\beginnumbering
\setstanzaindents{0,0,0,0}
\setcounter{stanzaindentsrepetition}{1}
%
\renewcommand{\mysubcounter}{~I}%
\begin{astanza}
Line& %here (and only here) the number should be 1 I instead of 1
Line&
Line&
Line\&
\end{astanza}
%
\renewcommand{\mysubcounter}{}
\begin{astanza}
Line& 
Line&
Line&
Line\&
\end{astanza}
\endnumbering
\end{Rightside}
\end{pages}
\Pages

\end{document}

Custom stanza numbering with an appended "I"

2
  • Many thanks, @marquinho!
    – Giacomo
    Apr 3, 2023 at 13:02
  • @Giacomo: Great! If this helped, don't forget to (upvote and) mark the answer as accepted!
    – marquinho
    Apr 3, 2023 at 13:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .