texlive[59976] Master: xistercian (18jul21)
commits+karl at tug.org
commits+karl at tug.org
Sun Jul 18 22:24:05 CEST 2021
Revision: 59976
http://tug.org/svn/texlive?view=revision&revision=59976
Author: karl
Date: 2021-07-18 22:24:04 +0200 (Sun, 18 Jul 2021)
Log Message:
-----------
xistercian (18jul21)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/xistercian/
trunk/Master/texmf-dist/doc/latex/xistercian/README.md
trunk/Master/texmf-dist/doc/latex/xistercian/xistercian.pdf
trunk/Master/texmf-dist/source/latex/xistercian/
trunk/Master/texmf-dist/source/latex/xistercian/xistercian.dtx
trunk/Master/texmf-dist/tex/latex/xistercian/
trunk/Master/texmf-dist/tex/latex/xistercian/xistercian.sty
trunk/Master/tlpkg/tlpsrc/xistercian.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/xistercian/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xistercian/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/xistercian/README.md 2021-07-18 20:24:04 UTC (rev 59976)
@@ -0,0 +1,35 @@
+-------------------------------------------------------------------------------
+# xistercian -- Cistercian numerals in LaTeX
+
+Version 2021-07-17 v1.0
+
+Released under the LaTeX Project Public License v1.3c or later
+See http://www.latex-project.org/lppl.txt
+
+Hosted at https://github.com/Skillmon/ltx_xistercian
+
+-------------------------------------------------------------------------------
+
+Copyright (C) 2021 Jonathan P. Spratte
+
+This work may be distributed and/or modified under the conditions of the
+LaTeX Project Public License (LPPL), either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is in
+the file:
+
+ http://www.latex-project.org/lppl.txt
+
+This work is "maintained" (as per LPPL maintenance status) by
+ Jonathan P. Spratte.
+
+-------------------------------------------------------------------------------
+
+This package adds Cistercian numerals to LaTeX. The glyphs are created with PGF,
+but cashed inside boxes to get better performance.
+
+The package provides (among other macros) the commands:
+
+- `\cistercian{<counter>}` to format a LaTeX2e counter
+- `\cisterciannum{<integer>}` to format the `<integer>` handed in as a string
+
+It supports the LaTeX typical syntax `\pagenumbering{cistercian}` as well.
Property changes on: trunk/Master/texmf-dist/doc/latex/xistercian/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/xistercian/xistercian.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/xistercian/xistercian.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xistercian/xistercian.pdf 2021-07-18 20:23:12 UTC (rev 59975)
+++ trunk/Master/texmf-dist/doc/latex/xistercian/xistercian.pdf 2021-07-18 20:24:04 UTC (rev 59976)
Property changes on: trunk/Master/texmf-dist/doc/latex/xistercian/xistercian.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/xistercian/xistercian.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/xistercian/xistercian.dtx (rev 0)
+++ trunk/Master/texmf-dist/source/latex/xistercian/xistercian.dtx 2021-07-18 20:24:04 UTC (rev 59976)
@@ -0,0 +1,1546 @@
+% \iffalse meta-comment
+%
+% File: xistercian.dtx Copyright (C) 2021 Jonathan P. Spratte
+%
+% This work may be distributed and/or modified under the conditions of the
+% LaTeX Project Public License (LPPL), either version 1.3c of this license or
+% (at your option) any later version. The latest version of this license is in
+% the file:
+%
+% http://www.latex-project.org/lppl.txt
+%
+% ------------------------------------------------------------------------------
+%
+%<*driver>^^A>>=
+\def\nameofplainTeX{plain}
+\ifx\fmtname\nameofplainTeX\else
+ \expandafter\begingroup
+\fi
+\input l3docstrip.tex
+\askforoverwritefalse
+\preamble
+
+--------------------------------------------------------------
+xistercian -- Cistercian numerals in LaTeX
+E-mail: jspratte at yahoo.de
+Released under the LaTeX Project Public License v1.3c or later
+See http://www.latex-project.org/lppl.txt
+--------------------------------------------------------------
+
+Copyright (C) 2020-2021 Jonathan P. Spratte
+
+This work may be distributed and/or modified under the conditions of the
+LaTeX Project Public License (LPPL), either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is in
+the file:
+
+ http://www.latex-project.org/lppl.txt
+
+This work is "maintained" (as per LPPL maintenance status) by
+ Jonathan P. Spratte.
+
+This work consists of the file xistercian.dtx
+and the derived files xistercian.pdf
+ xistercian.sty
+
+\endpreamble
+% stop docstrip adding \endinput
+\postamble
+\endpostamble
+\generate{\file{xistercian.sty}{\from{xistercian.dtx}{pkg}}}
+\ifx\fmtname\nameofplainTeX
+ \expandafter\endbatchfile
+\else
+ \expandafter\endgroup
+\fi
+%
+\IfFileExists{xistercian.sty}{\RequirePackage[debug]{xistercian}}{}
+\ProvidesFile{xistercian.dtx}[2021-07-17 v1.0.0 Cistercian numerals in LaTeX]
+\PassOptionsToPackage{full}{textcomp}
+\documentclass{l3doc}
+\RequirePackage[fulloldstyle,nott]{kpfonts}
+\RequirePackage{csquotes}
+\RequirePackage{tikz}
+\usetikzlibrary{arrows.meta}
+\RequirePackage{randtext}
+\input{glyphtounicode}
+\pdfgentounicode=1
+\makeatletter
+\@ifdefinable\gobbledocstriptag{\def\gobbledocstriptag#1>{}}
+\makeatother
+\let\metaORIG\meta
+\protected\def\meta#1{\texttt{\metaORIG{#1}}}
+\renewcommand*\thefootnote{\cistercian{footnote}}
+\newcommand*\cistexnum[1]
+ {^^A
+ \begingroup
+ \color{red!65!black}^^A
+ \cisterciansetup{s=.15ex}^^A
+ \cisterciannum{#1}^^A
+ \endgroup
+ }
+\newcommand*\mydefault[1]
+ {^^A
+ \begingroup
+ \color{darkgray}^^A
+ \myrestoredefaults
+ \hfill
+ \texttt
+ {^^A
+ \detokenize\expandafter\expandafter\expandafter
+ {\csname xister@#1\endcsname}^^A
+ \unskip
+ }^^A
+ \endgroup
+ }
+\newcommand*\mysdefault[1]
+ {^^A
+ \begingroup
+ \color{darkgray}^^A
+ \myrestoredefaults
+ \hfill
+ \texttt{#1}^^A
+ \endgroup
+ }
+\pagenumbering{cistercian}
+\ExplSyntaxOn
+\makeatletter
+\def\myrestoredefaults#1{\def\unexpanded{#1}{\unexpanded\expandafter{#1}}}
+\edef\myrestoredefaults
+ {
+ \myrestoredefaults\xister at x
+ \myrestoredefaults\xister at y
+ \myrestoredefaults\xister at bx
+ \myrestoredefaults\xister at by
+ \myrestoredefaults\xister at tv
+ \myrestoredefaults\xister at th
+ \myrestoredefaults\xister at tdu
+ \myrestoredefaults\xister at tdd
+ \myrestoredefaults\xister at font
+ }
+\makeatother
+\newcommand\examplerow[1]
+ {
+ \cisterciannum{1#1}&\cisterciannum{2#1}&\cisterciannum{3#1}&
+ \cisterciannum{4#1}&\cisterciannum{5#1}&\cisterciannum{6#1}&
+ \cisterciannum{7#1}&\cisterciannum{8#1}&\cisterciannum{9#1}\\
+ \noalign{\vskip-.5ex}
+ $1#1$&$2#1$&$3#1$&
+ $4#1$&$5#1$&$6#1$&
+ $7#1$&$8#1$&$9#1$\\
+ \noalign{\vskip1ex}
+ }
+\AddToHook{bfseries}
+ {\cisterciansetup{sv=.27ex,sdd=.27ex,sh=.12ex,sdu=.12ex,wd=.5em}}
+\AddToHook{mdseries}{\myrestoredefaults}
+\cisterciansetup{redraw+=series}
+\ExplSyntaxOff
+\begin{document}
+ \title{The \pkg{xistercian} package}
+ \author{Jonathan P. Spratte\thanks{\protect\randomize{jspratte at yahoo.de}}}
+ \date{2021-07-17 v1.0}
+ \DocInput{xistercian.dtx}
+\end{document}
+%</driver>^^A=<<
+% \fi
+%
+% \maketitle
+% \tableofcontents
+%
+% \section{Documentation}
+%
+% The \pkg{xistercian} package provides Cistercian numerals for use in \LaTeX.
+% The name is chosen to be \pkg{xistercian} instead of \pkg{cistercian} because
+% I've learned that a (currently) unpublished package by that name already
+% exists and I don't want to be an evil name-stealer.
+%
+%
+% \subsection{Introduction}
+%
+% Cistercian numerals are a system to denote the numbers from $1$ to $9999$ with
+% a single glyph. They use a stem (\cistexnum{0}) that is used as zero by this
+% package, and add the digits to that using small tick marks, the place denoting
+% the digits value. On the upper right means units (\cistexnum{1}), upper left
+% tens (\cistexnum{10}), lower right hundreds (\cistexnum{100}), and lower left
+% thousands (\cistexnum{1000}). Figure~\ref{fig:glyphs} gives an overview over
+% the base glyphs.
+%
+% In the medieval times it was quite common (according to Wikipedia more common
+% than the vertical style) to use the Cistercian numerals horizontally instead.
+% This package also supports that, in which case the numerals are rotated by
+% $90$ degrees counter-clockwise, see figure~\ref{fig:glyphs:h}.
+%
+% All glyphs have the same bounding box, are drawn using the \pkg{pgf}
+% package, and cached inside \TeX\ box registers. Therefore the performance is
+% quite well, at least well enough to actually consider using these numerals
+% without a major performance hit. But it still slows down the compilation,
+% especially if the glyphs have to be redrawn often. By default they will be
+% redrawn if the font size changed since the last usage inside the current group
+% scope, but you can specify which font feature changes should cause a redraw.
+%
+% \begin{figure}
+% \centering
+% \small
+% \cistercianredraw
+% \begin{tabular}{*9c}
+% \examplerow{}
+% \examplerow{0}
+% \examplerow{00}
+% \examplerow{000}
+% \end{tabular}
+% \caption{The different base glyphs in vertical mode\label{fig:glyphs}}
+% \end{figure}
+%
+% \begin{figure}
+% \centering
+% \small
+% \cisterciansetup{horizontal}\cistercianredraw
+% \begin{tabular}{*9c}
+% \examplerow{}
+% \examplerow{0}
+% \examplerow{00}
+% \examplerow{000}
+% \end{tabular}
+% \caption{The different base glyphs in horizontal mode\label{fig:glyphs:h}}
+% \end{figure}
+%
+% Since Cistercian numerals quite compactly cover a big range of natural numbers
+% they might be used to compactly keep track of running numbers. For instance,
+% to use Cistercian numerals as page numbers you can use:
+% \begin{verbatim}
+% \pagenumbering{cistercian}
+% \end{verbatim}
+% or to use them as footnotes:
+% \begin{verbatim}
+% \renewcommand\thefootnote{\cistercian{footnotes}}
+% \end{verbatim}
+%
+% The package tries to play nice on \pkg{hyperref} if it is loaded, but
+% bookmarks containing material that should've been a Cistercian numeral will
+% have a leading |CISTER| in front of the numeric value to give unique
+% strings compared to |\arabic|.
+%
+% Negative numbers just keep a leading~|-|, and numbers with an absolute number
+% greater than $9999$ are displayed with multiple Cistercian digits. For
+% instance $-12345678$ is displayed as \cistexnum{-12345678}. And in the case
+% that four consecutive digits are zeros they get displayed as that:
+% \cistexnum{10000} is $10000$.
+%
+%
+% \subsection{Macros}
+%
+% \begin{function}{\cistercian}
+% \begin{syntax}
+% \cs{cistercian}\marg{counter}
+% \end{syntax}
+% Prints the value of the \LaTeXe\ \meta{counter} as a Cistercian numeral
+% (similar to how |\roman| prints a \meta{counter} as a Roman numeral). It can
+% also be used as |\pagenumbering|\hskip0pt |{cistercian}| to change the page
+% numbering, \emph{etc}.
+% \end{function}
+%
+% \begin{function}{\cisterciannum}
+% \begin{syntax}
+% \cs{cisterciannum}\marg{integer}
+% \end{syntax}
+% Prints the \meta{integer} as a Cistercian numeral. The \meta{integer} has to
+% be provided as a string containing only digits and optionally a single
+% leading~|-| (spaces are ignored). This can handle integers of almost
+% arbitrary size (well, an integer with more than $2147483647$ places will be
+% an issue).
+% \end{function}
+%
+% \begin{function}{\cisterciannumE}
+% \begin{syntax}
+% \cs{cisterciannum}\marg{integer expression}
+% \end{syntax}
+% Evaluates the \meta{integer expression} and prints the result as a
+% Cistercian numeral.
+% \end{function}
+%
+% \begin{function}{\cisterciansetup}
+% \begin{syntax}
+% \cs{cisterciansetup}\marg{key=value,\ldots}
+% \end{syntax}
+% Can be used to locally change the options after the package was loaded. The
+% glyphs of the Cistercian numerals aren't automatically updated when you
+% change the setup.
+% \end{function}
+%
+% \begin{function}{\cistercianredraw,\cistercianredrawlazy}
+% \begin{syntax}
+% \cs{cistercianredraw}
+% \end{syntax}
+% When this is used the glyphs will be redrawn for the current group. The
+% |lazy| variant will not immediately redraw the glyphs, but instead ensure
+% that the next usage of a Cistercian numeral in the current scope will redraw
+% the glyphs. The |lazy| variant could result in the glyphs being redrawn
+% multiple times (if Cistercian numerals are used in different nested groups),
+% while the normal variant might result in the glyphs being redrawn too
+% eagerly.
+% \end{function}
+%
+% \begin{function}{\cistercianstyle}
+% \begin{syntax}
+% \cs{cistercianstyle}\marg{name}\marg{key=value,\ldots}
+% \end{syntax}
+% With this macro you can define a key called \meta{name} that'll set the
+% options in the \meta{key=value} list if used inside |\cisterciansetup|.
+% Only new names are allowed.
+% \end{function}
+% For example, the key |horizontal| is equivalently defined to
+% \begin{verbatim}
+% \cistercianstyle{horizontal}{o=h,wd=0.62em,ht=1ex}
+% \end{verbatim}
+%
+%
+% \subsection{Options}
+%
+% The options described here are all usable as package options (except when
+% explicitly stated otherwise). \pkg{xistercian} doesn't parse the global
+% options provided to the documentclass. Additionally you can change the
+% options (except for the |debug| option) using |\cisterciansetup|.
+%
+% For the options |width| and |height|, and probably also the strokes, you
+% should use dimensions using |ex| or |em| to get sizes depending on the current
+% font size. For all three of those options the \meta{dimension expression} is
+% evaluated (using the setup specified in |font|) every time the font changed
+% according to the |redraw| option's feature list (by default only when the size
+% changed) since the last time they were drawn.
+%
+% Initial values if present are printed on the right. A small graphic explaining
+% most of the size related options is shown in figure~\ref{fig:size}.
+%
+% \begin{figure}
+% \centering
+% \def\share{1/3}
+% \expanded
+% {^^A
+% \cisterciansetup
+% {bx=1,by=1,fr=\share,ht=4cm,wd=2cm,sv=9pt,sh=5pt,sdd=9pt,sdu=5pt}^^A
+% }^^A
+% \cistercianredraw
+% \begin{tikzpicture}[>=Stealth,baseline=(base)]
+% \node[color=green,inner sep=0] (sym) {\cisterciannum{9}};
+% \begin{scope}[y=(sym.north),x=(sym.east)]
+% \draw (-1,-1) rectangle (1,1);
+% \draw[dashed, line width=0.2pt]
+% \foreach\x in{{-1,0},{1,0},{0,-1},{0,1}} { (0,0) -- (\x) }
+% ;
+% \draw[dashed, line width=0.2pt] (0, \share) coordinate(fr) -- ++(1,0);
+% \draw[<->]
+% (1.2, 0) -- node[rotate=90,below]{\texttt{0.5*fr*ht}} (1.2,0 |- fr);
+% \draw[<->] (-1, -1.1) -- node[below]{\texttt{wd}} ++(2,0);
+% \draw[<->] (-1.2, -1) -- node[rotate=90,above]{\texttt{ht}} ++(0,2);
+% \draw[red] (-1.6, -1.3) rectangle (1.6, 1.3);
+% \draw[<->] (-1.6, -1.4) -- node[below]{\texttt{bx*wd}} (1.6, -1.4);
+% \draw[<->]
+% (1.8, -1.3) -- node[rotate=90,below]{\texttt{by*ht}} (1.8, 1.3);
+% \draw[<->]
+% (-1.8, 0) -- node[rotate=90,above]{\texttt{0.5*bs*ht}} (-1.8, -.75);
+% \fill (-1.6, -0.75) circle[radius=2pt] coordinate(base);
+% \end{scope}
+% \end{tikzpicture}
+% \cisterciansetup{o=h,ht=2cm,wd=4cm}\cistercianredraw
+% \begin{tikzpicture}[>=Stealth,baseline=(base)]
+% \node[color=green,inner sep=0] (sym) {\cisterciannum{9}};
+% \begin{scope}[y=(sym.north),x=(sym.east)]
+% \draw (-1,-1) rectangle (1,1);
+% \draw[dashed, line width=0.2pt]
+% \foreach\x in{{-1,0},{1,0},{0,-1},{0,1}} { (0,0) -- (\x) }
+% ;
+% \draw[dashed, line width=0.2pt] (-\share,0) coordinate(fr) -- ++(0,1);
+% \draw[<->] (0, 1.2) -- node[above]{\texttt{0.5*fr*wd}} (0,1.2 -| fr);
+% \draw[<->] (-1, -1.2) -- node[below]{\texttt{wd}} ++(2,0);
+% \draw[<->] (-1.1, -1) -- node[rotate=90,above]{\texttt{ht}} ++(0,2);
+% \draw[red] (-1.3, -1.6) rectangle (1.3, 1.6);
+% \draw[<->] (-1.3, -1.8) -- node[below]{\texttt{bx*wd}} (1.3, -1.8);
+% \draw[<->]
+% (1.4, -1.6) -- node[rotate=90,below]{\texttt{by*ht}} (1.4, 1.6);
+% \draw[<->]
+% (-1.4, 0) -- node[rotate=90,above]{\texttt{0.5*bs*ht}} (-1.4, -.75);
+% \fill (-1.3, -0.75) circle[radius=2pt] coordinate(base);
+% \end{scope}
+% \end{tikzpicture}
+% \caption[Measurements of a glyph]
+% {Measurements of a glyph. The red rectangle is the bounding box, the
+% dot on the left shows the reference point placed on the surrounding
+% baseline.\label{fig:size}}
+% \end{figure}
+%
+% \begin{function}{width,wd}
+% \begin{syntax}
+% width = \marg{dimension expression} \mydefault{x}
+% \end{syntax}
+% Set the width of the Cistercian numeral digits.
+% \end{function}
+%
+% \begin{function}{height,ht}
+% \begin{syntax}
+% height = \marg{dimension expression} \mydefault{y}
+% \end{syntax}
+% Set the height of the Cistercian numeral digits.
+% \end{function}
+%
+% \begin{function}{bound-x,bx}
+% \begin{syntax}
+% bound-x = \marg{float} \mydefault{bx}
+% \end{syntax}
+% Specifies the factor the bounding box in $x$-direction is bigger than the
+% |width|. An empty \meta{float} is considered the same as $1$.
+% \end{function}
+%
+% \begin{function}{bound-y,by}
+% \begin{syntax}
+% bound-y = \marg{float} \mysdefault{\normalfont\emph{empty}}
+% \end{syntax}
+% Specifies the factor the bounding box in $y$-direction is bigger than the
+% |height|. An empty \meta{float} is considered the same as $1$.
+% \end{function}
+%
+% \begin{function}{baseline,bs}
+% \begin{syntax}
+% baseline = \marg{float} \mysdefault{\normalfont\emph{empty}}
+% \end{syntax}
+% Sets the baseline of the symbols in multiples of the negative height. $1$
+% (or empty) results in the symbol starting on the surrounding baseline,
+% bigger values shift the symbols upwards, smaller values downwards.
+% \end{function}
+%
+% \begin{function}{stroke-v,sv}
+% \begin{syntax}
+% stroke-v = \marg{dimension expression} \mydefault{tv}
+% \end{syntax}
+% Sets the stroke thickness of vertical strokes.
+% \end{function}
+%
+% \begin{function}{stroke-h,sh}
+% \begin{syntax}
+% stroke-h = \marg{dimension expression} \mydefault{th}
+% \end{syntax}
+% Sets the stroke thickness of horizontal strokes.
+% \end{function}
+%
+% \begin{function}{stroke-du,sdu}
+% \begin{syntax}
+% stroke-du = \marg{dimension expression} \mydefault{tdu}
+% \end{syntax}
+% Sets the stroke thickness of diagonal strokes going from lower left to upper
+% right.
+% \end{function}
+%
+% \begin{function}{stroke-dd,sdd}
+% \begin{syntax}
+% stroke-dd = \marg{dimension expression} \mydefault{tdd}
+% \end{syntax}
+% Sets the stroke thickness of diagonal strokes going from upper left to lower
+% right.
+% \end{function}
+%
+% \begin{function}{strokes,s}
+% \begin{syntax}
+% stroke = \marg{dimension expression}
+% \end{syntax}
+% Sets all stroke thicknesses at once.
+% \end{function}
+%
+% \begin{function}{fraction,fr}
+% \begin{syntax}
+% fraction = \marg{float} \mysdefault{/6}
+% fraction = \marg{float}/\marg{integer}
+% \end{syntax}
+% The Cistercian digits are drawn only in a fraction of the total bounding box
+% of each symbol. The ones are drawn (with vertical Cistercians) in the upper
+% right rectangle. The width of that rectangle is determined by |width|, and
+% the upper border by |height|, and with this option you can set the lower
+% border as a fraction of the |height|. You can either just give a factor as a
+% \meta{float}, or just pass in a divisor as an \meta{integer}, or both. An
+% empty \meta{float} equals $1$.
+% \end{function}
+% Consider the following example (result on the right):\\[\bigskipamount]
+% \begin{minipage}[c]{.8\linewidth}
+% \begin{verbatim}
+% {\cisterciansetup{fr=2/9,redraw}\cisterciannum{9}}\par
+% {\cisterciansetup{fr=0.6,redraw}\cisterciannum{9}}\par
+% \end{verbatim}
+% \end{minipage}
+% \begin{minipage}[c]{1em}
+% {\cisterciansetup{fr=2/9,redraw}\cisterciannum{9}}\par
+% {\cisterciansetup{fr=0.6,redraw}\cisterciannum{9}}\par
+% \end{minipage}
+%
+% \begin{function}{orientation,o}
+% \begin{syntax}
+% orientation = \marg{choice} \mysdefault{vertical}
+% \end{syntax}
+% Sets the orientation of the Cistercian numerals. Choices are |horizontal|
+% (or |h| for short) or |vertical| (or |v| for short). You'll most likely want
+% to change the |width| and |height| of the symbols if you decide to change
+% this.
+% \end{function}
+%
+% \begin{function}{horizontal}
+% \begin{syntax}
+% horizontal
+% \end{syntax}
+% Same as setting |orientation = horizontal, width = 0.62em, height = 1ex|.
+% \end{function}
+%
+% \begin{function}{vertical}
+% \begin{syntax}
+% vertical
+% \end{syntax}
+% Same as setting |orientation = vertical, width = 0.4em, height = 1.55ex|.
+% \end{function}
+%
+% \begin{function}{alternate-5,5}
+% \begin{syntax}
+% alternate-5 = \marg{choice} \mysdefault{triangle}
+% \end{syntax}
+% There are alternative forms of the digit $5$, while the most often used one
+% nowadays seems to be the |triangle| form, this package also supports two
+% other variants. Those are called |dot| and |dash|. While if you choose
+% |triangle| you can't give an additional value, if your choice is |dot| or
+% |dash| you can customise those using a second equals sign and some value. If
+% you don't customise them they use their respective initial value (or last
+% value if you changed the value at some point in time).
+%
+% For |dot| you can also specify the radius as a dimension. The default is
+% \mbox{\mydefault{five at dot}}.
+%
+% For |dash| you can specify the length of the dash in multiples of the used
+% stroke thickness (which might differ for the horizontal and vertical
+% symbols), an empty value is considered the same as $1$. The default is
+% \mbox{\mysdefault{\normalfont\emph{empty}}}.
+%
+% A comparison of the three alternate forms is shown in
+% figure~\ref{fig:fives}.
+% \end{function}
+% The usage might look like any of the following:
+% \begin{verbatim}
+% \cisterciansetup
+% {
+% 5=triangle,
+% 5=dot, 5=dot=.1ex, 5={dot=.1ex},
+% 5=dash, 5=dash=2, 5={dash=2}
+% }
+% \end{verbatim}
+%
+% \begin{figure}
+% \centering
+% \def\showbb#1{^^A
+% \begingroup
+% \cisterciansetup{#1}\cistercianredraw
+% \fboxrule=.5pt
+% \fboxsep=-.5\fboxrule
+% \leavevmode
+% \rlap{\textcolor{red}{\fbox{\phantom{\cisterciannum{5555}}}}}^^A
+% \kern.5\fboxrule\cisterciannum{5555}\kern.5\fboxrule^^A
+% \endgroup
+% }^^A
+% \cisterciansetup{bx=1,by=1,wd=1cm,ht=2cm,sv=3pt,sdd=3pt,sh=2pt,sdu=2pt}
+% \cistercianstyle{hexample}{o=h,ht=1cm,wd=2cm}
+% \begin{tabular}{*5c}
+% \texttt{triangle} &
+% \texttt{dot=2pt} & \texttt{dot=4pt} &
+% \texttt{dash=1} & \texttt{dash=3} \\
+% \showbb{5=triangle} &
+% \showbb{5=dot=2pt} & \showbb{5=dot=4pt} &
+% \showbb{5=dash=1} & \showbb{5=dash=3} \\
+% \showbb{5=triangle,hexample} &
+% \showbb{5=dot=2pt,hexample} & \showbb{5=dot=4pt,hexample} &
+% \showbb{5=dash=1,hexample} & \showbb{5=dash=3,hexample}
+% \end{tabular}
+% \caption[Alternate forms of the digit $5$]
+% {Alternate forms of the digit $5$. The tight bounding
+% boxes using \texttt{bx=1,by=1} are drawn red.\label{fig:fives}}
+% \end{figure}
+%
+% \begin{function}{font,f}
+% \begin{syntax}
+% font = \marg{font setup} \mydefault{font}
+% \end{syntax}
+% Set the font which \pkg{xistercian} uses locally to evaluate the dimensions
+% given to |width|, |height|, and |stroke| (only font switches work here, you
+% can't use stuff like |\texttt|, instead use |\ttfamily|).
+% \end{function}
+%
+% \begin{function}{redraw,r}
+% \begin{syntax}
+% redraw = \marg{feature-list} \mysdefault{size}
+% redraw += \marg{feature-list}
+% redraw
+% redraw!
+% \end{syntax}
+% Selects which font features to consider when deciding to redraw the glyphs.
+% If one of the features has changed (or the features to consider) the glyphs
+% will be redrawn. This is especially handy if you change the |font| used
+% while evaluating the given dimensions. The available features in the comma
+% separated \meta{feature-list} are |encoding|, |family|, |series|, |shape|,
+% |size|, and |color|.
+%
+% If you see that a Cistercian numeral doesn't have the correct colour of the
+% surrounding text you need to add |color| to the font features
+% (\pkg{xistercian} uses some hack to get the boxed glyphs to respect the
+% surrounding colour, but that hack might fail in certain circumstances).
+%
+% If you use the |+=|~variant of this option the \meta{feature-list} is added
+% to the existing features, else they overwrite any existing configuration.
+%
+% Without a value the key will issue |\cistercianredrawlazy|, and if you use
+% the |!|~variant it'll use |\cistercianredraw|. This usage is only available
+% after the package was loaded.
+% \end{function}
+%
+% \begin{function}{debug}
+% \begin{syntax}
+% debug
+% \end{syntax}
+% Only usable as a package option. If this is used a bit of debugging
+% information is printed in the log file and terminal, and some keys try to
+% evaluate the given argument on the spot instead of lazily. This might help
+% to locate faulty input.
+% \end{function}
+%
+%
+% \subsection{Bold Cistercian Numerals}
+%
+% While the package doesn't directly support bold glyphs, it is possible to
+% utilize the hooks provided by the NFSS to pick different stroke widths
+% whenever the font is changed to |bfseries| and back to |mdseries|:
+%
+% \begin{verbatim}
+% \AddToHook{bfseries}
+% {%
+% \cisterciansetup{sv=.27ex,sdd=.27ex,sh=.15ex,sdu=.15ex,wd=.5em}%
+% \cistercianredrawlazy
+% }
+% \AddToHook{mdseries}
+% {%
+% \cisterciansetup{sv=.18ex,sdd=.18ex,sh=.1ex,sdu=.1ex,wd=.4em}%
+% \cistercianredrawlazy
+% }
+% This results in \cisterciannum{2} different \enquote{series}.\par
+% \bfseries
+% This results in \cisterciannum{2} different \enquote{series}.
+% \end{verbatim}
+%
+% \begingroup
+% This results in \cisterciannum{2} different \enquote{series}.\par
+% \bfseries
+% This results in \cisterciannum{2} different \enquote{series}.
+% \endgroup
+%
+% Of course, instead of doing |\cistercianredrawlazy| in the above code, we
+% could as well do the following equivalent thing and let \pkg{xistercian}
+% determine when to redraw:
+% \begin{verbatim}
+% \AddToHook{bfseries}
+% {\cisterciansetup{sv=.27ex,sdd=.27ex,sh=.15ex,sdu=.15ex,wd=.5em}}
+% \AddToHook{mdseries}
+% {\cisterciansetup{sv=.18ex,sdd=.18ex,sh=.1ex,sdu=.1ex,wd=.4em}}
+% \cisterciansetup{redraw+=series}
+% \end{verbatim}
+%
+%
+% \clearpage
+% \section{Implementation}
+%
+% First we load the required packages
+% \gobbledocstriptag
+%<*pkg>
+% \begin{macrocode}
+\RequirePackage{pgf,expkv-opt}
+% \end{macrocode}
+%
+%
+% \subsection{Variables}
+%
+% There are variables stored as macros to be evaluated later, as well as
+% register types for faster access during the glyph drawing.
+% \begin{macrocode}
+\newcommand*\xister at th{.1ex}
+\newcommand*\xister at tv{.18ex}
+\newcommand*\xister at tdu{.1ex}
+\newcommand*\xister at tdd{.18ex}
+\newcommand*\xister at x{.4em}
+\newcommand*\xister at y{1.55ex}
+\newcommand*\xister at bx{1.2}
+\newcommand*\xister at by{}
+\newcommand*\xister at bs{}
+\newcommand*\xister at font{\normalfont}
+\newcommand*\xister at five@dot{.09ex}
+\newcommand*\xister at five@dash{}
+\newcommand*\xister at share@div{/6}
+\newcommand*\xister at share@mul{}
+\newif\ifxister at dbg@
+\newif\ifxister at five@triangle@\xister at five@triangle at true
+\newif\ifxister at five@dot@
+\newdimen\xister at X
+\newdimen\xister at Y
+\newdimen\xister at XY@share
+\newdimen\xister at Th
+\newdimen\xister at Tv
+\newdimen\xister at Tdu
+\newdimen\xister at Tdd
+\newdimen\xister at TMPA
+\newdimen\xister at TMPB
+% \end{macrocode}
+%
+% We also need a bunch of box registers ($37$ of them to be precise). For the
+% loop we borrow an \pkg{expl3} function.
+% \begin{macrocode}
+\ExplSyntaxOn
+\int_step_inline:nn {9}
+ {
+ \expandafter\newsavebox\csname xister at digitbox@#1\endcsname
+ \expandafter\newsavebox\csname xister at digitbox@#10\endcsname
+ \expandafter\newsavebox\csname xister at digitbox@#100\endcsname
+ \expandafter\newsavebox\csname xister at digitbox@#1000\endcsname
+ }
+\ExplSyntaxOff
+\expandafter\newsavebox\csname xister at digitbox@0\endcsname
+% \end{macrocode}
+%
+% \begin{macro}[internal]{\xister at dbg@dim,\xister at dbg@float}
+% These are initially just |\@gobble|, but the |debug| option might change
+% things.
+% \begin{macrocode}
+\let\xister at dbg@dim\@gobble
+\let\xister at dbg@div\@gobble
+\let\xister at dbg@float\@gobble
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \subsection{Options}
+%
+% Some macros are required to parse options.
+%
+% \begin{macro}[internal]{\xister at if@slash}
+% We need to test whether a slash is inside an argument to parse some user
+% option. Since this isn't needed inside an inner loop we don't create an
+% optimised version and only borrow a generic \pkg{expl3} function.
+% \begin{macrocode}
+\ExplSyntaxOn
+\cs_new_protected:Npn \xister at if@slash #1 { \tl_if_in:nnTF {#1} { / } }
+\ExplSyntaxOff
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]{\xister at fraction}
+% \begin{macrocode}
+\protected\long\def\xister at fraction#1/#2\xister at stop
+ {%
+ \edef\xister at share@mul{\unexpanded{#1}}%
+ \xister at dbg@float{#1}%
+ \edef\xister at share@div{/\unexpanded{#2}}%
+ \xister at dbg@div{#2}%
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]
+% {
+% \xister at build,
+% \xister at build@h,\xister at build@horizontal,
+% \xister at build@v,\xister at build@vertical
+% }
+% First we set the length registers to the correct size, than we draw the
+% glyphs batch wise. We have to flip the $x$-direction for the tenths and
+% thousands, and the $y$-direction for the hundreds and thousands. The macro
+% |\xister at sgn| is used to set the baseline in the correct direction. We
+% locally disable |\pgfsetcolor| to allow building colour-unsafe boxes. This
+% only works as long as \pkg{luacolor} (or something equivalent) isn't used,
+% so consider this a crude hack.
+% \begin{macrocode}
+\protected\def\xister at build@vertical
+ {%
+ \let\xister at pgfsetcolor\pgfsetcolor
+ \let\pgfsetcolor\@gobble
+ \xister at setlengths
+ \def\xister at sgn{-}%
+ \xister at drawzero@vertical
+ \xister at drawdigits@vertical{}{}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{+}%
+ \xister at drawdigits@vertical{000}{-}{-}%
+ \xister at TMPA=\xister at Tdd
+ \xister at Tdd=\xister at Tdu
+ \xister at Tdu=\xister at TMPA
+ \xister at X=-\xister at X
+ \xister at drawdigits@vertical{00}{-}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{-}%
+ \xister at drawdigits@vertical{0}{}{-}%
+ \let\pgfsetcolor\xister at pgfsetcolor
+ }
+\protected\def\xister at build@horizontal
+ {%
+ \let\xister at pgfsetcolor\pgfsetcolor
+ \let\pgfsetcolor\@gobble
+ \xister at setlengths
+ \def\xister at sgn{-}%
+ \xister at drawzero@horizontal
+ \xister at drawdigits@horizontal{}{}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{+}%
+ \xister at drawdigits@horizontal{000}{-}{-}%
+ \xister at TMPA=\xister at Tdd
+ \xister at Tdd=\xister at Tdu
+ \xister at Tdu=\xister at TMPA
+ \xister at X=-\xister at X
+ \xister at drawdigits@horizontal{0}{-}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{-}%
+ \xister at drawdigits@horizontal{00}{}{-}%
+ \let\pgfsetcolor\xister at pgfsetcolor
+ }
+\let\xister at build\xister at build@vertical
+\let\xister at build@v\xister at build@vertical
+\let\xister at build@h\xister at build@horizontal
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]{\xister at fontfeatures,\xister at add@fontfeature}
+% This macro should store the different font features which should be kept
+% track of. It will be redefined programmatically but the default is quite
+% easy, just track the font size.
+% \begin{macrocode}
+\protected\long\def\xister at add@fontfeature#1%
+ {%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx
+ \csname xister at add@fontfeature@\detokenize{#1}\endcsname
+ \relax
+ \PackageError{xistercian}{Unsupported font feature `\detokenize{#1}'.}{}%
+ \else
+ \csname xister at add@fontfeature@\detokenize{#1}\endcsname
+ \fi
+ }
+\def\xister at fontfeatures{\unexpanded\expandafter{\f at size}/}
+% \end{macrocode}
+% We know that the colour hack breaks if \pkg{luacolor} is loaded, so if that
+% is found to be the case we add the |color| feature to the list of things we
+% need to track. But we only want to add it if it's not yet in the list, so we
+% run a check we borrow from \pkg{expl3}.
+% \begin{macrocode}
+\ExplSyntaxOn
+\AddToHook{begindocument/before}
+ {
+ \@ifpackageloaded { luacolor }
+ {
+ \exp_args:No \str_if_in:nnF \xister at fontfeatures { color }
+ { \xister at add@fontfeature{color} }
+ }
+ {}
+ }
+\ExplSyntaxOff
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]
+% {
+% \xister at add@fontfeature at encoding,
+% \xister at add@fontfeature at family,
+% \xister at add@fontfeature at series,
+% \xister at add@fontfeature at shape,
+% \xister at add@fontfeature at size,
+% }
+% These macros all just add a specific macro to the list of things contained
+% in |\xister at fontfeatures|, which determines what to consider deciding to
+% redraw.
+% \begin{macrocode}
+\def\xister at tmp#1#2%
+ {%
+ \protected\expandafter\def\csname xister at add@fontfeature@#2\endcsname
+ {%
+ \edef\xister at fontfeatures
+ {%
+ \unexpanded\expandafter
+ {\xister at fontfeatures\unexpanded\expandafter{#1}}/%
+ }%
+ }%
+ }
+\expandafter\xister at tmp\csname\string\color at .\endcsname{color}
+\xister at tmp\f at encoding{encoding}
+\xister at tmp\f at family {family}
+\xister at tmp\f at series {series}
+\xister at tmp\f at shape {shape}
+\xister at tmp\f at size {size}
+% \end{macrocode}
+% \end{macro}
+%
+% Now we define the keys
+% \begin{macrocode}
+\ekvifdefinedset{xister}
+ {\PackageError{xistercian}{keyval conflict detected. Aborting}{}\endinput}{}
+\def\xister at tmp#1#2#3%
+ {%
+ \protected\long\ekvdef{xister}{#1}{#3}%
+ \ekvletkv{xister}{#2}{xister}{#1}%
+ }
+\xister at tmp{wd}{width}{\edef\xister at x{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{ht}{height}{\edef\xister at y{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sv}{stroke-v}{\edef\xister at tv{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sh}{stroke-h}{\edef\xister at th{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sdu}{stroke-du}
+ {\edef\xister at tdu{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sdd}{stroke-dd}
+ {\edef\xister at tdd{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{bx}{bound-x}{\edef\xister at bx{\unexpanded{#1}}\xister at dbg@float{#1}}
+\xister at tmp{by}{bound-y}{\edef\xister at by{\unexpanded{#1}}\xister at dbg@float{#1}}
+\xister at tmp{bs}{baseline}{\edef\xister at bs{\unexpanded{#1}}\xister at dbg@float{#1}}
+\xister at tmp{s}{strokes}
+ {%
+ \edef\xister at tv{\unexpanded{#1}}%
+ \let\xister at th\xister at tv
+ \let\xister at tdu\xister at tv
+ \let\xister at tdd\xister at tv
+ \xister at dbg@dim{#1}%
+ }
+\xister at tmp{f}{font}{\edef\xister at font{\unexpanded{#1}}}
+\xister at tmp{o}{orientation}
+ {%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname xister at build@#1\endcsname\relax
+ \PackageError{xister}%
+ {Unaccepted orientation. Choices are horizontal/h or vertical/v}{}%
+ \else
+ \expandafter\let\expandafter\xister at build\csname xister at build@#1\endcsname
+ \fi
+ }
+\xister at tmp{fr}{fraction}
+ {%
+ \xister at if@slash{#1}%
+ {\xister at fraction#1\xister at stop}%
+ {%
+ \let\xister at share@div\@empty
+ \edef\xister at share@mul{\unexpanded{#1}}%
+ \xister at dbg@float{#1}%
+ }%
+ }
+\xister at tmp{r}{redraw}
+ {\let\xister at fontfeatures\@empty\ekvcsvloop\xister at add@fontfeature{#1}}
+\xister at tmp{r+}{redraw+}{\ekvcsvloop\xister at add@fontfeature{#1}}
+\ekvletkv{xister}{r +}{xister}{r+}
+\ekvletkv{xister}{redraw +}{xister}{redraw+}
+\protected\long\ekvdef{xister/5}{dot}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at true
+ \edef\xister at five@dot{\unexpanded{#1}}%
+ \xister at dbg@dim{#1}%
+ }
+\protected\long\ekvdef{xister/5}{dash}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at false
+ \edef\xister at five@dash{\unexpanded{#1}}%
+ \xister at dbg@float{#1}%
+ }
+\protected\ekvdefNoVal{xister/5}{triangle}{\xister at five@triangle at true}
+\protected\ekvdefNoVal{xister/5}{dot}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at true
+ }
+\protected\ekvdefNoVal{xister/5}{dash}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at false
+ }
+\protected\ekvsetdef\xister at five@set{xister/5}
+\ekvlet{xister}{5}\xister at five@set
+\ekvlet{xister}{alternate-5}\xister at five@set
+\let\xister at five@set\xister at undefined
+\protected\ekvdefNoVal{xister}{horizontal}
+ {%
+ \let\xister at build\xister at build@horizontal
+ \def\xister at x{.62em}%
+ \def\xister at y{1ex}%
+ }
+\protected\ekvdefNoVal{xister}{vertical}
+ {%
+ \let\xister at build\xister at build@vertical
+ \def\xister at x{.4em}%
+ \def\xister at y{1.55ex}%
+ }
+% \end{macrocode}
+% The |debug| option redefines the debug macros to the correct definition.
+% \begin{macrocode}
+\protected\ekvdefNoVal{xister}{debug}
+ {%
+ \xister at dbg@true
+ \protected\long\def\xister at dbg@dim##1%
+ {%
+ \typeout
+ {%
+ Package xistercian Debug: Trying to use dimension
+ `\unexpanded{##1}'.%
+ }%
+ \xister at TMPA=\dimexpr##1\relax
+ \typeout{Package xistercian Debug: Done.}%
+ }%
+ \protected\long\def\xister at dbg@float##1%
+ {%
+ \typeout
+ {Package xistercian Debug: Trying to use float `\unexpanded{##1}'.}%
+ \xister at TMPA=##1\z@
+ \typeout{Package xistercian Debug: Done.}%
+ }%
+ \protected\long\def\xister at dbg@div##1%
+ {%
+ \typeout
+ {Package xistercian Debug: Trying to use divisor `\unexpanded{##1}'.}%
+ \xister at TMPA=\dimexpr\z@/##1\relax
+ \typeout{Package xistercian Debug: Done.}%
+ }%
+ }
+% \end{macrocode}
+% and parse the package options (and since the used names |width|, |height|, and
+% |debug| are quite frequent we don't look at the global options).
+% \begin{macrocode}
+\ekvoProcessLocalOptions{xister}
+% \end{macrocode}
+%
+% After the package was loaded we add the two |redraw| variants without a value.
+% \begin{macrocode}
+\protected\ekvdefNoVal{xister}{r!}{\cistercianredraw}
+\protected\ekvdefNoVal{xister}{r} {\cistercianredrawlazy}
+\ekvletkvNoVal{xister}{redraw} {xister}{r}
+\ekvletkvNoVal{xister}{redraw!}{xister}{r!}
+% \end{macrocode}
+%
+% The |debug| option is only available as a package option, we let it throw an
+% error:
+% \begin{macrocode}
+\ekvdefNoVal{xister}{debug}
+ {\PackageError{xister}{`debug' is only available as a load time option}{}}
+% \end{macrocode}
+%
+%
+% \subsection{User macros}
+%
+% \begin{macro}{\cisterciansetup}
+% Just as a simple way to pick options later on.
+% \begin{macrocode}
+\protected\ekvsetdef\cisterciansetup{xister}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\cistercianstyle}
+% We allow users to define a style they can call with a single key name inside
+% |\cisterciansetup|. To achieve that we just define a |NoVal| key that'll
+% call a nested |\cisterciansetup|.
+% \begin{macrocode}
+\protected\long\def\cistercianstyle#1#2%
+ {%
+ \ekvifdefinedNoVal{xister}{#1}%
+ {\PackageError{xistercian}{Key `#1' already defined}{}}%
+ {\protected\ekvdefNoVal{xister}{#1}{\cisterciansetup{#2}}}%
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\cistercian}
+% \begin{macro}[internal]{\@cistercian}
+% The macro is equivalent to other \LaTeX\ counter formatting macros, so we
+% let it build the counter name and forward that to the canonically named
+% auxiliary macro |\@cistercian|.
+% \begin{macrocode}
+\newcommand\cistercian[1]{\expandafter\@cistercian\csname c@#1\endcsname}
+% \end{macrocode}
+% The internal just gets the current value of a counter and forwards it.
+% \begin{macrocode}
+\newcommand\@cistercian[1]{\expandafter\cisterciannum\expandafter{\the#1}}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%
+% \begin{macro}{\cisterciannum}
+% \begin{macro}[internal]{\cisterciannum at pdf}
+% \begin{macrocode}
+\edef\cisterciannum
+ {%
+ \unexpanded{\xister at texorpdf}%
+ \unexpanded\expandafter
+ {\csname cisterciannum \endcsname\cisterciannum at pdf}%
+ }
+\protected\expandafter\def\csname cisterciannum \endcsname#1{\xister at a#1@}
+\def\cisterciannum at pdf#1{CISTER#1}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\cisterciannumE}
+% \begin{macrocode}
+\newcommand\cisterciannumE[1]
+ {\expandafter\cisterciannum\expandafter{\the\numexpr#1\relax}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\cistercianredraw,\cistercianredrawlazy}
+% \begin{macrocode}
+\protected\def\cistercianredraw
+ {%
+ \def\xister at last@font{\xister at last@font}%
+ \xister at ensure@current
+ }
+\protected\def\cistercianredrawlazy{\def\xister at last@font{\xister at last@font}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \subsection{Parsing}
+%
+% \subsubsection{Small Auxiliaries}
+%
+% \begin{macro}[internal]
+% {\xister at gobbletoat,\xister at gobbletozero,\xister at gobblecopy,\xister at done}
+% These are just small functions gobbling some tokens.
+% \begin{macrocode}
+\def\xister at gobbletoat#1@{}
+\def\xister at gobbletozero#10{}
+\def\xister at gobblecopy0\rlap#1{}
+\def\xister at done#1\xister at symbols@{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]{\xister at count,\xister at count@done}
+% A simple loop to count tokens. The loop delimiter is a single |@|. Should be
+% used after |\numexpr|.
+% \begin{macrocode}
+\def\xister at count#1{\xister at gobbletoat#1\xister at count@done @+1\xister at count}
+\def\xister at count@done @+1\xister at count{\relax @}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]{\xister at texorpdf}
+% \begin{macrocode}
+\let\xister at texorpdf\@firstoftwo
+\AddToHook{package/after/hyperref}
+ {%
+ \ifdefined\texorpdfstring
+ \let\xister at texorpdf\texorpdfstring
+ \fi
+ }
+\AddToHook{begindocument/before}
+ {%
+ \ifdefined\texorpdfstring
+ \let\xister at texorpdf\texorpdfstring
+ \fi
+ }
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \subsubsection{Input Parsing}
+%
+% \begin{macro}[internal]{\xister at a,\xister at b,\xister at c}
+% First we have to make sure that we're in horizontal mode, else the |\rlap|s
+% used to insert the glyphs will create havoc. We also need to ensure that the
+% boxes contain the correct glyphs according to the current size and colour.
+% After that we check whether we have to step over a minus sign and go to the
+% next step.
+% \begin{macrocode}
+\def\xister at a#1%
+ {%
+ \leavevmode
+ \xister at ensure@current
+ \ifx-#1-\expandafter\xister at b
+ \else\expandafter\xister at b\expandafter#1\fi
+ }
+% \end{macrocode}
+% Next we count the number of decimal digits in the number we want to print,
+% take that modulo $4$ (that's what's |4*((#1-2)/4)| is doing, thanks to Heiko
+% Oberdiek and the code in \pkg{expl3}), and use the correct symbol creating
+% macro. The |@@@@| serves as the end marker since each step (except the
+% first) will grab four digits.
+% \begin{macrocode}
+\def\xister at b#1@%
+ {\expandafter\xister at c\the\numexpr\xister at count#1@#1@@@@}
+\def\xister at c#1@%
+ {\csname xister at symbols@\romannumeral\numexpr#1-4*((#1-2)/4)\relax\endcsname}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]
+% {\xister at symbols@,\xister at symbols@i,\xister at symbols@ii,\xister at symbols@iii}
+% When this loop is done all arguments will be |@|, but we only check the
+% first here. We generate the symbols by overlaying up to five boxes, one for
+% each decade plus the zero stem. Each digit might be skipped if it is $0$.
+% Next grab the next four digits.
+% \begin{macrocode}
+\def\xister at symbols@#1%
+ {%
+ \protected\def\xister at symbols@##1##2##3##4%
+ {%
+ \xister at gobbletoat##1\xister at done @%
+ \xister at gobbletozero##1\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##1000\endcsname}%
+ \xister at gobbletozero##2\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##200\endcsname}%
+ \xister at gobbletozero##3\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##30\endcsname}%
+ \xister at gobbletozero##4\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##4\endcsname}%
+ \copy#1%
+ \xister at symbols@
+ }%
+ }
+\expandafter\xister at symbols@\csname xister at digitbox@0\endcsname
+% \end{macrocode}
+% If there are less than four decimal digits inside the first Cistercian
+% numeral we provide enough zeros to fill up the remainder.
+% \begin{macrocode}
+\def\xister at symbols@i{\xister at symbols@000}
+\def\xister at symbols@ii{\xister at symbols@00}
+\def\xister at symbols@iii{\xister at symbols@0}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \subsection{Drawing the Digits}
+%
+% \begin{macro}[internal]{\xister at clip@v,\xister at clip@h}
+% Some of the digit glyphs need a bit of clipping to look nice. Let's define a
+% small auxiliary to select a clipping region.
+% \begin{macrocode}
+\newcommand*\xister at clip@v[1]
+ {%
+ \pgfpathrectanglecorners
+ {\pgfpoint{\dimexpr\ifdim\xister at X<\z at -\fi\xister at Tv\relax}{#1}}%
+ {\pgfpoint\xister at X\xister at Y}%
+ \pgfusepath{clip}%
+ }
+\newcommand*\xister at clip@h[1]
+ {%
+ \pgfpathrectanglecorners
+ {\pgfpoint{#1}{-\dimexpr\ifdim\xister at Y<\z at -\fi\xister at Th\relax}}%
+ {\pgfpoint{-\xister at X}\xister at Y}%
+ \pgfusepath{clip}%
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]
+% {\xister at drawdigits@vertical,\xister at drawdigits@horizontal}
+% The digit glyphs. Since each numeral is build from the zero stem and some
+% appendix to it this only specifies the form of the appendices. The zero stem
+% is defined a bit down the road. |#1| will determine the decade, and |#2|
+% will be either~|-| or empty.
+% \begin{macrocode}
+\newcommand\xister at drawdigits@vertical[3]
+ {%
+ \xister at XY@share=\dimexpr\xister at share@mul\xister at Y\xister at share@div\relax
+ \xister at drawdigit{1#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPA=\dimexpr\xister at Y\xister at sgn\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint\z@\xister at TMPA}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at TMPA}%
+ }%
+ \xister at drawdigit{2#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPA=\dimexpr\xister at XY@share+#2\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint\z@\xister at TMPA}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at TMPA}%
+ }%
+ \xister at drawdigit{3#1}%
+ {%
+ \xister at TMPB=#3\dimexpr\xister at Tv-\xister at Tdd\relax
+ \xister at clip@v\xister at XY@share
+ \pgfsetlinewidth{2\xister at Tdd}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at XY@share}%
+ }%
+ \xister at drawdigit{4#1}%
+ {%
+ \xister at clip@v\z@
+ \xister at TMPB=#3\dimexpr\xister at Tv-\xister at Tdu\relax
+ \pgfsetlinewidth{2\xister at Tdu}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at Y}%
+ }%
+ \xister at drawdigit{5#1}%
+ {%
+ \ifxister at five@triangle@
+ \xister at clip@v\z@
+ \xister at TMPB=%
+ #3\dimexpr\xister at Tv-\xister at Tdu\relax
+ \pgfsetlinewidth{2\xister at Tdu}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at Y}%
+ \pgfusepath{stroke,clip}%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPA=\dimexpr\xister at Y\xister at sgn\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint\z@\xister at TMPA}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at TMPA}%
+ \else\ifxister at five@dot@
+ \pgfpathcircle
+ {\pgfpoint{\dimexpr\xister at X-#3\xister at five@dot\relax}%
+ {\dimexpr\xister at Y-#2\xister at five@dot\relax}}%
+ {\xister at five@dot}%
+ \pgfusepath{fill}%
+ \else
+ \xister at TMPB=\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfsetlinewidth{2\xister at Tv}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto
+ {%
+ \pgfpoint
+ \xister at TMPB
+ {\dimexpr\xister at Y-#2\xister at five@dash\xister at Tv*2\relax}%
+ }%
+ \fi\fi
+ }%
+ \xister at drawdigit{6#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPB=\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ }%
+ \xister at superimpose{7#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{8#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{9#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ }
+\newcommand\xister at drawdigits@horizontal[3]
+ {%
+ \xister at XY@share=-\dimexpr\xister at share@mul\xister at X\xister at share@div\relax
+ \xister at drawdigit{1#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPA=-\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPA\z@}%
+ \pgfpathlineto{\pgfpoint\xister at TMPA\xister at Y}%
+ }%
+ \xister at drawdigit{2#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPA=-\dimexpr#3\xister at Tv-\xister at XY@share\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPA\z@}%
+ \pgfpathlineto{\pgfpoint\xister at TMPA\xister at Y}%
+ }%
+ \xister at drawdigit{3#1}%
+ {%
+ \xister at TMPB=#2\dimexpr\xister at Th-\xister at Tdu\relax
+ \xister at clip@h\xister at XY@share
+ \pgfsetlinewidth{2\xister at Tdu}%
+ \pgfpathmoveto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at Y}%
+ }%
+ \xister at drawdigit{4#1}%
+ {%
+ \xister at clip@h\z@
+ \xister at TMPB=#2\dimexpr\xister at Th-\xister at Tdd\relax
+ \pgfsetlinewidth{2\xister at Tdd}%
+ \pgfpathmoveto{\pgfpoint\xister at X\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint{-\xister at X}\xister at Y}%
+ }%
+ \xister at drawdigit{5#1}%
+ {%
+ \ifxister at five@triangle@
+ \xister at clip@h\z@
+ \xister at TMPB=#2\dimexpr\xister at Th-\xister at Tdd\relax
+ \pgfsetlinewidth{2\xister at Tdd}%
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint{-\xister at X}\xister at Y}%
+ \pgfusepath{stroke,clip}%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPA=-\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPA\z@}%
+ \pgfpathlineto{\pgfpoint\xister at TMPA\xister at Y}%
+ \else\ifxister at five@dot@
+ \pgfpathcircle
+ {\pgfpoint{-\dimexpr\xister at X-#3\xister at five@dot\relax}%
+ {\dimexpr\xister at Y-#2\xister at five@dot\relax}}%
+ {\xister at five@dot}%
+ \pgfusepath{fill}%
+ \else
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPB=\dimexpr\xister at Y-#2\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto
+ {%
+ \pgfpoint
+ {-\dimexpr\xister at X-#3\xister at five@dash\xister at Th*2\relax}%
+ \xister at TMPB
+ }%
+ \fi\fi
+ }%
+ \xister at drawdigit{6#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPB=\dimexpr\xister at Y-#2\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ }%
+ \xister at superimpose{7#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{8#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{9#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ }
+% \end{macrocode}
+% Each digit has the same bounding box and baseline which is specified here.
+% |#1| will be the name, |#2| the digit specific path.
+% \begin{macrocode}
+\newcommand\xister at drawdigit[2]
+ {%
+ \expandafter\setbox\csname xister at digitbox@#1\endcsname=\hbox
+ {%
+ \begin{pgfpicture}%
+ \pgfpathrectanglecorners
+ {\pgfpoint{-\xister at bx\xister at X}{-\xister at by\xister at Y}}%
+ {\pgfpoint{\xister at bx\xister at X}{\xister at by\xister at Y}}%
+ \pgfusepath{use as bounding box}%
+ #2%
+ \pgfusepath{stroke}%
+ \pgfsetbaseline{\xister at sgn\xister at bs\xister at Y}%
+ \end{pgfpicture}%
+ }%
+ }
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}[internal]
+% {\xister at drawzero@horizontal,\xister at drawzero@vertical}
+% \begin{macrocode}
+\newcommand*\xister at drawzero@vertical
+ {%
+ \xister at drawdigit{0}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \pgfpathmoveto{\pgfpoint\z@{-\xister at Y}}%
+ \pgfpathlineto{\pgfpoint\z@\xister at Y}%
+ }%
+ }
+\newcommand*\xister at drawzero@horizontal
+ {%
+ \xister at drawdigit{0}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\z@}%
+ \pgfpathlineto{\pgfpoint\xister at X\z@}%
+ }%
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]{\xister at superimpose}
+% Some digits can be build from a few of the other ones. This is faster than
+% drawing everything again, and this macro eases the process a bit.
+% \begin{macrocode}
+\newcommand\xister at superimpose[2]
+ {\expandafter\setbox\csname xister at digitbox@#1\endcsname=\hbox{#2}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \subsection{Rebuild the Glyphs}
+%
+% \begin{macro}[internal]{\xister at setlengths}
+% Lengths are set depending on the current font size and the sizes of
+% |\xister at font|. To keep the font changes local they are kept inside a group
+% and a chain of |\expandafter|s is used to evaluate the user specified sizes
+% while the |\xister at font| is still active.
+% \begin{macrocode}
+\protected\def\xister at setlengths
+ {%
+ \begingroup
+ \xister at font
+ \edef\xister at tmp
+ {%
+ \endgroup
+ \xister at X=\the\dimexpr.5\dimexpr\xister at x\relax\relax
+ \xister at Y=\the\dimexpr.5\dimexpr\xister at y\relax\relax
+ \xister at Th=\the\dimexpr.5\dimexpr\xister at th\relax\relax
+ \xister at Tv=\the\dimexpr.5\dimexpr\xister at tv\relax\relax
+ \xister at Tdu=\the\dimexpr.5\dimexpr\xister at tdu\relax\relax
+ \xister at Tdd=\the\dimexpr.5\dimexpr\xister at tdd\relax\relax
+ }%
+ \xister at tmp
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[internal]{\xister at ensure@current}
+% The glyphs have to be rebuilt if the font size or colour changed. The latter
+% is an annoyance because we can build boxes in a way that they change colour
+% to the surrounding colour, but \pkg{PGF} is too intelligent here and does
+% issue the corresponding |\special|s to save the current colour for the box.
+% Because of that we test which |\f at size| and colour (using |\\color at .|) was
+% active when we last built the glyphs. If this matches we do nothing, else we
+% rebuild the glyphs.
+%
+% The |\edef| is just used to remove the |debug| code if it isn't necessary.
+% \begin{macrocode}
+\protected\edef\xister at ensure@current
+ {%
+ \unexpanded{\edef\xister at tmp{\xister at fontfeatures}}%
+ \unexpanded{\unless\ifx\xister at tmp\xister at last@font}%
+ \ifxister at dbg@
+ \unexpanded
+ {%
+ \typeout
+ {%
+ Package xistercian Debug: Font changed. Building glyphs for
+ \xister at tmp.
+ }%
+ }%
+ \fi
+ \unexpanded
+ {%
+ \let\xister at last@font\xister at tmp
+ \xister at build
+ }%
+ \ifxister at dbg@
+ \unexpanded{\typeout{Package xistercian Debug: Done.}}%
+ \fi
+ \unexpanded{\fi}%
+ }
+\AtBeginDocument{\xister at ensure@current}
+% \end{macrocode}
+% \end{macro}
+%
+% \clearpage
+% \PrintIndex
Property changes on: trunk/Master/texmf-dist/source/latex/xistercian/xistercian.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/xistercian/xistercian.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xistercian/xistercian.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/xistercian/xistercian.sty 2021-07-18 20:24:04 UTC (rev 59976)
@@ -0,0 +1,650 @@
+%%
+%% This is file `xistercian.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% xistercian.dtx (with options: `pkg')
+%%
+%% --------------------------------------------------------------
+%% xistercian -- Cistercian numerals in LaTeX
+%% E-mail: jspratte at yahoo.de
+%% Released under the LaTeX Project Public License v1.3c or later
+%% See http://www.latex-project.org/lppl.txt
+%% --------------------------------------------------------------
+%%
+%% Copyright (C) 2020-2021 Jonathan P. Spratte
+%%
+%% This work may be distributed and/or modified under the conditions of the
+%% LaTeX Project Public License (LPPL), either version 1.3c of this license or
+%% (at your option) any later version. The latest version of this license is in
+%% the file:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status) by
+%% Jonathan P. Spratte.
+%%
+%% This work consists of the file xistercian.dtx
+%% and the derived files xistercian.pdf
+%% xistercian.sty
+%%
+\RequirePackage{pgf,expkv-opt}
+\newcommand*\xister at th{.1ex}
+\newcommand*\xister at tv{.18ex}
+\newcommand*\xister at tdu{.1ex}
+\newcommand*\xister at tdd{.18ex}
+\newcommand*\xister at x{.4em}
+\newcommand*\xister at y{1.55ex}
+\newcommand*\xister at bx{1.2}
+\newcommand*\xister at by{}
+\newcommand*\xister at bs{}
+\newcommand*\xister at font{\normalfont}
+\newcommand*\xister at five@dot{.09ex}
+\newcommand*\xister at five@dash{}
+\newcommand*\xister at share@div{/6}
+\newcommand*\xister at share@mul{}
+\newif\ifxister at dbg@
+\newif\ifxister at five@triangle@\xister at five@triangle at true
+\newif\ifxister at five@dot@
+\newdimen\xister at X
+\newdimen\xister at Y
+\newdimen\xister at XY@share
+\newdimen\xister at Th
+\newdimen\xister at Tv
+\newdimen\xister at Tdu
+\newdimen\xister at Tdd
+\newdimen\xister at TMPA
+\newdimen\xister at TMPB
+\ExplSyntaxOn
+\int_step_inline:nn {9}
+ {
+ \expandafter\newsavebox\csname xister at digitbox@#1\endcsname
+ \expandafter\newsavebox\csname xister at digitbox@#10\endcsname
+ \expandafter\newsavebox\csname xister at digitbox@#100\endcsname
+ \expandafter\newsavebox\csname xister at digitbox@#1000\endcsname
+ }
+\ExplSyntaxOff
+\expandafter\newsavebox\csname xister at digitbox@0\endcsname
+\let\xister at dbg@dim\@gobble
+\let\xister at dbg@div\@gobble
+\let\xister at dbg@float\@gobble
+\ExplSyntaxOn
+\cs_new_protected:Npn \xister at if@slash #1 { \tl_if_in:nnTF {#1} { / } }
+\ExplSyntaxOff
+\protected\long\def\xister at fraction#1/#2\xister at stop
+ {%
+ \edef\xister at share@mul{\unexpanded{#1}}%
+ \xister at dbg@float{#1}%
+ \edef\xister at share@div{/\unexpanded{#2}}%
+ \xister at dbg@div{#2}%
+ }
+\protected\def\xister at build@vertical
+ {%
+ \let\xister at pgfsetcolor\pgfsetcolor
+ \let\pgfsetcolor\@gobble
+ \xister at setlengths
+ \def\xister at sgn{-}%
+ \xister at drawzero@vertical
+ \xister at drawdigits@vertical{}{}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{+}%
+ \xister at drawdigits@vertical{000}{-}{-}%
+ \xister at TMPA=\xister at Tdd
+ \xister at Tdd=\xister at Tdu
+ \xister at Tdu=\xister at TMPA
+ \xister at X=-\xister at X
+ \xister at drawdigits@vertical{00}{-}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{-}%
+ \xister at drawdigits@vertical{0}{}{-}%
+ \let\pgfsetcolor\xister at pgfsetcolor
+ }
+\protected\def\xister at build@horizontal
+ {%
+ \let\xister at pgfsetcolor\pgfsetcolor
+ \let\pgfsetcolor\@gobble
+ \xister at setlengths
+ \def\xister at sgn{-}%
+ \xister at drawzero@horizontal
+ \xister at drawdigits@horizontal{}{}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{+}%
+ \xister at drawdigits@horizontal{000}{-}{-}%
+ \xister at TMPA=\xister at Tdd
+ \xister at Tdd=\xister at Tdu
+ \xister at Tdu=\xister at TMPA
+ \xister at X=-\xister at X
+ \xister at drawdigits@horizontal{0}{-}{}%
+ \xister at X=-\xister at X
+ \xister at Y=-\xister at Y
+ \def\xister at sgn{-}%
+ \xister at drawdigits@horizontal{00}{}{-}%
+ \let\pgfsetcolor\xister at pgfsetcolor
+ }
+\let\xister at build\xister at build@vertical
+\let\xister at build@v\xister at build@vertical
+\let\xister at build@h\xister at build@horizontal
+\protected\long\def\xister at add@fontfeature#1%
+ {%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx
+ \csname xister at add@fontfeature@\detokenize{#1}\endcsname
+ \relax
+ \PackageError{xistercian}{Unsupported font feature `\detokenize{#1}'.}{}%
+ \else
+ \csname xister at add@fontfeature@\detokenize{#1}\endcsname
+ \fi
+ }
+\def\xister at fontfeatures{\unexpanded\expandafter{\f at size}/}
+\ExplSyntaxOn
+\AddToHook{begindocument/before}
+ {
+ \@ifpackageloaded { luacolor }
+ {
+ \exp_args:No \str_if_in:nnF \xister at fontfeatures { color }
+ { \xister at add@fontfeature{color} }
+ }
+ {}
+ }
+\ExplSyntaxOff
+\def\xister at tmp#1#2%
+ {%
+ \protected\expandafter\def\csname xister at add@fontfeature@#2\endcsname
+ {%
+ \edef\xister at fontfeatures
+ {%
+ \unexpanded\expandafter
+ {\xister at fontfeatures\unexpanded\expandafter{#1}}/%
+ }%
+ }%
+ }
+\expandafter\xister at tmp\csname\string\color at .\endcsname{color}
+\xister at tmp\f at encoding{encoding}
+\xister at tmp\f at family {family}
+\xister at tmp\f at series {series}
+\xister at tmp\f at shape {shape}
+\xister at tmp\f at size {size}
+\ekvifdefinedset{xister}
+ {\PackageError{xistercian}{keyval conflict detected. Aborting}{}\endinput}{}
+\def\xister at tmp#1#2#3%
+ {%
+ \protected\long\ekvdef{xister}{#1}{#3}%
+ \ekvletkv{xister}{#2}{xister}{#1}%
+ }
+\xister at tmp{wd}{width}{\edef\xister at x{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{ht}{height}{\edef\xister at y{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sv}{stroke-v}{\edef\xister at tv{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sh}{stroke-h}{\edef\xister at th{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sdu}{stroke-du}
+ {\edef\xister at tdu{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{sdd}{stroke-dd}
+ {\edef\xister at tdd{\unexpanded{#1}}\xister at dbg@dim{#1}}
+\xister at tmp{bx}{bound-x}{\edef\xister at bx{\unexpanded{#1}}\xister at dbg@float{#1}}
+\xister at tmp{by}{bound-y}{\edef\xister at by{\unexpanded{#1}}\xister at dbg@float{#1}}
+\xister at tmp{bs}{baseline}{\edef\xister at bs{\unexpanded{#1}}\xister at dbg@float{#1}}
+\xister at tmp{s}{strokes}
+ {%
+ \edef\xister at tv{\unexpanded{#1}}%
+ \let\xister at th\xister at tv
+ \let\xister at tdu\xister at tv
+ \let\xister at tdd\xister at tv
+ \xister at dbg@dim{#1}%
+ }
+\xister at tmp{f}{font}{\edef\xister at font{\unexpanded{#1}}}
+\xister at tmp{o}{orientation}
+ {%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname xister at build@#1\endcsname\relax
+ \PackageError{xister}%
+ {Unaccepted orientation. Choices are horizontal/h or vertical/v}{}%
+ \else
+ \expandafter\let\expandafter\xister at build\csname xister at build@#1\endcsname
+ \fi
+ }
+\xister at tmp{fr}{fraction}
+ {%
+ \xister at if@slash{#1}%
+ {\xister at fraction#1\xister at stop}%
+ {%
+ \let\xister at share@div\@empty
+ \edef\xister at share@mul{\unexpanded{#1}}%
+ \xister at dbg@float{#1}%
+ }%
+ }
+\xister at tmp{r}{redraw}
+ {\let\xister at fontfeatures\@empty\ekvcsvloop\xister at add@fontfeature{#1}}
+\xister at tmp{r+}{redraw+}{\ekvcsvloop\xister at add@fontfeature{#1}}
+\ekvletkv{xister}{r +}{xister}{r+}
+\ekvletkv{xister}{redraw +}{xister}{redraw+}
+\protected\long\ekvdef{xister/5}{dot}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at true
+ \edef\xister at five@dot{\unexpanded{#1}}%
+ \xister at dbg@dim{#1}%
+ }
+\protected\long\ekvdef{xister/5}{dash}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at false
+ \edef\xister at five@dash{\unexpanded{#1}}%
+ \xister at dbg@float{#1}%
+ }
+\protected\ekvdefNoVal{xister/5}{triangle}{\xister at five@triangle at true}
+\protected\ekvdefNoVal{xister/5}{dot}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at true
+ }
+\protected\ekvdefNoVal{xister/5}{dash}
+ {%
+ \xister at five@triangle at false
+ \xister at five@dot at false
+ }
+\protected\ekvsetdef\xister at five@set{xister/5}
+\ekvlet{xister}{5}\xister at five@set
+\ekvlet{xister}{alternate-5}\xister at five@set
+\let\xister at five@set\xister at undefined
+\protected\ekvdefNoVal{xister}{horizontal}
+ {%
+ \let\xister at build\xister at build@horizontal
+ \def\xister at x{.62em}%
+ \def\xister at y{1ex}%
+ }
+\protected\ekvdefNoVal{xister}{vertical}
+ {%
+ \let\xister at build\xister at build@vertical
+ \def\xister at x{.4em}%
+ \def\xister at y{1.55ex}%
+ }
+\protected\ekvdefNoVal{xister}{debug}
+ {%
+ \xister at dbg@true
+ \protected\long\def\xister at dbg@dim##1%
+ {%
+ \typeout
+ {%
+ Package xistercian Debug: Trying to use dimension
+ `\unexpanded{##1}'.%
+ }%
+ \xister at TMPA=\dimexpr##1\relax
+ \typeout{Package xistercian Debug: Done.}%
+ }%
+ \protected\long\def\xister at dbg@float##1%
+ {%
+ \typeout
+ {Package xistercian Debug: Trying to use float `\unexpanded{##1}'.}%
+ \xister at TMPA=##1\z@
+ \typeout{Package xistercian Debug: Done.}%
+ }%
+ \protected\long\def\xister at dbg@div##1%
+ {%
+ \typeout
+ {Package xistercian Debug: Trying to use divisor `\unexpanded{##1}'.}%
+ \xister at TMPA=\dimexpr\z@/##1\relax
+ \typeout{Package xistercian Debug: Done.}%
+ }%
+ }
+\ekvoProcessLocalOptions{xister}
+\protected\ekvdefNoVal{xister}{r!}{\cistercianredraw}
+\protected\ekvdefNoVal{xister}{r} {\cistercianredrawlazy}
+\ekvletkvNoVal{xister}{redraw} {xister}{r}
+\ekvletkvNoVal{xister}{redraw!}{xister}{r!}
+\ekvdefNoVal{xister}{debug}
+ {\PackageError{xister}{`debug' is only available as a load time option}{}}
+\protected\ekvsetdef\cisterciansetup{xister}
+\protected\long\def\cistercianstyle#1#2%
+ {%
+ \ekvifdefinedNoVal{xister}{#1}%
+ {\PackageError{xistercian}{Key `#1' already defined}{}}%
+ {\protected\ekvdefNoVal{xister}{#1}{\cisterciansetup{#2}}}%
+ }
+\newcommand\cistercian[1]{\expandafter\@cistercian\csname c@#1\endcsname}
+\newcommand\@cistercian[1]{\expandafter\cisterciannum\expandafter{\the#1}}
+\edef\cisterciannum
+ {%
+ \unexpanded{\xister at texorpdf}%
+ \unexpanded\expandafter
+ {\csname cisterciannum \endcsname\cisterciannum at pdf}%
+ }
+\protected\expandafter\def\csname cisterciannum \endcsname#1{\xister at a#1@}
+\def\cisterciannum at pdf#1{CISTER#1}
+\newcommand\cisterciannumE[1]
+ {\expandafter\cisterciannum\expandafter{\the\numexpr#1\relax}}
+\protected\def\cistercianredraw
+ {%
+ \def\xister at last@font{\xister at last@font}%
+ \xister at ensure@current
+ }
+\protected\def\cistercianredrawlazy{\def\xister at last@font{\xister at last@font}}
+\def\xister at gobbletoat#1@{}
+\def\xister at gobbletozero#10{}
+\def\xister at gobblecopy0\rlap#1{}
+\def\xister at done#1\xister at symbols@{}
+\def\xister at count#1{\xister at gobbletoat#1\xister at count@done @+1\xister at count}
+\def\xister at count@done @+1\xister at count{\relax @}
+\let\xister at texorpdf\@firstoftwo
+\AddToHook{package/after/hyperref}
+ {%
+ \ifdefined\texorpdfstring
+ \let\xister at texorpdf\texorpdfstring
+ \fi
+ }
+\AddToHook{begindocument/before}
+ {%
+ \ifdefined\texorpdfstring
+ \let\xister at texorpdf\texorpdfstring
+ \fi
+ }
+\def\xister at a#1%
+ {%
+ \leavevmode
+ \xister at ensure@current
+ \ifx-#1-\expandafter\xister at b
+ \else\expandafter\xister at b\expandafter#1\fi
+ }
+\def\xister at b#1@%
+ {\expandafter\xister at c\the\numexpr\xister at count#1@#1@@@@}
+\def\xister at c#1@%
+ {\csname xister at symbols@\romannumeral\numexpr#1-4*((#1-2)/4)\relax\endcsname}
+\def\xister at symbols@#1%
+ {%
+ \protected\def\xister at symbols@##1##2##3##4%
+ {%
+ \xister at gobbletoat##1\xister at done @%
+ \xister at gobbletozero##1\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##1000\endcsname}%
+ \xister at gobbletozero##2\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##200\endcsname}%
+ \xister at gobbletozero##3\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##30\endcsname}%
+ \xister at gobbletozero##4\xister at gobblecopy0%
+ \rlap{\copy\csname xister at digitbox@##4\endcsname}%
+ \copy#1%
+ \xister at symbols@
+ }%
+ }
+\expandafter\xister at symbols@\csname xister at digitbox@0\endcsname
+\def\xister at symbols@i{\xister at symbols@000}
+\def\xister at symbols@ii{\xister at symbols@00}
+\def\xister at symbols@iii{\xister at symbols@0}
+\newcommand*\xister at clip@v[1]
+ {%
+ \pgfpathrectanglecorners
+ {\pgfpoint{\dimexpr\ifdim\xister at X<\z at -\fi\xister at Tv\relax}{#1}}%
+ {\pgfpoint\xister at X\xister at Y}%
+ \pgfusepath{clip}%
+ }
+\newcommand*\xister at clip@h[1]
+ {%
+ \pgfpathrectanglecorners
+ {\pgfpoint{#1}{-\dimexpr\ifdim\xister at Y<\z at -\fi\xister at Th\relax}}%
+ {\pgfpoint{-\xister at X}\xister at Y}%
+ \pgfusepath{clip}%
+ }
+\newcommand\xister at drawdigits@vertical[3]
+ {%
+ \xister at XY@share=\dimexpr\xister at share@mul\xister at Y\xister at share@div\relax
+ \xister at drawdigit{1#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPA=\dimexpr\xister at Y\xister at sgn\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint\z@\xister at TMPA}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at TMPA}%
+ }%
+ \xister at drawdigit{2#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPA=\dimexpr\xister at XY@share+#2\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint\z@\xister at TMPA}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at TMPA}%
+ }%
+ \xister at drawdigit{3#1}%
+ {%
+ \xister at TMPB=#3\dimexpr\xister at Tv-\xister at Tdd\relax
+ \xister at clip@v\xister at XY@share
+ \pgfsetlinewidth{2\xister at Tdd}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at XY@share}%
+ }%
+ \xister at drawdigit{4#1}%
+ {%
+ \xister at clip@v\z@
+ \xister at TMPB=#3\dimexpr\xister at Tv-\xister at Tdu\relax
+ \pgfsetlinewidth{2\xister at Tdu}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at Y}%
+ }%
+ \xister at drawdigit{5#1}%
+ {%
+ \ifxister at five@triangle@
+ \xister at clip@v\z@
+ \xister at TMPB=%
+ #3\dimexpr\xister at Tv-\xister at Tdu\relax
+ \pgfsetlinewidth{2\xister at Tdu}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at Y}%
+ \pgfusepath{stroke,clip}%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPA=\dimexpr\xister at Y\xister at sgn\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint\z@\xister at TMPA}%
+ \pgfpathlineto{\pgfpoint\xister at X\xister at TMPA}%
+ \else\ifxister at five@dot@
+ \pgfpathcircle
+ {\pgfpoint{\dimexpr\xister at X-#3\xister at five@dot\relax}%
+ {\dimexpr\xister at Y-#2\xister at five@dot\relax}}%
+ {\xister at five@dot}%
+ \pgfusepath{fill}%
+ \else
+ \xister at TMPB=\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfsetlinewidth{2\xister at Tv}%
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto
+ {%
+ \pgfpoint
+ \xister at TMPB
+ {\dimexpr\xister at Y-#2\xister at five@dash\xister at Tv*2\relax}%
+ }%
+ \fi\fi
+ }%
+ \xister at drawdigit{6#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPB=\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPB\xister at Y}%
+ \pgfpathlineto{\pgfpoint\xister at TMPB\xister at XY@share}%
+ }%
+ \xister at superimpose{7#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{8#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{9#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ }
+\newcommand\xister at drawdigits@horizontal[3]
+ {%
+ \xister at XY@share=-\dimexpr\xister at share@mul\xister at X\xister at share@div\relax
+ \xister at drawdigit{1#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPA=-\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPA\z@}%
+ \pgfpathlineto{\pgfpoint\xister at TMPA\xister at Y}%
+ }%
+ \xister at drawdigit{2#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPA=-\dimexpr#3\xister at Tv-\xister at XY@share\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPA\z@}%
+ \pgfpathlineto{\pgfpoint\xister at TMPA\xister at Y}%
+ }%
+ \xister at drawdigit{3#1}%
+ {%
+ \xister at TMPB=#2\dimexpr\xister at Th-\xister at Tdu\relax
+ \xister at clip@h\xister at XY@share
+ \pgfsetlinewidth{2\xister at Tdu}%
+ \pgfpathmoveto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at Y}%
+ }%
+ \xister at drawdigit{4#1}%
+ {%
+ \xister at clip@h\z@
+ \xister at TMPB=#2\dimexpr\xister at Th-\xister at Tdd\relax
+ \pgfsetlinewidth{2\xister at Tdd}%
+ \pgfpathmoveto{\pgfpoint\xister at X\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint{-\xister at X}\xister at Y}%
+ }%
+ \xister at drawdigit{5#1}%
+ {%
+ \ifxister at five@triangle@
+ \xister at clip@h\z@
+ \xister at TMPB=#2\dimexpr\xister at Th-\xister at Tdd\relax
+ \pgfsetlinewidth{2\xister at Tdd}%
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint{-\xister at X}\xister at Y}%
+ \pgfusepath{stroke,clip}%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \xister at TMPA=-\dimexpr\xister at X-#3\xister at Tv\relax
+ \pgfpathmoveto{\pgfpoint\xister at TMPA\z@}%
+ \pgfpathlineto{\pgfpoint\xister at TMPA\xister at Y}%
+ \else\ifxister at five@dot@
+ \pgfpathcircle
+ {\pgfpoint{-\dimexpr\xister at X-#3\xister at five@dot\relax}%
+ {\dimexpr\xister at Y-#2\xister at five@dot\relax}}%
+ {\xister at five@dot}%
+ \pgfusepath{fill}%
+ \else
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPB=\dimexpr\xister at Y-#2\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto
+ {%
+ \pgfpoint
+ {-\dimexpr\xister at X-#3\xister at five@dash\xister at Th*2\relax}%
+ \xister at TMPB
+ }%
+ \fi\fi
+ }%
+ \xister at drawdigit{6#1}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \xister at TMPB=\dimexpr\xister at Y-#2\xister at Th\relax
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\xister at TMPB}%
+ \pgfpathlineto{\pgfpoint\xister at XY@share\xister at TMPB}%
+ }%
+ \xister at superimpose{7#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{8#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ \xister at superimpose{9#1}%
+ {%
+ \rlap{\copy\csname xister at digitbox@1#1\endcsname}%
+ \rlap{\copy\csname xister at digitbox@2#1\endcsname}%
+ \copy\csname xister at digitbox@6#1\endcsname
+ }%
+ }
+\newcommand\xister at drawdigit[2]
+ {%
+ \expandafter\setbox\csname xister at digitbox@#1\endcsname=\hbox
+ {%
+ \begin{pgfpicture}%
+ \pgfpathrectanglecorners
+ {\pgfpoint{-\xister at bx\xister at X}{-\xister at by\xister at Y}}%
+ {\pgfpoint{\xister at bx\xister at X}{\xister at by\xister at Y}}%
+ \pgfusepath{use as bounding box}%
+ #2%
+ \pgfusepath{stroke}%
+ \pgfsetbaseline{\xister at sgn\xister at bs\xister at Y}%
+ \end{pgfpicture}%
+ }%
+ }
+\newcommand*\xister at drawzero@vertical
+ {%
+ \xister at drawdigit{0}%
+ {%
+ \pgfsetlinewidth{2\xister at Tv}%
+ \pgfpathmoveto{\pgfpoint\z@{-\xister at Y}}%
+ \pgfpathlineto{\pgfpoint\z@\xister at Y}%
+ }%
+ }
+\newcommand*\xister at drawzero@horizontal
+ {%
+ \xister at drawdigit{0}%
+ {%
+ \pgfsetlinewidth{2\xister at Th}%
+ \pgfpathmoveto{\pgfpoint{-\xister at X}\z@}%
+ \pgfpathlineto{\pgfpoint\xister at X\z@}%
+ }%
+ }
+\newcommand\xister at superimpose[2]
+ {\expandafter\setbox\csname xister at digitbox@#1\endcsname=\hbox{#2}}
+\protected\def\xister at setlengths
+ {%
+ \begingroup
+ \xister at font
+ \edef\xister at tmp
+ {%
+ \endgroup
+ \xister at X=\the\dimexpr.5\dimexpr\xister at x\relax\relax
+ \xister at Y=\the\dimexpr.5\dimexpr\xister at y\relax\relax
+ \xister at Th=\the\dimexpr.5\dimexpr\xister at th\relax\relax
+ \xister at Tv=\the\dimexpr.5\dimexpr\xister at tv\relax\relax
+ \xister at Tdu=\the\dimexpr.5\dimexpr\xister at tdu\relax\relax
+ \xister at Tdd=\the\dimexpr.5\dimexpr\xister at tdd\relax\relax
+ }%
+ \xister at tmp
+ }
+\protected\edef\xister at ensure@current
+ {%
+ \unexpanded{\edef\xister at tmp{\xister at fontfeatures}}%
+ \unexpanded{\unless\ifx\xister at tmp\xister at last@font}%
+ \ifxister at dbg@
+ \unexpanded
+ {%
+ \typeout
+ {%
+ Package xistercian Debug: Font changed. Building glyphs for
+ \xister at tmp.
+ }%
+ }%
+ \fi
+ \unexpanded
+ {%
+ \let\xister at last@font\xister at tmp
+ \xister at build
+ }%
+ \ifxister at dbg@
+ \unexpanded{\typeout{Package xistercian Debug: Done.}}%
+ \fi
+ \unexpanded{\fi}%
+ }
+\AtBeginDocument{\xister at ensure@current}
+%%
+%%
+%% End of file `xistercian.sty'.
Property changes on: trunk/Master/texmf-dist/tex/latex/xistercian/xistercian.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2021-07-18 20:23:12 UTC (rev 59975)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2021-07-18 20:24:04 UTC (rev 59976)
@@ -844,7 +844,7 @@
xetex-devanagari xetex-itrans xetex-pstricks xetex-tibetan
xetexfontinfo xetexko
xetexref xevlna xfakebold xfor xgreek xhfill
- xifthen xii xii-lat xindex xindy-persian xint xintsession xits
+ xifthen xii xii-lat xindex xindy-persian xint xintsession xistercian xits
xkcdcolors xkeyval xlop xltabular xltxtra
xml2pmx xmltex xmpincl xmuthesis xnewcommand
xoptarg xpatch xpeek xpiano xpicture xpinyin xprintlen xpunctuate
Modified: trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc 2021-07-18 20:23:12 UTC (rev 59975)
+++ trunk/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc 2021-07-18 20:24:04 UTC (rev 59976)
@@ -217,5 +217,6 @@
depend venndiagram
depend visualpstricks
depend worldflags
+depend xistercian
depend xpicture
depend xypic
Added: trunk/Master/tlpkg/tlpsrc/xistercian.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.