Commit 16ee932e authored by Turnhout, M.C. van's avatar Turnhout, M.C. van
Browse files

better undertilde definition

parent 785f7f77
......@@ -3,6 +3,7 @@
\ProvidesPackage{misomath}[2013/07/18 v1.0]
%\RequirePackage{textcomp} % for \textcelsius
%\RequirePackage[Euler]{upgreek} % to make upright greek letters
\RequirePackage{stackengine} % for undertilde
\RequirePackage{gensymb} % to provide the \micro command with text-upmu
\RequirePackage[tight,nice]{units}
\RequirePackage[intlimits]{empheq}
......@@ -13,6 +14,7 @@
\DeclarePairedDelimiter\abs{\lvert}{\rvert}
\DeclarePairedDelimiter\absv{\|}{\|}
\DeclareOption{isomath}{%
% for typesetting nth-order tensors: \ten[n]{A}
\providecommand*{\ten}[2][]{%
......@@ -194,13 +196,20 @@
\newcommand{\Stro}{\operatorname{\mathit{S\kern-.07em r}}} % http://de.wikipedia.org/wiki/Strouhal-Zahl
\newcommand{\Webe}{\operatorname{\mathit{W\kern-.14em e}}} % http://de.wikipedia.org/wiki/Weber-Zahl
%% copied from undertilde.sty
\newlength\knuthian@fdfive
\def\mathpal@save#1{\let\was@math@style=#1\relax}
\def\undertilde#1{\mathpalette\mathpal@save
{\setbox124=\hbox{$\was@math@style#1$}%
\setbox125=\hbox{$\fam=3\global\knuthian@fdfive=\fontdimen5\font$}
\setbox125=\hbox{$\widetilde{\vrule height 0pt depth 0pt width \wd124}$}%
\baselineskip=1pt\relax
\vtop{\copy124\copy125\vskip -\knuthian@fdfive}}}
%%% copied from undertilde.sty
%\newlength\knuthian@fdfive
%\def\mathpal@save#1{\let\was@math@style=#1\relax}
%\def\undertilde#1{\mathpalette\mathpal@save
% {\setbox124=\hbox{$\was@math@style#1$}%
%\setbox125=\hbox{$\fam=3\global\knuthian@fdfive=\fontdimen5\font$}
%\setbox125=\hbox{$\widetilde{\vrule height 0pt depth 0pt width \wd124}$}%
% \baselineskip=0pt\relax
% \vtop{\copy124\copy125\vskip -\knuthian@fdfive}}}
% copied from https://tex.stackexchange.com/questions/388772/tilde-below-letter-subscript-creates-unwanted-spacing/388774
\def{\undertilde}[1]{%
\smash{\ensurestackMath{\stackengine{1pt}{#1}{\scriptscriptstyle\sim}{U}{c}{F}{F}{S}}}
\vphantom{#1}
}
\endinput
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment