Reledmac/Reledmac:重复索引条目

Reledmac/Reledmac:重复索引条目

我在使用 Reledpar 和 Imakeidx 时遇到了一个非常奇怪的问题。如果您将同一个对象放入同一个索引中,如果该条目位于 Endonotes 中,则它会重复。

更奇怪的是,该问题仅出现在像 {Pippo \textsc{iii}} 这样的名字上,而不出现在单个单词的名字上。

我已经尝试过像 Pippo \textsc{iii}@Pippo \textsc{iii} 这样的东西,但没有效果。

以下是 MWE:

\documentclass[10pt, twoside, openright]{book}

\usepackage{fontspec}
\newfontfamily\unicodefont{Garamond Premier Pro}  
\newfontfamily\SlantedFont{Garamond Premier Pro}
\setmainfont[]{Garamond Premier Pro}            
\newfontfamily\greekfont{Garamond Premier Pro}
\usepackage{polyglossia}                        
    \setmainlanguage{italian}
    \setotherlanguage[]{greek}          

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% INDICI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{morewrites}                             % Risolve il problema di Reledmac con gli indici multipli
\usepackage{imakeidx}
\indexsetup{othercode=\footnotesize}
\makeindex[name=nomi, intoc=true, title=Indice dei nomi]

%%%%%%%%%%%%%%%%%%%%% COMANDI RELEDMAC / RELEDPAR %%%%%%%%%%%%%%%%%%%%%%
\usepackage[noledgroup,                                 % Escludo l'uso di note dentro minipage
            noeledsec,                                  % Non uso comandi di sezionamento tipo chapter, section, etc all'interno del txt critico
            series={A,B}]{reledmac}                     % Restringo le serie di note alle sole che uso
\usepackage[shiftedpstarts, nomaxlines]{reledpar}            % settaggi di sincronia. % advancedshiftedpstarts


%%%%%%%%%%%%%%%%%%% INIZIO DOCUMENTO %%%%%%%%%%%%%%%%%%%%%%
\begin{document}

Pippo\index[nomi]{Pippo \textsc{iii}}

\cleardoublepage

\selectlanguage{greek}  
\begin{pages}
\begin{Leftside}
\beginnumbering
\numberpstarttrue
\pagenumbering{arabic}
\setcounter{page}{2}
\pstart 
Ἐν πολλοῖς μέν εἰσιν οἱ ἔλεγχοι \edtext{πολυστίχοις}{\Afootnote{πολιστίχοις }} \edtext{ἐσπαρμένοι}{\Afootnote{ἐπαρμένοι FP ἐγκατεσπαρμένοι J}} λόγοις, δι’ ὧν ἡ ὀφρὺς κατασπᾶται τῶν τὴν ἀλήθειαν ἐν ἀδικίᾳ κατέχειν φιλονεικούντων. \pend

\endnumbering
\end{Leftside}

\selectlanguage{italian}        
\begin{Rightside}
\beginnumbering
\numberpstarttrue
\normalsize
\pstart
Hello my dear friend Pippo\index[nomi]{Pippo \textsc{iii}} you are a good, \edtext{friend}{\Bendnote{Pippo\textsc{\index[nomi]{Pippo \textsc{iii}}}}} and that's all.\pend

\endnumbering
\end{Rightside}
\end{pages}
\Pages              

\doendnotes{B}
\printindex[nomi]
\end{document}

答案1

作为一个临时的解决办法,如果您以“错误的方式”写下所有条目,即在 \textsc 和 {iii} 之间留两个空格,您就可以绕过这个问题。

我知道这不是解决办法,只是作弊而已

\documentclass[10pt, twoside, openright]{book}%openany

\usepackage{fontspec}
\newfontfamily\unicodefont{Garamond Premier Pro}  
\newfontfamily\SlantedFont{Garamond Premier Pro}
\setmainfont[]{Garamond Premier Pro}            
\newfontfamily\greekfont{Garamond Premier Pro}
\usepackage{polyglossia}                        
    \setmainlanguage{italian}
    \setotherlanguage[]{greek}          

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% INDICI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{morewrites}                             % Risolve il problema di Reledmac con gli indici multipli
\usepackage{imakeidx}
\indexsetup{othercode=\footnotesize}
\makeindex[name=nomi, intoc=true, title=Indice dei nomi]

%%%%%%%%%%%%%%%%%%%%% COMANDI RELEDMAC / RELEDPAR %%%%%%%%%%%%%%%%%%%%%%
\usepackage[noledgroup,                                 % Escludo l'uso di note dentro minipage
            noeledsec,                                  % Non uso comandi di sezionamento tipo chapter, section, etc all'interno del txt critico
            series={A,B}]{reledmac}                     % Restringo le serie di note alle sole che uso
\usepackage[shiftedpstarts, nomaxlines]{reledpar}            % settaggi di sincronia. % advancedshiftedpstarts


%%%%%%%%%%%%%%%%%%% INIZIO DOCUMENTO %%%%%%%%%%%%%%%%%%%%%%
\begin{document}

Pippo\index[nomi]{Pippo \textsc  {iii}}

\cleardoublepage

\selectlanguage{greek}  
\begin{pages}
\begin{Leftside}
\beginnumbering
\numberpstarttrue
\pagenumbering{arabic}
\setcounter{page}{2}
\pstart 
Ἐν πολλοῖς μέν εἰσιν οἱ ἔλεγχοι \edtext{πολυστίχοις}{\Afootnote{πολιστίχοις }} \edtext{ἐσπαρμένοι}{\Afootnote{ἐπαρμένοι FP ἐγκατεσπαρμένοι J}} λόγοις, δι’ ὧν ἡ ὀφρὺς κατασπᾶται τῶν τὴν ἀλήθειαν ἐν ἀδικίᾳ κατέχειν φιλονεικούντων. \pend

\endnumbering
\end{Leftside}

\selectlanguage{italian}        
\begin{Rightside}
\beginnumbering
\numberpstarttrue
\normalsize
\pstart
I want to kill all these indents, please. Poiché dunque Pippo\index[nomi]{Pippo \textsc  {iii}} la tua ricerca, magnifica e cara a Dio, ha richiesto una sinossi degli argomenti per farne uno schema, \edtext{cosa}{\Bendnote{Pippo\textsc{\index[nomi]{Pippo \textsc  {iii}}}}} per noi gradita alla divina provvidenza, vedrai che tale obiettivo non indegno del tuo amor di Dio né della tua richiesta sarà perseguito.\pend

\endnumbering
\end{Rightside}
\end{pages}
\Pages              

\doendnotes{B}
\printindex[nomi]
\end{document}

相关内容