blob: 6f48fc79b822bd909e7568e3d62bd861ceb407ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}}
|