Updated the template for Pandoc and slightly improved the manual
This commit is contained in:
parent
fec1feff3b
commit
ff8d813637
|
@ -8,5 +8,5 @@
|
||||||
|
|
||||||
### 2023/02/20: Version 1.0.2
|
### 2023/02/20: Version 1.0.2
|
||||||
|
|
||||||
Fixed minor problems in version numbers and a typo in the doc.
|
Fixed some minor issues in version numbers and in the manual.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
crossrefenum.pdf: crossrefenum.md ../CHANGELOG.md \
|
crossrefenum.pdf: crossrefenum-doc.tex
|
||||||
|
context $< && mv crossrefenum-doc.pdf $@
|
||||||
|
|
||||||
|
crossrefenum-doc.tex: crossrefenum.md ../CHANGELOG.md \
|
||||||
TEMPLATE_crossrefenum.context fixes.lua
|
TEMPLATE_crossrefenum.context fixes.lua
|
||||||
pandoc -o crossrefenum.pdf --pdf-engine=context \
|
pandoc -s -o $@ -t context \
|
||||||
--template=TEMPLATE_crossrefenum.context \
|
--template=TEMPLATE_crossrefenum.context \
|
||||||
-L fixes.lua \
|
-L fixes.lua \
|
||||||
crossrefenum.md ../CHANGELOG.md
|
crossrefenum.md ../CHANGELOG.md
|
||||||
|
|
|
@ -88,6 +88,10 @@ intent=ISO coated v2 300\letterpercent\space (ECI)]
|
||||||
\setuplist[subsection][margin=3em, width=3em]
|
\setuplist[subsection][margin=3em, width=3em]
|
||||||
\setuplist[subsubsection][margin=6em, width=4em]
|
\setuplist[subsubsection][margin=6em, width=4em]
|
||||||
|
|
||||||
|
$if(highlighting-commands)$
|
||||||
|
$highlighting-commands$
|
||||||
|
$endif$
|
||||||
|
|
||||||
\starttext
|
\starttext
|
||||||
|
|
||||||
\starttitlepagemakeup
|
\starttitlepagemakeup
|
||||||
|
|
|
@ -230,7 +230,9 @@ if this feature were not already included in _crossrefenum_.
|
||||||
\crfnm@newListFrom[\crfnm@doubleRefTypes][\crfnm@pageline] -> \crfnm@doubleRefTypes
|
\crfnm@newListFrom[\crfnm@doubleRefTypes][\crfnm@pageline] -> \crfnm@doubleRefTypes
|
||||||
\crfnm@newListFrom[\crfnm@supportedTypes][\crfnm@line] -> \crfnm@supportedTypes
|
\crfnm@newListFrom[\crfnm@supportedTypes][\crfnm@line] -> \crfnm@supportedTypes
|
||||||
\crfnm@newListFrom[\crfnm@supportedTypes][\crfnm@pageline] -> \crfnm@supportedTypes
|
\crfnm@newListFrom[\crfnm@supportedTypes][\crfnm@pageline] -> \crfnm@supportedTypes
|
||||||
|
```
|
||||||
|
|
||||||
|
```{.tex}
|
||||||
%% For the double types, set the primary and the secondary type.
|
%% For the double types, set the primary and the secondary type.
|
||||||
%% The primary type corresponds to the widest typographic unit
|
%% The primary type corresponds to the widest typographic unit
|
||||||
%% (“page” for “pagenote”, “section” for “sectionpage”...).
|
%% (“page” for “pagenote”, “section” for “sectionpage”...).
|
||||||
|
@ -253,7 +255,9 @@ if this feature were not already included in _crossrefenum_.
|
||||||
%% Required
|
%% Required
|
||||||
\def\crfnmLine{l.~}
|
\def\crfnmLine{l.~}
|
||||||
\def\crfnmLines{ll.~}
|
\def\crfnmLines{ll.~}
|
||||||
|
```
|
||||||
|
|
||||||
|
```{.tex}
|
||||||
%% If it differs from the defaults.
|
%% If it differs from the defaults.
|
||||||
\def\crfnmCollapsable{yes}
|
\def\crfnmCollapsable{yes}
|
||||||
\def\crfnmLineBeforeLastInSecond{, }
|
\def\crfnmLineBeforeLastInSecond{, }
|
||||||
|
@ -263,7 +267,7 @@ if this feature were not already included in _crossrefenum_.
|
||||||
\def\crfnmLinePrintPrefixInSecond{no}
|
\def\crfnmLinePrintPrefixInSecond{no}
|
||||||
```
|
```
|
||||||
|
|
||||||
Adding support to yet unsupported formats is far less trivial,
|
Adding support for additional formats is far less trivial,
|
||||||
not least because most of them do not provide a straightforward way
|
not least because most of them do not provide a straightforward way
|
||||||
to get reference numbers via purely expandable macros,
|
to get reference numbers via purely expandable macros,
|
||||||
which is required for _crossrefenum_ to perform its calculations.
|
which is required for _crossrefenum_ to perform its calculations.
|
||||||
|
|
|
@ -20,6 +20,7 @@ check_files
|
||||||
|
|
||||||
cd doc
|
cd doc
|
||||||
make crossrefenum.pdf
|
make crossrefenum.pdf
|
||||||
|
if [[ $? != 0 ]] ; then cd - ; exit 1 ; fi
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
if [[ -a crossrefenum.zip ]] ; then rm crossrefenum.zip ; fi
|
if [[ -a crossrefenum.zip ]] ; then rm crossrefenum.zip ; fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user