diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-09 22:20:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-09 22:20:27 +0000 |
commit | d9be4f3522f65ac594da792af8c57860df6f5680 (patch) | |
tree | 8e3963716b38f831d053e218313da831ca3dfb4f /Master/texmf-dist/tex | |
parent | 5eb3d28bc68d47fc7eb74e47ac1f6f5c0787ec72 (diff) |
numending (9may15)
git-svn-id: svn://tug.org/texlive/trunk@37299 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/numending/numending.sty | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/numending/numending.sty b/Master/texmf-dist/tex/latex/numending/numending.sty new file mode 100644 index 00000000000..24d54bdf4d6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/numending/numending.sty @@ -0,0 +1,6 @@ +\ProvidesPackage{numending} +\def\numending#1#2#3#4{\ifnum#1>100 +\numending{\numexpr#1-100\relax}{#2}{#3}{#4}\else \ifnum#1 < 21 +\ifnum#1> 4 #4\else\ifnum#1=1 #2 \else#3\fi\fi\else \ifnum#1 < 31 +\numending{\numexpr#1-20\relax}{#2}{#3}{#4}\else +\numending{\numexpr#1-10\relax}{#2}{#3}{#4}\fi\fi\fi}
\ No newline at end of file |