summaryrefslogtreecommitdiff
path: root/info/ptex-manual/fam256p.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-10-20 03:00:50 +0000
committerNorbert Preining <norbert@preining.info>2019-10-20 03:00:50 +0000
commit8fa38617045e3aa88b163fdc2fd683d72559b6d5 (patch)
treea0cf4b4ab921796fdd274f691910733d4dfb97d3 /info/ptex-manual/fam256p.tex
parent13a044b932f3f8d72791ca88eda528bdcbadcacc (diff)
CTAN sync 201910200300
Diffstat (limited to 'info/ptex-manual/fam256p.tex')
-rw-r--r--info/ptex-manual/fam256p.tex11
1 files changed, 11 insertions, 0 deletions
diff --git a/info/ptex-manual/fam256p.tex b/info/ptex-manual/fam256p.tex
index 56808f63d4..d05847ab6d 100644
--- a/info/ptex-manual/fam256p.tex
+++ b/info/ptex-manual/fam256p.tex
@@ -1,5 +1,16 @@
\makeatletter
\mathchardef\e@mathgroup@top=256
+\def\cnttohex#1{%
+{\count@=#1\@tempcnta=#1\@tempcntb=\@tempcnta\relax
+\divide\@tempcntb by 16%
+\ifnum\count@=0\else
+ \multiply\@tempcntb by16%
+ \advance\@tempcnta-\@tempcntb
+ \divide\@tempcntb by16%
+ \cnttohex{\the\@tempcntb}%
+ \ifcase\@tempcnta\relax 0\or1\or2\or3\or4\or5\or6\or
+ 7\or8\or9\or A\or B\or C\or D\or E\or F\fi
+\fi}}
\makeatother