texlive[75020] Master/texmf-dist: cistercian (25apr25)

commits+karl at tug.org commits+karl at tug.org
Fri Apr 25 23:16:35 CEST 2025


Revision: 75020
          https://tug.org/svn/texlive?view=revision&revision=75020
Author:   karl
Date:     2025-04-25 23:16:35 +0200 (Fri, 25 Apr 2025)
Log Message:
-----------
cistercian (25apr25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/cistercian/cistercian-doc.pdf
    trunk/Master/texmf-dist/doc/latex/cistercian/cistercian-doc.tex
    trunk/Master/texmf-dist/tex/latex/cistercian/cistercian.sty

Modified: trunk/Master/texmf-dist/doc/latex/cistercian/cistercian-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/cistercian/cistercian-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/cistercian/cistercian-doc.tex	2025-04-25 21:16:17 UTC (rev 75019)
+++ trunk/Master/texmf-dist/doc/latex/cistercian/cistercian-doc.tex	2025-04-25 21:16:35 UTC (rev 75020)
@@ -36,7 +36,7 @@
     \url{https://github.com/samcarter/cistercian}\\
     \url{https://ctan.org/pkg/cistercian}
   }{samcarter}}
-\date{Version v0.3 \textendash{} 2025/04/15}
+\date{Version v0.4 \textendash{} 2025/04/24}
 \packagename{cistercian}
 
 \begin{document}

Modified: trunk/Master/texmf-dist/tex/latex/cistercian/cistercian.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/cistercian/cistercian.sty	2025-04-25 21:16:17 UTC (rev 75019)
+++ trunk/Master/texmf-dist/tex/latex/cistercian/cistercian.sty	2025-04-25 21:16:35 UTC (rev 75020)
@@ -12,7 +12,7 @@
 % See https://www.latex-project.org/lppl.txt
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesPackage{cistercian}[2025/04/15 version v0.3 Cistercian numerals]
+\ProvidesPackage{cistercian}[2025/04/24 version v0.4 Cistercian numerals]
 
 \RequirePackage{tikz}
 \RequirePackage{etoolbox}
@@ -50,6 +50,9 @@
       \pgfgettransformentries{\tmpscaleA}{\tmpscaleB}{\tmpscaleC}{\tmpscaleD}{\tmp}{\tmp}%
       \pgfmathsetmacro{\cistercian at scalingfactor}{sqrt(abs(\tmpscaleA*\tmpscaleD-\tmpscaleB*\tmpscaleC))*sqrt(abs((\pgf at xx/1cm)*(\pgf at yy/1cm)-(\pgf at xy/1cm)*(\pgf at yx/1cm)))}%
       %
+      % making sure all numbers have the same width
+      \path [line width=\cistercian at scalingfactor*\cistercian at stroke] (-\cistercian at width-.5*\cistercian at stroke,0) -- (\cistercian at width+.5*\cistercian at stroke,\cistercian at height);
+      %
       % ones
       \pgfmathparse{int(mod(#2,10)}
       \let\cistercian at ones\pgfmathresult
@@ -67,10 +70,14 @@
       \let\cistercian at thousands\pgfmathresult
       %
       % superimposing the digts by mirroring
-      \cistercian at digit{\cistercian at ones}{\cistercian at tens}{\cistercian at scalingfactor*\cistercian at stroke}
-      \cistercian at digit[xscale=-1]{\cistercian at tens}{\cistercian at ones}{\cistercian at scalingfactor*\cistercian at stroke}
-      \cistercian at digit[yscale=-1,yshift=-\cistercian at height]{\cistercian at hundreds}{\cistercian at thousands}{\cistercian at scalingfactor*\cistercian at stroke}
-      \cistercian at digit[xscale=-1,yscale=-1,yshift=-\cistercian at height]{\cistercian at thousands}{\cistercian at hundreds}{\cistercian at scalingfactor*\cistercian at stroke}
+      \ifnum#2=1881
+        \cistercian at peace{\cistercian at scalingfactor*\cistercian at stroke}{.5\cistercian at height-0.5*\cistercian at scalingfactor*\cistercian at stroke}
+      \else
+        \cistercian at digit{\cistercian at ones}{\cistercian at tens}{\cistercian at scalingfactor*\cistercian at stroke}
+        \cistercian at digit[xscale=-1]{\cistercian at tens}{\cistercian at ones}{\cistercian at scalingfactor*\cistercian at stroke}
+        \cistercian at digit[yscale=-1,yshift=-\cistercian at height]{\cistercian at hundreds}{\cistercian at thousands}{\cistercian at scalingfactor*\cistercian at stroke}
+        \cistercian at digit[xscale=-1,yscale=-1,yshift=-\cistercian at height]{\cistercian at thousands}{\cistercian at hundreds}{\cistercian at scalingfactor*\cistercian at stroke}
+      \fi
       %
       % debug
       %\draw[red,line width=0.1pt] (0,0) rectangle (\cistercian at width,\cistercian at height);
@@ -79,14 +86,21 @@
   \fi\fi%
 }
 
+% #1: stroke width
+% #2: radius
+\newcommand{\cistercian at peace}[2]{
+  \draw[line width=#1,overlay] 
+    (0,#2+0.5*#1) circle [radius=#2] 
+    (0,0+0.5*#1) -- (0,2*#2+0.5*#1)
+    (0,#2+0.5*#1) -- ++ (-30:#2)
+    (0,#2+0.5*#1) -- ++ (-150:#2);
+}
+
 % #1: optional arguments for mirroring the digit
 % #2: the digit to be printed
 % #3: digit on the other site of the stem (to handle edge cases of line joints)
 % #4: stroke width
 \newcommand{\cistercian at digit}[4][]{%
-  % making sure all numerals have the same width
-  \path[#1,line width=#4] (0,0) -- (\cistercian at width+.5*\cistercian at stroke,\cistercian at height);
-  %
   % drawing the stem for zero
   \draw[#1,line width=#4,overlay] (0,.5*\cistercian at stroke) -- ++(0,\cistercian at height-\cistercian at stroke)
   %  



More information about the tex-live-commits mailing list.