![기울어진 기호에 대한 수학 악센트의 수평 정렬](https://rvso.com/image/298789/%EA%B8%B0%EC%9A%B8%EC%96%B4%EC%A7%84%20%EA%B8%B0%ED%98%B8%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%88%98%ED%95%99%20%EC%95%85%EC%84%BC%ED%8A%B8%EC%9D%98%20%EC%88%98%ED%8F%89%20%EC%A0%95%EB%A0%AC.png)
나는 두 배의 넓은 모자 악센트를 원합니다. 내 설정은 다음과 같습니다. xelatex, Accents 패키지 및 dwtilde 명령 정의(dhatheight에 대한 참조에서 알 수 있듯이 이 코드는 웹에서 발견된 다른 사람의 코드를 수정한 것입니다).
\newcommand{\dwtilde}[1]{%<br>
\settoheight{\dhatheight}{\ensuremath{\widetilde{#1}}}%<br>
\addtolength{\dhatheight}{-0.2ex}%<br>
\widetilde{\vphantom{\rule{1pt}{\dhatheight}}%<br>
\smash{\widetilde{#1}}}}
저는 오일러 글꼴에 euscript를 사용하고 있습니다. 그런 다음 a는 $\dwtilde{\mathscr A}$
위쪽 물결표가 왼쪽으로 이동한 두 개의 넓은 물결표를 생성합니다. 악센트를 수평으로 정렬하려면 어떻게 해야 합니까?
예는 다음과 같습니다.
답변1
다음으로 실행하세요.xelatex
\documentclass{article}
\usepackage{unicode-math}
\usepackage{libertine}
\def\dWDTilde#1{\widetilde{\widetilde{#1\mkern0mu}}}
%\setmathfont{XITS Math}
\begin{document}
foo
$\dWDTilde{\mathscr A}$
foo
\end{document}