aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-06-05 18:40:57 +0200
committerRobert Alessi <alessi@robertalessi.net>2021-06-05 18:40:57 +0200
commitb430c007a39eb569ca6fc7724d93a000569bd54d (patch)
tree54643b128d6cdf8767cea56743c9d6e6b2545808
parent447055607c51bd143cb3dad73e9e93038408a630 (diff)
downloadekdosis-b430c007a39eb569ca6fc7724d93a000569bd54d.tar.gz
\ekdpb needed a counter of its own
-rw-r--r--ekdosis.dtx21
1 files changed, 12 insertions, 9 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index ca27494..acbedc0 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/06/02 v1.3-dev Typesetting TEI xml-compliant critical editions] 64 [2021/06/05 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}
@@ -7511,7 +7511,7 @@ Sample text with a \textcolor{red}{word} in red.
7511% \end{macrocode} 7511% \end{macrocode}
7512% \end{macro} 7512% \end{macro}
7513% \begin{macro}{\teidirect} 7513% \begin{macro}{\teidirect}
7514% \changes{v1.3}{2021/06/02}{direct insertion of elements in the 7514% \changes{v1.3}{2021/06/05}{direct insertion of elements in the
7515% \texttt{TEI xml} file} 7515% \texttt{TEI xml} file}
7516% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} 7516% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
7517% does nothing in \LaTeX. Its only use is to insert elements in the 7517% does nothing in \LaTeX. Its only use is to insert elements in the
@@ -7684,18 +7684,20 @@ Sample text with a \textcolor{red}{word} in red.
7684% given line and optionally a given page. If the specified conditions 7684% given line and optionally a given page. If the specified conditions
7685% are met then this command triggers \cs{pagebreak}. 7685% are met then this command triggers \cs{pagebreak}.
7686% \begin{macrocode} 7686% \begin{macrocode}
7687\newcounter{ekd@pb}
7688\globalcounter{ekd@pb}
7687\NewDocumentCommand{\ekdpb}{s o m}{% 7689\NewDocumentCommand{\ekdpb}{s o m}{%
7688 \IfBooleanTF{#1} 7690 \IfBooleanTF{#1}
7689 {\pagebreak} 7691 {\pagebreak}
7690 {% 7692 {%
7691 \def\@tmpoarg{#2}% 7693 \def\@tmpoarg{#2}%
7692 \def\@tmpmarg{#3}% 7694 \def\@tmpmarg{#3}%
7693 \luadirect{ekdosis.dolnlab(\luastringN{#3})}% 7695 \stepcounter{ekd@pb}%
7694 \linelabel{\luadirect{tex.sprint(ekdosis.getlnlab())}}% 7696 \linelabel{ekdpb:\theekd@pb}%
7695 \def\tmp@ln{% 7697 \def\tmp@ln{%
7696 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}}}% 7698 \getrefnumber{ekdpb:\theekd@pb}}%
7697 \def\tmp@pg{% 7699 \def\tmp@pg{%
7698 \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}}}% 7700 \getpagerefnumber{ekdpb:\theekd@pb}}%
7699 \IfNoValueTF{#2} 7701 \IfNoValueTF{#2}
7700 {\ifnum 7702 {\ifnum
7701 \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0 7703 \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0
@@ -7709,8 +7711,7 @@ Sample text with a \textcolor{red}{word} in red.
7709 \fi 7711 \fi
7710 \fi 7712 \fi
7711 }% 7713 }%
7712 } 7714 }\ignorespaces
7713 \ignorespaces
7714} 7715}
7715% \end{macrocode} 7716% \end{macrocode}
7716% \end{macro} 7717% \end{macro}
@@ -7870,7 +7871,7 @@ Sample text with a \textcolor{red}{word} in red.
7870% \end{macrocode} 7871% \end{macrocode}
7871% \end{macro} 7872% \end{macro}
7872% \begin{macro}{\SetApparatusNoteLanguage} 7873% \begin{macro}{\SetApparatusNoteLanguage}
7873% \changes{v1.3}{2021/06/02}{defines an alternate language to be 7874% \changes{v1.3}{2021/06/05}{defines an alternate language to be
7874% applied in note apparatus entries} 7875% applied in note apparatus entries}
7875% \cs{SetApparatusNoteLang}\marg{languagename} can be used when 7876% \cs{SetApparatusNoteLang}\marg{languagename} can be used when
7876% it is needed to apply in entries introduced by the \cs{note} command 7877% it is needed to apply in entries introduced by the \cs{note} command
@@ -9784,6 +9785,8 @@ local texpatttotags = {
9784 {a="\\teidirect%s+{(.-)}(%b{})", b="<%1>ekd@ob%2ekd@cb</%1>"}, 9785 {a="\\teidirect%s+{(.-)}(%b{})", b="<%1>ekd@ob%2ekd@cb</%1>"},
9785 {a="\\altrfont%s+", b=""}, 9786 {a="\\altrfont%s+", b=""},
9786 {a="\\endmark%s+", b=""}, 9787 {a="\\endmark%s+", b=""},
9788 {a="\\ekdpb%s+%*?%[(.-)%]{(.-)}", b=""},
9789 {a="\\ekdpb%s+%*?{(.-)}", b=""},
9787 {a="\\mbox%s+(%b{})", b="ekd@ob%1ekd@cb"}, 9790 {a="\\mbox%s+(%b{})", b="ekd@ob%1ekd@cb"},
9788 {a="\\LR%s+(%b{})", b="ekd@ob%1ekd@cb"}, 9791 {a="\\LR%s+(%b{})", b="ekd@ob%1ekd@cb"},
9789 {a="\\RL%s+(%b{})", b="ekd@ob%1ekd@cb"}, 9792 {a="\\RL%s+(%b{})", b="ekd@ob%1ekd@cb"},