reledmac 中未编号的批评性注释

reledmac 中未编号的批评性注释

下午好!我目前正在使用 Lyx 撰写我的论文(我知道这不是最好的方法,但我还没有足够的信心在没有 Lyx 界面的情况下开展工作),并且我正在使用 reledmac 编写多首诗歌的批判版。起初,我使用 ledgroups 将装置放在诗歌正下方,但这对占用一页以上的诗歌没有帮助(假设有一首 25 行的诗,前 20 行在一页上,其余 5 行在下一页:装置当然在最后 5 行之后,我不知道如何在上一页打印前 20 行的装置)。我最终决定在页面末尾放置多个装置,这个解决方案对我来说很有效。唯一的问题是我想为每个装置添加某种“标题”,其中包含相关诗歌的编号。我发现,我可以通过添加一个注释来解决这个问题,并在诗歌开头用粗体标出诗歌编号,但如果我这样做,注释前面会有行号,而我并不想这样。下面是我的代码示例:

    %% LyX 2.3.7 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[italian]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=4cm,rmargin=3cm}
\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

\usepackage[series={A,B,C,D,E},parapparatus]{reledmac}
\lineation{pstart}
\linenummargin{outer}
\Xarrangement{paragraph}
\Xnumberonlyfirstinline[A,B,C,D,E]
\Xsymlinenum[A,B,C,D,E]{|}
\Xnolemmaseparator
\Xparafootsep{$\parallel$}
\Xafterrule{0pt}

\usepackage{reledpar}
\AtEveryPend{\vskip2\baselineskip}
\usepackage[LGR,T1]{fontenc}
\usepackage[utf8]{inputenc}

\newcommand{\textgreek}[1]{\begingroup\fontencoding{LGR}\selectfont#1\endgroup}

%This is something that I simply copied and pasted to have the note series 'renew' whenever they reached the series E, so that I can just type \edtext{whatever}{\nota{whatever}}  and have one series of note for each \pstart (poem). I have no clue how it works but it works for me  
\makeatletter% We need to use command with @
  % Two counters: one for left and one for right
  \newcounter{mynotelevel}%
    \renewcommand{\themynotelevel}{\Alph{mynotelevel}}% Print the counter as a letter

  % Following lines are called at each \pstart
  \AtEveryPstartCall{%
          \addtocounter{mynotelevel}{1}%Step counter
          \ifnumequal{\arabic{mynotelevel}}{6}{%No more than E series (5)
            \setcounter{mynotelevel}{1}%If more than J => restart to A (1)
          }{}%
            \global\letcs{\nota}{\themynotelevel footnote}%And let mynote be equal to <X>footnote, where <X> is the current level \letcs is defined by etoolbox which called by reledmac

  }
  % This code is called when beginnings of each pstart are printed
  \AtEveryPstart{%
            \else%
        \addtocounter{mynotelevel}{1}%Step counter
        \ifnumequal{\arabic{mynotelevel}}{6}{%No more than E series (5)
          \setcounter{mynotelevel}{1}}{}%% If more than E => restart to A (1)
          \seriesatend{\themynotelevel}% The series should be at the end
    \fi%
   }

\makeatother

\usepackage{babel}
\begin{document}
\begin{pages}

\begin{Leftside}

\beginnumbering

\pstart

\centering{\LARGE{\textbf{LIBER EPIGRAMMATON}}}

\pend

\pstart

\textbf{1 – First poem}\skipnumbering

This is the

\edtext{first}{\nota{primo}}

poem.

Line 4.

Line \edtext{5}{\lemma{}\nota{}five}.

I also need to sometimes use Greek, as in \textgreek{τόπος}.

\pend

\pstart

\textbf{2 – Secondo poem}\skipnumbering\\

This is the 

\edtext{second}{\nota{secondo}} 

poem.

Line \edtext{4}{\lemma{}\nota{four}}

Line 5.

\pend

\pstart

\textbf{3 – Third poem}\skipnumbering\\

This is the

\edtext{third}{\nota{terzo}}

poem

\edtext{Line}{\nota{verso}} 4

Line 5.

\pend

\endnumbering

\end{Leftside}

\begin{Rightside}

\beginnumbering

\numberlinefalse

\pstart

\centering{\LARGE{\textbf{TRADUZIONE}}}}

\pend

\pstart

\textbf{1 – Primo}

This is the translation of the first poem.

 \pend

\newpage

\pstart

\textbf{2 – Secondo}

This is the translation of the second poem.

 \pend

\pstart

\textbf{3 – Terzo}

This is the translation of the third poem.

 \pend

\endnumbering

\end{Rightside}

\end{pages}

\Pages
\end{document}

以下是我想要实现的目标: 在此处输入图片描述

如您所见,我基本上想在每个设备开头带有红色箭头的点上放置一个数字。我希望我已经说清楚了,抱歉,但我对这一切都很陌生,我正在努力学习!感谢那些回答的人。

相关内容