diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ushort/ushort.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ushort/ushort.sty | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/ushort/ushort.sty b/Master/texmf-dist/tex/latex/ushort/ushort.sty index f0781fb37c3..a5db1e7b7f7 100644 --- a/Master/texmf-dist/tex/latex/ushort/ushort.sty +++ b/Master/texmf-dist/tex/latex/ushort/ushort.sty @@ -13,22 +13,26 @@ \else \let\ushrt@tmp\typeout \fi -\ushrt@tmp{ushort.sty by M. Vaeth: Release: 2.1 } +\ushrt@tmp{ushort.sty by M. Vaeth: Release: 2.2 } %% First, some LaTeX support: \ifx\ProvidesPackage\undefined\else - \ProvidesPackage{ushort}[2001/06/07 v2.1] + \ProvidesPackage{ushort}[2001/06/13 v2.2] \fi \ifx\newcommand\undefined\else \newcommand{\ushort}{} + \newcommand{\ushortw}{} \newcommand{\ushortd}{} + \newcommand{\ushortdw}{} \newcommand{\ushortdline}{} \newcommand{\ushortCreate}{} \newcommand{\ushortEnsuremath}{} \fi +%% The implementation follows + \def\ushortCreate{\let\ushrt@calc\ushrt@empty\let\ushrt@TextMode\undefined \def\ushrt@FactorAfter{0.8}\let\ushrt@FactorBefore\ushrt@calc \let\ushrt@Summand\ushrt@empty\def\ushrt@cmd{\underline}\ushrt@TestLoop} @@ -82,13 +86,13 @@ {\setbox0\hbox{\mathsurround0pt$##1##2$}% \dimen0=#4\wd0#3\dimen1\ht0\dimen2\dp0#2% \setbox0\hbox to#5\dimen0{}\ht0\dimen1\dp0\dimen2% - \box0}}$\hss}}} + \box0}}$\hss}}}% \else \def#7##1##2{\hbox to 0pt{#1{% {\setbox0\hbox{\mathsurround0pt$##1##2$}% \dimen0=#4\wd0#3\dimen1\ht0\dimen2\dp0#2% \setbox0\hbox to#5\dimen0{}\ht0\dimen1\dp0\dimen2% - \box0}}\hss}} + \box0}}\hss}}% \fi} \def\ushortEnsuremath{\relax @@ -103,8 +107,9 @@ \def\ushrt@empty{} \ushortCreate{ushort} - +\ushortCreate()[-.1em]{ushortw} \ushortCreate:\ushortdline{ushortd} +\ushortCreate:\ushortdline()[-.1em]{ushortdw} \def\ushortdline#1{\underline{\underline #1}} \endinput %% |