aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-05-13 16:15:29 +0200
committerRobert Alessi <alessi@robertalessi.net>2021-05-13 16:15:29 +0200
commitb87c5d705f6a0af952975f166c1eb6fbc6e1e036 (patch)
tree7614ed7a4e2d517281d233d8f4e83c33ec1221a9
parent4d026695515a2b4e160e598c5f465f3d9a09a004 (diff)
downloadekdosis-b87c5d705f6a0af952975f166c1eb6fbc6e1e036.tar.gz
do not print page numbers ahead entries that span across pages when lineation is set to document
-rw-r--r--ekdosis.dtx31
1 files changed, 21 insertions, 10 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index b925713..d005c0f 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -61,7 +61,7 @@ along with this program. If not, see
61%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] 61%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
62%<package>\ProvidesPackage{ekdosis} 62%<package>\ProvidesPackage{ekdosis}
63%<*package> 63%<*package>
64 [2021/05/07 v1.3-dev Typesetting TEI xml-compliant critical editions] 64 [2021/05/13 v1.3-dev Typesetting TEI xml-compliant critical editions]
65%</package> 65%</package>
66%<*driver> 66%<*driver>
67\begin{filecontents}[noheader,overwrite]{bibdata.xml} 67\begin{filecontents}[noheader,overwrite]{bibdata.xml}
@@ -7508,7 +7508,7 @@ Sample text with a \textcolor{red}{word} in red.
7508% \end{macrocode} 7508% \end{macrocode}
7509% \end{macro} 7509% \end{macro}
7510% \begin{macro}{\teidirect} 7510% \begin{macro}{\teidirect}
7511% \changes{v1.3}{2021/05/07}{direct insertion of elements in the 7511% \changes{v1.3}{2021/05/13}{direct insertion of elements in the
7512% \texttt{TEI xml} file} 7512% \texttt{TEI xml} file}
7513% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} 7513% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
7514% does nothing in \LaTeX. Its only use is to insert elements in the 7514% does nothing in \LaTeX. Its only use is to insert elements in the
@@ -7862,7 +7862,7 @@ Sample text with a \textcolor{red}{word} in red.
7862% \end{macrocode} 7862% \end{macrocode}
7863% \end{macro} 7863% \end{macro}
7864% \begin{macro}{\SetApparatusNoteLanguage} 7864% \begin{macro}{\SetApparatusNoteLanguage}
7865% \changes{v1.3}{2021/05/07}{defines an alternate language to be 7865% \changes{v1.3}{2021/05/13}{defines an alternate language to be
7866% applied in note apparatus entries} 7866% applied in note apparatus entries}
7867% \cs{SetApparatusNoteLang}\marg{languagename} can be used when 7867% \cs{SetApparatusNoteLang}\marg{languagename} can be used when
7868% it is needed to apply in entries introduced by the \cs{note} command 7868% it is needed to apply in entries introduced by the \cs{note} command
@@ -8216,9 +8216,14 @@ Sample text with a \textcolor{red}{word} in red.
8216 \fi 8216 \fi
8217 \fi% 8217 \fi%
8218 \else 8218 \else
8219 \LRnum{\getrefnumber{#1}}--% 8219 \ifekd@pagelineation
8220 \LRnum{\getpagerefnumber{#2}}.% 8220 \LRnum{\getrefnumber{#1}}--%
8221 \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos 8221 \LRnum{\getpagerefnumber{#2}}.%
8222 \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos
8223 \else
8224 \LRnum{\getrefnumber{#1}}--%
8225 \LRnum{\getrefnumber{#2}}\unexpanded\expandafter{\ekd@postrefnum}% issue the nos
8226 \fi
8222 \fi% 8227 \fi%
8223 \ifekdn@forcenum 8228 \ifekdn@forcenum
8224 \LRnum{\getrefnumber{#1}}\unexpanded\expandafter{\ekd@postrefnum}% force the no 8229 \LRnum{\getrefnumber{#1}}\unexpanded\expandafter{\ekd@postrefnum}% force the no
@@ -8334,10 +8339,16 @@ Sample text with a \textcolor{red}{word} in red.
8334 \fi 8339 \fi
8335 \fi% 8340 \fi%
8336 \else 8341 \else
8337 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--% 8342 \ifekd@pagelineation
8338 \LRnum{\getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}.% 8343 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--%
8339 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}% 8344 \LRnum{\getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}.%
8340 \unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos 8345 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}%
8346 \unexpanded\expandafter{\ekd@postrefnum}% issue pg and ln nos
8347 \else
8348 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}--%
8349 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}}%
8350 \unexpanded\expandafter{\ekd@postrefnum}% issue the nos
8351 \fi
8341 \fi% 8352 \fi%
8342 \ifekdl@forcenum 8353 \ifekdl@forcenum
8343 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% 8354 \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}%