aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-10-22 19:26:05 +0200
committerRobert Alessi <alessi@robertalessi.net>2019-10-22 19:26:05 +0200
commitfaa46ac307d3af366858726d6e4357eb7d0e67af (patch)
treed1e8834562723c69035a945a1713614b87e3b6ec
parent2a65eec90135b8c9cc9398849e933af67da39bc6 (diff)
downloadekdosis-faa46ac307d3af366858726d6e4357eb7d0e67af.tar.gz
started working on separating rules
-rw-r--r--ekdosis.dtx94
1 files changed, 68 insertions, 26 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 95db667..5ee1169 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -487,25 +487,25 @@ idno={}, msName={}, origDate={}][3]{%
487 {\luadirect{ekdosis.appin(\luastringO{#2})}} 487 {\luadirect{ekdosis.appin(\luastringO{#2})}}
488 {\luadirect{ekdosis.appin(\luastringO{#2}, \luastringO{#1})}}% 488 {\luadirect{ekdosis.appin(\luastringO{#2}, \luastringO{#1})}}%
489} 489}
490 \def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext} 490% \def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext}
491% \def\blfootnote{\gdef\@thefnmark{}\@blfootnotetext} 491\def\blfootnote{\gdef\@thefnmark{}\@blfootnotetext}
492% \long\def\@blfootnotetext#1{\insert\footins{% 492\long\def\@blfootnotetext#1{\insert\footins{%
493% \reset@font\footnotesize 493 \reset@font\footnotesize
494% \interlinepenalty\interfootnotelinepenalty 494 \interlinepenalty\interfootnotelinepenalty
495% \splittopskip\footnotesep 495 \splittopskip\footnotesep
496% \splitmaxdepth \dp\strutbox \floatingpenalty \@MM 496 \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
497% \hsize\columnwidth \@parboxrestore 497 \hsize\columnwidth \@parboxrestore
498% \protected@edef\@currentlabel{% 498 \protected@edef\@currentlabel{%
499% \csname p@footnote\endcsname\@thefnmark 499 \csname p@footnote\endcsname\@thefnmark
500% }% 500 }%
501% \color@begingroup 501 \color@begingroup
502% \@makeblfntext{% 502 \@makeblfntext{%
503% \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% 503 \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
504% \color@endgroup}}% 504 \color@endgroup}}%
505% \newcommand\@makeblfntext[1]{% 505\newcommand\@makeblfntext[1]{%
506% \parindent 1em% 506 \parindent 1em%
507% \noindent 507 \noindent
508% \hb@xt@0em{\hss\@makefnmark}#1} 508 \hb@xt@0em{\hss\@makefnmark}#1}
509\newif\ifrtl@app 509\newif\ifrtl@app
510\NewDocumentCommand{\SetRTLapp}{}{\rtl@apptrue} 510\NewDocumentCommand{\SetRTLapp}{}{\rtl@apptrue}
511\NewDocumentCommand{\SetLTRapp}{}{\rtl@appfalse} 511\NewDocumentCommand{\SetLTRapp}{}{\rtl@appfalse}
@@ -518,8 +518,33 @@ idno={}, msName={}, origDate={}][3]{%
518\def\ekd@default@rule{\rule{2truein}{0.5pt}} 518\def\ekd@default@rule{\rule{2truein}{0.5pt}}
519 % \def\ekd@default@rule{\vskip-\baselineskip\mbox{}\newline% 519 % \def\ekd@default@rule{\vskip-\baselineskip\mbox{}\newline%
520 % \rule{2truein}{0.5pt}} 520 % \rule{2truein}{0.5pt}}
521\def\footnoterule{} 521% \def\footnoterule{\vskip-\baselineskip}
522\def\pcol@footnoterule{} 522% \def\pcol@footnoterule{}
523\newif\iffootnoterule
524\let\dflt@footnoterule\footnoterule
525\let\dflt@pcol@footnoterule\pcol@footnoterule
526\renewcommand\footnoterule{%
527 \iffootnoterule
528 \dflt@footnoterule%
529 \else
530 % \noindent\ekd@default@rule%
531 % \advance\skip\footins 4\p@\@plus2\p@\relax%
532 \fi
533}
534\renewcommand\pcol@footnoterule{%
535 \iffootnoterule
536 \dflt@pcol@footnoterule%
537 \else
538 % \noindent\ekd@default@rule%
539 % \advance\skip\footins 4\p@\@plus2\p@\relax%
540 \fi
541}
542\newcommand*{\NLS}{%
543 \par%
544 \nobreak%
545 \vspace{-\parskip}%
546 \noindent%
547 \ignorespaces }
523\NewDocumentCommand{\SetDefaultRule}{m}{% 548\NewDocumentCommand{\SetDefaultRule}{m}{%
524 \def\@tempa{#1} 549 \def\@tempa{#1}
525 \ifx\@tempa\empty\def\ekd@default@rule{\mbox{}}% 550 \ifx\@tempa\empty\def\ekd@default@rule{\mbox{}}%
@@ -1828,7 +1853,8 @@ function ekdosis.appout()
1828 local output = {} 1853 local output = {}
1829 if next(apparatuses) == nil then 1854 if next(apparatuses) == nil then
1830 -- table.insert(output, "BEGIN") 1855 -- table.insert(output, "BEGIN")
1831 table.insert(output, "\\par\\noindent\\csname ekd@default@rule\\endcsname\\newline{}") 1856 table.insert(output, "\\noindent\\csname ekd@default@rule\\endcsname\\NLS\\noindent ")
1857-- table.insert(output, "\\noindent ")
1832 for i in string.gmatch(t, 1858 for i in string.gmatch(t,
1833 "<"..cur_abs_pg.."%-0>.-</"..cur_abs_pg.."%-0>") 1859 "<"..cur_abs_pg.."%-0>.-</"..cur_abs_pg.."%-0>")
1834 do 1860 do
@@ -1836,7 +1862,6 @@ function ekdosis.appout()
1836 end 1862 end
1837 -- table.insert(output, "END") 1863 -- table.insert(output, "END")
1838 else 1864 else
1839 table.insert(output, "\\vskip -\\baselineskip")
1840 local n = 1 1865 local n = 1
1841 while apparatuses[n] 1866 while apparatuses[n]
1842 do 1867 do
@@ -1853,12 +1878,29 @@ function ekdosis.appout()
1853 end 1878 end
1854 if apparatuses[n].rule == "none" 1879 if apparatuses[n].rule == "none"
1855 then 1880 then
1856 table.insert(output, "\\par\\noindent\\mbox{}\\newline{}") 1881 if n > 1
1882 then
1883 table.insert(output, "\\NLS\\noindent ")
1884 else
1885 table.insert(output, "\\noindent ")
1886 end
1857 elseif apparatuses[n].rule ~= "" 1887 elseif apparatuses[n].rule ~= ""
1858 then 1888 then
1859 table.insert(output, "\\par\\noindent\\mbox{}" .. apparatuses[n].rule .. "\\mbox{}\\newline{}") 1889 if n > 1
1890 then
1891 table.insert(output, "\\NLS{}" .. apparatuses[n].rule .. "\\NLS\\noindent ")
1892 else
1893-- table.insert(output, "\\noindent ")
1894 table.insert(output, apparatuses[n].rule .. "\\NLS\\noindent ")
1895 end
1860 else 1896 else
1861 table.insert(output, "\\par\\noindent\\csname ekd@default@rule\\endcsname\\newline{}") 1897 if n > 1
1898 then
1899 table.insert(output, "\\NLS\\csname ekd@default@rule\\endcsname\\NLS\\noindent ")
1900 else
1901-- table.insert(output, "\\noindent ")
1902 table.insert(output, "\\csname ekd@default@rule\\endcsname\\NLS\\noindent ")
1903 end
1862 end 1904 end
1863 if apparatuses[n].bhook ~= "" 1905 if apparatuses[n].bhook ~= ""
1864 then 1906 then