Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \newlength{\dhatheight}
- \newcommand{\hhatDS}[1]{%
- \settoheight{\dhatheight}{\ensuremath{\hat{#1}}}%
- \addtolength{\dhatheight}{-0.35ex}%
- \hat{\vphantom{\rule{1pt}{\dhatheight}}%
- \smash{\hat{#1}}}}
- \newcommand{\hhatTS}[1]{%
- \settoheight{\dhatheight}{\ensuremath{\hat{#1}}}%
- \addtolength{\dhatheight}{-0.35ex}%
- \hat{\vphantom{\rule{1pt}{\dhatheight}}%
- \smash{\hat{#1}}}}
- \newcommand{\hhatS}[1]{%
- \settoheight{\dhatheight}{\ensuremath{\scriptstyle{\hat{#1}}}}%
- \addtolength{\dhatheight}{-0.175ex}%
- \hat{\vphantom{\rule{1pt}{\dhatheight}}%
- \smash{\hat{#1}}}}
- \newcommand{\hhatSS}[1]{%
- \settoheight{\dhatheight}{\ensuremath{\scriptscriptstyle{\hat{#1}}}}%
- \addtolength{\dhatheight}{-0.07ex}%
- \hat{\vphantom{\rule{1pt}{\dhatheight}}%
- \smash{\hat{#1}}}}
- \newcommand{\hhat}[1]{\mathchoice{\hhatDS{#1}}{\hhatTS{#1}}{\hhatS{#1}}{\hhatSS{#1}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement