diff options
-rw-r--r-- | ekdosis.dtx | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 760416b..40ed894 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -236,8 +236,12 @@ along with this program. If not, see | |||
236 | \usepackage{metalogox} | 236 | \usepackage{metalogox} |
237 | \usepackage{hologo} | 237 | \usepackage{hologo} |
238 | \usepackage{xcolor} | 238 | \usepackage{xcolor} |
239 | \newbool{nocolordoc} | ||
239 | \definecolor{ekdcolor}{RGB}{243,241,235} | 240 | \definecolor{ekdcolor}{RGB}{243,241,235} |
240 | \definecolor{cinnamon}{rgb}{0.82, 0.41, 0.12} | 241 | \definecolor{cinnamon}{rgb}{0.82, 0.41, 0.12} |
242 | \ifbool{nocolordoc}{ | ||
243 | \colorlet{ekdcolor}{white} | ||
244 | \colorlet{cinnamon}{black}}{} | ||
241 | \definecolor{gainsboro}{RGB}{222,222,222} | 245 | \definecolor{gainsboro}{RGB}{222,222,222} |
242 | \PassOptionsToPackage{bookmarks=true}{hyperref} | 246 | \PassOptionsToPackage{bookmarks=true}{hyperref} |
243 | \usepackage{xurl} | 247 | \usepackage{xurl} |
@@ -266,7 +270,13 @@ along with this program. If not, see | |||
266 | } | 270 | } |
267 | } | 271 | } |
268 | } | 272 | } |
269 | \usepackage[symbolpackage=tikz]{biblatex-ext-oa} | 273 | \ifbool{nocolordoc} |
274 | { | ||
275 | \usepackage{fontawesome} | ||
276 | \def\oasymbol{\faUnlock} | ||
277 | \usepackage{biblatex-ext-oa} | ||
278 | } | ||
279 | {\usepackage[symbolpackage=l3draw]{biblatex-ext-oa}} | ||
270 | \DeclareDelimFormat[bib,biblist]{nametitledelim}{\addcomma\space} | 280 | \DeclareDelimFormat[bib,biblist]{nametitledelim}{\addcomma\space} |
271 | \DeclareDelimFormat[bib,biblist]{innametitledelim}{\addcomma\space} | 281 | \DeclareDelimFormat[bib,biblist]{innametitledelim}{\addcomma\space} |
272 | \renewcommand*\newunitpunct{\addcomma\space} | 282 | \renewcommand*\newunitpunct{\addcomma\space} |
@@ -369,6 +379,7 @@ along with this program. If not, see | |||
369 | breakable} | 379 | breakable} |
370 | \usepackage[newfloat]{minted} | 380 | \usepackage[newfloat]{minted} |
371 | \labelformat{listing}{listing~#1} | 381 | \labelformat{listing}{listing~#1} |
382 | \ifbool{nocolordoc}{\usemintedstyle{bw}}{} | ||
372 | \setminted{bgcolor=ekdcolor,linenos, fontsize=\small} | 383 | \setminted{bgcolor=ekdcolor,linenos, fontsize=\small} |
373 | \newminted[ekdlua]{lua}{bgcolor={}, linenos, fontsize=\relsize{-0.5}, | 384 | \newminted[ekdlua]{lua}{bgcolor={}, linenos, fontsize=\relsize{-0.5}, |
374 | xleftmargin=12pt, breaklines, numberblanklines=false, numbersep=3pt, | 385 | xleftmargin=12pt, breaklines, numberblanklines=false, numbersep=3pt, |
@@ -376,7 +387,7 @@ along with this program. If not, see | |||
376 | \renewcommand{\theFancyVerbLine}{\rmfamily\smaller\arabic{FancyVerbLine}} | 387 | \renewcommand{\theFancyVerbLine}{\rmfamily\smaller\arabic{FancyVerbLine}} |
377 | \usepackage[contents]{colordoc} | 388 | \usepackage[contents]{colordoc} |
378 | \newcommand{\pkg}[1]{\textsf{#1}\index{#1=#1 (package)}} | 389 | \newcommand{\pkg}[1]{\textsf{#1}\index{#1=#1 (package)}} |
379 | \newcommand{\env}[1]{\texttt{#1}} | 390 | \newcommand{\env}[1]{\texttt{#1}\index{#1=#1 (environment)}} |
380 | \backgroundcolor{c}{ekdcolor} | 391 | \backgroundcolor{c}{ekdcolor} |
381 | \usepackage{caption} | 392 | \usepackage{caption} |
382 | \captionsetup[listing]{position=above,skip=-1ex} | 393 | \captionsetup[listing]{position=above,skip=-1ex} |
@@ -440,7 +451,7 @@ along with this program. If not, see | |||
440 | % | 451 | % |
441 | % \GetFileInfo{\jobname.dtx} | 452 | % \GetFileInfo{\jobname.dtx} |
442 | % \DoNotIndex{\newcommand,\newenvironment,\begin,\begingroup} | 453 | % \DoNotIndex{\newcommand,\newenvironment,\begin,\begingroup} |
443 | % \DoNotIndex{\bgroup,\def,\edef,\egroup,\else,\expandafter} | 454 | % \DoNotIndex{\bgroup,\def,\edef,\egroup,\else,\expandafter,\endgroup} |
444 | % \DoNotIndex{\fi,\ifdefined,\luadirect,\luastring,\luastringN} | 455 | % \DoNotIndex{\fi,\ifdefined,\luadirect,\luastring,\luastringN} |
445 | % \DoNotIndex{\luastringO,\NewDocumentCommand,\space,\unexpanded} | 456 | % \DoNotIndex{\luastringO,\NewDocumentCommand,\space,\unexpanded} |
446 | % | 457 | % |
@@ -554,9 +565,10 @@ along with this program. If not, see | |||
554 | % | 565 | % |
555 | % The reader will find here, by way of introduction, a summarized | 566 | % The reader will find here, by way of introduction, a summarized |
556 | % version of the first part of an article that the author submitted | 567 | % version of the first part of an article that the author submitted |
557 | % some weeks ago to the \mkbibemph{\citefield{Alessi2020}{journaltitle}} as | 568 | % some weeks ago to the |
558 | % a contribution to a Digital Humanities workshop held at Stanford | 569 | % \mkbibemph{\citefield{Alessi2020}{journaltitle}} as a contribution |
559 | % University (\printdate{2019-04-15}).\footcite{Alessi2020} | 570 | % to a Digital Humanities workshop held at Stanford University |
571 | % (\printdate{2019-04-15}).\footcite{Alessi2020} | ||
560 | % | 572 | % |
561 | % The name of this package, \pkg{ekdosis}, derives from a Greek | 573 | % The name of this package, \pkg{ekdosis}, derives from a Greek |
562 | % action noun\---\sg{ἔκδοσις}\---the meaning of which is: | 574 | % action noun\---\sg{ἔκδοσις}\---the meaning of which is: |
@@ -2960,13 +2972,15 @@ yesterday. | |||
2960 | % \end{macrocode} | 2972 | % \end{macrocode} |
2961 | % Alignment:--- | 2973 | % Alignment:--- |
2962 | % \begin{macrocode} | 2974 | % \begin{macrocode} |
2975 | \newif\ifekd@pagelineation | ||
2963 | \ekvdefinekeys{ekd@align}{ | 2976 | \ekvdefinekeys{ekd@align}{ |
2964 | store tcols = \tcols@num, | 2977 | store tcols = \tcols@num, |
2965 | store lcols = \lcols@num, | 2978 | store lcols = \lcols@num, |
2966 | store texts = \texts@value, | 2979 | store texts = \texts@value, |
2967 | store apparatus = \apparatus@value, | 2980 | store apparatus = \apparatus@value, |
2968 | bool paired = \ifekd@paired, | 2981 | bool paired = \ifekd@paired, |
2969 | bool pagelineation = \ifekd@pagelineation, | 2982 | choice lineation = {page = \ekd@pagelineationtrue, |
2983 | document = \ekd@pagelineationfalse}, | ||
2970 | choice segmentation = {auto = \def\segmentation@val{auto}, | 2984 | choice segmentation = {auto = \def\segmentation@val{auto}, |
2971 | noauto = \def\segmentation@val{noauto}}, | 2985 | noauto = \def\segmentation@val{noauto}}, |
2972 | bool flush = \ifekd@flushapp, | 2986 | bool flush = \ifekd@flushapp, |