summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/shipunov/tex/textfrac.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/shipunov/tex/textfrac.sty')
-rw-r--r--macros/latex/contrib/shipunov/tex/textfrac.sty14
1 files changed, 14 insertions, 0 deletions
diff --git a/macros/latex/contrib/shipunov/tex/textfrac.sty b/macros/latex/contrib/shipunov/tex/textfrac.sty
new file mode 100644
index 0000000000..6f48fc79b8
--- /dev/null
+++ b/macros/latex/contrib/shipunov/tex/textfrac.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}}