aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-02-23 18:11:01 +0100
committerRobert Alessi <alessi@robertalessi.net>2020-02-23 18:11:01 +0100
commit3f31f012d1b8e56f96b3a83898335ee39aaf9ae1 (patch)
tree5eeb9ebf4ba747f7e497f1c4f6fc8f3e7f223b6e
parent28ab825a99bb8af7ce550461d2595a2fcbf20ccd (diff)
downloadekdosis-3f31f012d1b8e56f96b3a83898335ee39aaf9ae1.tar.gz
added refnumstyle hook
-rw-r--r--ekdosis.dtx8
1 files changed, 5 insertions, 3 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index d17774b..1d5f998 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -371,9 +371,11 @@ Running "make install" installs the files in the local TeX tree.
371% \end{macrocode} 371% \end{macrocode}
372% Hooks 372% Hooks
373% \begin{macrocode} 373% \begin{macrocode}
374\def\ekd@postrefnum{\nobreak\space} 374\def\ekd@refnumstyle{\bfseries}
375\def\ekd@postrefnum{~}
375\options{ 376\options{
376 /hooks/.new family, 377 /hooks/.new family,
378 /hooks/refnumstyle/.new cmd = \def\ekd@refnumstyle{#1},
377 /hooks/postrefnum/.new cmd = \def\ekd@postrefnum{#1} 379 /hooks/postrefnum/.new cmd = \def\ekd@postrefnum{#1}
378} 380}
379\NewDocumentCommand{\SetEkdosisHooks}{m}{ 381\NewDocumentCommand{\SetEkdosisHooks}{m}{
@@ -650,7 +652,7 @@ Running "make install" installs the files in the local TeX tree.
650 "pg_ii")}% 652 "pg_ii")}%
651 \luadirect{tex.sprint(ekdosis.removesp(\luastringN{#2}))}% 653 \luadirect{tex.sprint(ekdosis.removesp(\luastringN{#2}))}%
652 \ekd@isinappfalse} 654 \ekd@isinappfalse}
653\def\current@ref@arg#1#2{{\textdir TLT\noexpand\bfseries% 655\def\current@ref@arg#1#2{{\textdir TLT\unexpanded\expandafter{\ekd@refnumstyle}%
654 \ifnum% 656 \ifnum%
655 \getpagerefnumber{#1} 657 \getpagerefnumber{#1}
656 = 658 =
@@ -698,7 +700,7 @@ Running "make install" installs the files in the local TeX tree.
698 \fi% 700 \fi%
699 }% 701 }%
700 }% 702 }%
701\def\current@ref{{\textdir TLT\noexpand\bfseries% 703\def\current@ref{{\textdir TLT\unexpanded\expandafter{\ekd@refnumstyle}%
702 \ifnum% 704 \ifnum%
703 \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} 705 \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}
704 = 706 =