I'm heaving problems with correctly vertically stacking two widetilde's (i.e. one on top of the other). I managed to reduce the space between them, but I don't know how to force them to be exactly vertically aligned.
Here's my MWE:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
%define doublewidetilde
\makeatletter
\DeclareRobustCommand{\doublewidetilde}[1]{{%
\mathpalette\double@widetilde{#1}%
}}
\DeclareRobustCommand{\double@widetilde}[2]{%
\sbox\z@{$\m@th#1\widetilde{#2}$}%
\ht\z@=.85\ht\z@
\widetilde{\box\z@}%
}
\makeatother
\begin{document}
E.g.: $\doublewidetilde{I}_N$ or $\doublewidetilde{abcde}_N$
\end{document}
Also, notice that when the maximal length of the widetilde is 'saturated', the two are correctly vertically stacked (see the double wide tilde over 'abcde').
Note: I'm using \DeclareRobustCommand
(instead of e.g. \newcommand
) because I intend to use \doublewidetilde
in section names.
Best Answer
Directly adapting my answer at Big tilde in math mode. EDITED to use
\AC
fromwasysym
package, rather than\sim
for the baseline tilde.