diff options
author | Robert Alessi <alessi@robertalessi.net> | 2021-02-21 11:16:45 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2021-02-21 11:16:45 +0100 |
commit | b1e3b3e23d91e460a82b8f63aa6614b322f296fa (patch) | |
tree | f5f7d4856cd0e255a8b697a996512aef7f616ae9 | |
parent | 1aecb2ccb4d25471b8c2a9b0352ac1ca751add5f (diff) | |
download | ekdosis-b1e3b3e23d91e460a82b8f63aa6614b322f296fa.tar.gz |
allow fancy line numbering
-rw-r--r-- | ekdosis.dtx | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 5b26ce2..cc27565 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -6480,12 +6480,14 @@ Sample text with a \textcolor{red}{word} in red. | |||
6480 | \def\tmp@pg{% | 6480 | \def\tmp@pg{% |
6481 | \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}}}% | 6481 | \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}}}% |
6482 | \IfNoValueTF{#1} | 6482 | \IfNoValueTF{#1} |
6483 | {\ifnum\@tmpmarg=\tmp@ln | 6483 | {\ifnum |
6484 | \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0 | ||
6484 | \pagebreak | 6485 | \pagebreak |
6485 | \fi} | 6486 | \fi} |
6486 | {\ifnum | 6487 | {\ifnum |
6487 | \pdf@strcmp{\@tmpoarg}{\tmp@pg} = 0 | 6488 | \pdf@strcmp{\@tmpoarg}{\tmp@pg} = 0 |
6488 | \ifnum\@tmpmarg=\tmp@ln | 6489 | \ifnum |
6490 | \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0 | ||
6489 | \pagebreak | 6491 | \pagebreak |
6490 | \fi | 6492 | \fi |
6491 | \fi | 6493 | \fi |
@@ -6890,16 +6892,17 @@ Sample text with a \textcolor{red}{word} in red. | |||
6890 | = | 6892 | = |
6891 | 0 | 6893 | 0 |
6892 | \ifnum% | 6894 | \ifnum% |
6893 | \getrefnumber{#1} | 6895 | \pdf@strcmp{\getrefnumber{#1}}{\getrefnumber{#2}} |
6894 | = | 6896 | = |
6895 | \getrefnumber{#2} | 6897 | 0 |
6896 | % | 6898 | % |
6897 | \ifekd@mapps% | 6899 | \ifekd@mapps% |
6898 | \ifbool{subsq@unit@\ekdan@type}{% | 6900 | \ifbool{subsq@unit@\ekdan@type}{% |
6899 | \ifnum% | 6901 | \ifnum% |
6900 | \getrefnumber{#1} | 6902 | \pdf@strcmp{\getrefnumber{#1}}{% |
6903 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}}} | ||
6901 | = | 6904 | = |
6902 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}} | 6905 | 0 |
6903 | \else | 6906 | \else |
6904 | \LRnum{\getrefnumber{#1}}% issue the no | 6907 | \LRnum{\getrefnumber{#1}}% issue the no |
6905 | \fi% | 6908 | \fi% |
@@ -6909,9 +6912,10 @@ Sample text with a \textcolor{red}{word} in red. | |||
6909 | \ifsubsq@unit% | 6912 | \ifsubsq@unit% |
6910 | % | 6913 | % |
6911 | \ifnum% | 6914 | \ifnum% |
6912 | \getrefnumber{#1} | 6915 | \pdf@strcmp{\getrefnumber{#1}}{% |
6916 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}}} | ||
6913 | = | 6917 | = |
6914 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevnotelab())}} | 6918 | 0 |
6915 | \else | 6919 | \else |
6916 | \LRnum{\getrefnumber{#1}}% issue the no | 6920 | \LRnum{\getrefnumber{#1}}% issue the no |
6917 | \fi | 6921 | \fi |
@@ -6951,16 +6955,19 @@ Sample text with a \textcolor{red}{word} in red. | |||
6951 | = | 6955 | = |
6952 | 0 | 6956 | 0 |
6953 | \ifnum% | 6957 | \ifnum% |
6954 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} | 6958 | \pdf@strcmp{% |
6959 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% | ||
6960 | {\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}} | ||
6955 | = | 6961 | = |
6956 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e} | 6962 | 0 |
6957 | % | 6963 | % |
6958 | \ifekd@mapps% | 6964 | \ifekd@mapps% |
6959 | \ifbool{subsq@unit@\ekdan@type}{% | 6965 | \ifbool{subsq@unit@\ekdan@type}{% |
6960 | \ifnum% | 6966 | \ifnum% |
6961 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} | 6967 | \pdf@strcmp{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% |
6968 | {\getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b}} | ||
6962 | = | 6969 | = |
6963 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b} | 6970 | 0 |
6964 | \else | 6971 | \else |
6965 | \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% issue the no | 6972 | \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% issue the no |
6966 | \fi% | 6973 | \fi% |
@@ -6969,9 +6976,10 @@ Sample text with a \textcolor{red}{word} in red. | |||
6969 | \ifsubsq@unit% | 6976 | \ifsubsq@unit% |
6970 | % | 6977 | % |
6971 | \ifnum% | 6978 | \ifnum% |
6972 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} | 6979 | \pdf@strcmp{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% |
6980 | {\getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b}} | ||
6973 | = | 6981 | = |
6974 | \getrefnumber{\luadirect{tex.sprint(ekdosis.getprevlnlab())}-b} | 6982 | 0 |
6975 | \else | 6983 | \else |
6976 | \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% issue the no | 6984 | \LRnum{\getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% issue the no |
6977 | \fi | 6985 | \fi |