From 1872ce46f97ab5f89c375f269eb3f45f0bbb1041 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 18 Sep 2020 17:03:52 +0200 Subject: for page numbers, Roman numerals need \ifx instead of \ifnum --- about.html | 25 +++++++++++++++---------- ekdosis.dtx | 22 +++++++++++++--------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/about.html b/about.html index a246b48..4c359c6 100644 --- a/about.html +++ b/about.html @@ -1,18 +1,23 @@ - - + + - - + + The ekdosis package – README file - + - +

Robert Alessi

+

Overview

ekdosis is a LuaLaTeX package designed for multilingual critical editions. It can be used to typeset texts and different layers of critical notes in any direction accepted by LuaTeX. Texts can be arranged in running paragraphs or on facing pages, in any number of columns which in turn can be synchronized or not. In addition to printed texts, ekdosis can convert .tex source files so as to produce TEI xml compliant critical editions. Database-driven encoding under LaTeX then allows extraction of texts entered segment by segment according to various criteria: main edited text, variant readings, translations or annotated borrowings between texts. It is published under the terms of the GNU General Public License (GPL) version 3.

License and Disclamer

@@ -37,10 +42,10 @@

License Applicable to the Documentation

Copyright ⓒ 2020 Robert Alessi

-

The documentation file ekdosis.pdf that is generated from the ekdosis.dtx source file is licensed under the GNU Free Documentation License, as follows:---

+

The documentation file ekdosis.pdf that is generated from the ekdosis.dtx source file is licensed under the GNU Free Documentation License, as follows:—

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.

Installation

-
    +
    1. Run 'latex ekdosis.ins' to produce the ekdosis.sty and ekdosis.lua files.

    2. To finish the installation you have to move the ekdosis.sty and ekdosis.lua files into a directory where LaTeX can find them. See the FAQ on texfaq.org at https://texfaq.org/FAQ-inst-wlcf for more on this.

    diff --git a/ekdosis.dtx b/ekdosis.dtx index 620fc2b..a771bc0 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -515,8 +515,7 @@ along with this program. If not, see \ifbool{nocolordoc}{\usemintedstyle{bw}}{} \setminted{bgcolor=ekdcolor,linenos, fontsize=\small} \newminted[ekdlua]{lua}{bgcolor={}, linenos, fontsize=\relsize{-0.5}, - xleftmargin=12pt, breaklines, numberblanklines=false, numbersep=3pt, - firstnumber=last} + xleftmargin=12pt, breaklines, numberblanklines=false, numbersep=3pt} \renewcommand{\theFancyVerbLine}{\normalfont\smaller\arabic{FancyVerbLine}} \usepackage[contents]{colordoc} \newcommand{\pkg}[1]{\textsf{#1}\index{#1=#1 (package)}} @@ -1050,8 +1049,10 @@ along with this program. If not, see % \label{ref:marcianus-b} % To take here one example, a witness such as the \emph{Marcianus % Graecus}~269, referred to as manuscript \enquote*{M} in the -% editions, which contains sixty treatises from Hippocrates, could be -% declared as follows:--- \iffalse +% editions, which contains sixty treatises transmitted under the name +% of Hippocrates, could be declared as follows:--- +% +%\iffalse %<*example> % \fi \begin{minted}[linenos=false]{latex} @@ -4196,7 +4197,7 @@ subtype="arabtex">'inna 'abI kAna mina % \cs{vref}|{label}| & || \\ % \cs{vpageref}|{label}| & || \\ % \cs{pagebreak}\meta{\oarg{1-4}} & no output \\ -% \cs{mbox}|{}| & no output \\ +% \cs{mbox}\marg{text} & \meta{text} \\ % \bottomrule % \end{xltabular} % @@ -5687,6 +5688,7 @@ Sample text with a \textcolor{red}{word} in red. \RequirePackage{zref-user} \RequirePackage{zref-abspage} \RequirePackage{ltxcmds} +\RequirePackage{pdftexcmds} \RequirePackage{atbegshi} \RequirePackage{ifoddpage} \if@pkg@parnotes @@ -6434,9 +6436,9 @@ Sample text with a \textcolor{red}{word} in red. \def\current@ref@arg#1#2{{%\textdir TLT% \unexpanded\expandafter{\ekd@refnumstyle}% \ifnum% - \getpagerefnumber{#1} + \pdf@strcmp{\getpagerefnumber{#1}}{\getpagerefnumber{#2}} = - \getpagerefnumber{#2} + 0 \ifnum% \getrefnumber{#1} = @@ -6493,9 +6495,11 @@ Sample text with a \textcolor{red}{word} in red. \def\current@ref{{%\textdir TLT% \unexpanded\expandafter{\ekd@refnumstyle}% \ifnum% - \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} + \pdf@strcmp{% + \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}}% + {\getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}} = - \getpagerefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-e} + 0 \ifnum% \getrefnumber{\luadirect{tex.sprint(ekdosis.getlnlab())}-b} = -- cgit v1.2.3