summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/shipunov/textfrac-shipunov.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-10 21:58:46 +0000
committerKarl Berry <karl@freefriends.org>2019-10-10 21:58:46 +0000
commitdd0d081462a3fa63368e0f0ec875e097c883c361 (patch)
treefdf37dda7428d68a58db673422734a708eae3643 /Master/texmf-dist/tex/latex/shipunov/textfrac-shipunov.sty
parent2d0e78c3e9d6118b73f0a80f3b8d84b99cc3dd60 (diff)
shipunov with -shipunov postfix for new .sty (8oct19)
git-svn-id: svn://tug.org/texlive/trunk@52334 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/shipunov/textfrac-shipunov.sty')
-rw-r--r--Master/texmf-dist/tex/latex/shipunov/textfrac-shipunov.sty14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/shipunov/textfrac-shipunov.sty b/Master/texmf-dist/tex/latex/shipunov/textfrac-shipunov.sty
new file mode 100644
index 00000000000..6f48fc79b82
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/shipunov/textfrac-shipunov.sty
@@ -0,0 +1,14 @@
+% Author: Alexey Shipunov, dactylorhiza@gmail.com
+
+\ProvidesPackage{textfrac}%
+ [2019/10/03 v1.01 Simple slanted fractions, see TeXbook, ex. 11.6]
+
+% Packages "nicefrac" and "xfrac" might be better
+
+\ProvidesPackage{textfrac}
+
+\def\textfrac#1/#2{\leavevmode\kern.1em
+\raise.5ex\hbox{\scriptsize #1}\kern-.1em
+/\kern-.15em\lower.25ex\hbox{\scriptsize #2}}
+
+\def\TextFrac#1#2{\textfrac{#1}/{#2}}