|
kuing
发表于 2018-11-17 15:59
想了一个方法,还不知道有没有副作用,顺便把 bar, tilde 也做了:- \documentclass{article}
- \usepackage{amsmath}
- \newcommand\sftz[3]{\rlap{$#1{\phantom{#3}\mkern#2mu}$}#3}
- \newcommand\ihat{\sftz{\hat}{2.5}{i}}
- \newcommand\jhat{\sftz{\hat}{4.5}{j}}
- \newcommand\ibar{\sftz{\bar}{2.5}{i}}
- \newcommand\jbar{\sftz{\bar}{4.5}{j}}
- \newcommand\itilde{\sftz{\tilde}{2.5}{i}}
- \newcommand\jtilde{\sftz{\tilde}{4.5}{j}}
- \begin{document}
- \fboxsep=0.4pt
- $\boxed\ihat
- \,\boxed\jhat
- \,\boxed\ibar
- \,\boxed\jbar
- \,\boxed\itilde
- \,\boxed\jtilde$
- \end{document}
复制代码
|
|