From 1872ce46f97ab5f89c375f269eb3f45f0bbb1041 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 18 Sep 2020 17:03:52 +0200 Subject: for page numbers, Roman numerals need \ifx instead of \ifnum --- ekdosis.dtx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'ekdosis.dtx') diff --git a/ekdosis.dtx b/ekdosis.dtx index 620fc2b..a771bc0 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -515,8 +515,7 @@ along with this program. If not, see \ifbool{nocolordoc}{\usemintedstyle{bw}}{} \setminted{bgcolor=ekdcolor,linenos, fontsize=\small} \newminted[ekdlua]{lua}{bgcolor={}, linenos, fontsize=\relsize{-0.5}, - xleftmargin=12pt, breaklines, numberblanklines=false, numbersep=3pt, - firstnumber=last} + xleftmargin=12pt, breaklines, numberblanklines=false, numbersep=3pt} \renewcommand{\theFancyVerbLine}{\normalfont\smaller\arabic{FancyVerbLine}} \usepackage[contents]{colordoc} \newcommand{\pkg}[1]{\textsf{#1}\index{#1=#1 (package)}} @@ -1050,8 +1049,10 @@ along with this program. If not, see % \label{ref:marcianus-b} % To take here one example, a witness such as the \emph{Marcianus % Graecus}~269, referred to as manuscript \enquote*{M} in the -% editions, which contains sixty treatises from Hippocrates, could be -% declared as follows:--- \iffalse +% editions, which contains sixty treatises transmitted under the name +% of Hippocrates, could be declared as follows:--- +% +%\iffalse %<*example> % \fi \begin{minted}[linenos=false]{latex} @@ -4196,7 +4197,7 @@ subtype="arabtex">'inna 'abI kAna mina % \cs{vref}|{label}| & || \\ % \cs{vpageref}|{label}| & || \\ % \cs{pagebreak}\meta{\oarg{1-4}} & no output \\ -% \cs{mbox}|{}| & no output \\ +% \cs{mbox}\marg{text} & \meta{text} \\ % \bottomrule % \end{xltabular} % @@ -5687,6 +5688,7 @@ Sample text with a \textcolor{red}{word} in red. \RequirePackage{zref-user} \RequirePackage{zref-abspage} \RequirePackage{ltxcmds} +\RequirePackage{pdftexcmds} \RequirePackage{atbegshi} \RequirePackage{ifoddpage} \if@pkg@parnotes @@ -6434,9 +6436,9 @@ Sample text with a \textcolor{red}{word} in red. \def\current@ref@arg#1#2{{%\textdir TLT% \unexpanded\expandafter{\ekd@refnumstyle}% \ifnum% - \getpagerefnumber{#1} + \pdf@strcmp{\getpagerefnumber{#1}}{\getpagerefnumber{#2}} = - \getpagerefnumber{#2} + 0 \ifnum% \getrefnumber{#1} = @@ -6493,9 +6495,11 @@ Sample text with a \textcolor{red}{word} in red. \def\current@ref{{%\textdir TLT% \unexpanded\expandafter{\ekd@refnumstyle}% \ifnum% - \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} + \pdf@strcmp{% + \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% + {\getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}} = - \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e} + 0 \ifnum% \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} = -- cgit v1.2.3