aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-09-05 16:45:14 +0200
committerRobert Alessi <alessi@robertalessi.net>2019-09-05 16:45:14 +0200
commit71b6be7feb4c87ad2d3ac5e650e691d9d8a8b710 (patch)
tree5b0928accc7d13e5589a9cfd22d17edcaacf2084
parentd07467975f83e797436c7f97dd406f5c9f3ad51e (diff)
downloadekdosis-71b6be7feb4c87ad2d3ac5e650e691d9d8a8b710.tar.gz
line numbers: if relevant, specify subsequent page numbers
-rw-r--r--ekdosis.dtx16
1 files changed, 14 insertions, 2 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 1f88522..e0ad7cc 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -354,7 +354,6 @@ Running "make install" installs the files in the local TeX tree.
354\RequirePackage{keycommand} 354\RequirePackage{keycommand}
355\RequirePackage{xparse} 355\RequirePackage{xparse}
356\RequirePackage{etoolbox} 356\RequirePackage{etoolbox}
357\PassOptionsToPackage{addpageno}{lineno}
358\RequirePackage{lineno} 357\RequirePackage{lineno}
359\RequirePackage{keyfloat} 358\RequirePackage{keyfloat}
360\RequirePackage{refcount} 359\RequirePackage{refcount}
@@ -522,6 +521,12 @@ idno={}, msName={}, origDate={}][3]{%
522 \luadirect{tex.sprint(ekdosis.removesp(\luastringN{#1}))}% 521 \luadirect{tex.sprint(ekdosis.removesp(\luastringN{#1}))}%
523 \ekd@isinappfalse} 522 \ekd@isinappfalse}
524\def\current@ref{{\textdir TLT\noexpand\bfseries% 523\def\current@ref{{\textdir TLT\noexpand\bfseries%
524 \ifnum%
525 \getrefbykeydefault{%
526 \luadirect{tex.sprint(ekdosis.getlnlab())}-b}{page}{}
527 =
528 \getrefbykeydefault{%
529 \luadirect{tex.sprint(ekdosis.getlnlab())}-e}{page}{}
525 \ifnum% 530 \ifnum%
526 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} 531 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}
527 = 532 =
@@ -530,7 +535,14 @@ idno={}, msName={}, origDate={}][3]{%
530 \else 535 \else
531 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--% 536 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--%
532 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}% 537 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}%
533 \fi} 538 \fi%
539 \else
540 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}--%
541 \getrefbykeydefault{%
542 \luadirect{tex.sprint(ekdosis.getlnlab())}-e}{page}{}.%
543 \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}%
544 \fi%
545 }
534 }% 546 }%
535\define@cmdkeys[ekd]{lemrdg}[ekdlr@]{wit, alt, pre, post, prewit, 547\define@cmdkeys[ekd]{lemrdg}[ekdlr@]{wit, alt, pre, post, prewit,
536 postwit} 548 postwit}