summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ushort
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2006-10-17 22:40:33 +0000
committerNorbert Preining <preining@logic.at>2006-10-17 22:40:33 +0000
commit168c4abebd344cda13d71257a8f5882ddf75b461 (patch)
tree8a77f74ef5ce60f97952ee40ab54953f76140dbd /Master/texmf-dist/tex/latex/ushort
parentabf72be1c8d2ecea135ae14dcbdff593a8496321 (diff)
various additions to tpm-ctan-check, and updated to packages
unitsdef, undertilde, ushort, units, umich-thsis, uiucthesis git-svn-id: svn://tug.org/texlive/trunk@2343 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ushort')
-rw-r--r--Master/texmf-dist/tex/latex/ushort/ushort.sty15
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
%%