
Polyglossia를 로드하면 명령이 비활성화되지만 및 \.{S}
같은 다른 명령에는 영향을 주지 않습니다 . 이상하네요. 왜 이런 일이 발생하는지, 다시 일을 시작하려면 어떻게 해야 하는지 아시는 분 계시나요 ? XeLatex를 사용하여 문서를 작성하고 있습니다.\.{R}
\.{G}
\.{S}
MWE:
\documentclass{book}
\usepackage{polyglossia} % This will prevent \.{S} from working.
\begin{document}
\.{S}
\.{R}
\end{document}
답변1
패키지 polyglossia
는 실제로 관련되지 않으며 fontspec
문제를 재현하는 데 충분합니다( 에 의해 로드됨 polyglossia
).
기본적으로 사용되는 Latin Modern 글꼴은 S 위에 결합점을 배치하는 버그가 있는 것 같습니다.
간단한 해결 방법은 다음과 같습니다.
\documentclass{book}
\usepackage{fontspec}
\DeclareTextCompositeCommand{\.}{TU}{S}{\accent"02D9 S}
\begin{document}
\.{S}
\.{R}
\end{document}
어쩌면 더 좋을 수도 있습니다:
\documentclass{book}
\usepackage{fontspec}
\DeclareTextCompositeCommand{\.}{TU}{S}{\mydottedS}
\newcommand{\mydottedS}{%
\leavevmode\vbox{%
\offinterlineskip
\halign{\hfil##\hfil\cr\char"02D9\cr\noalign{\kern-1.15ex}S\cr}%
}%
}
\begin{document}
\.{S}
\.{R}
\end{document}
다른 글꼴에는 문제가 발생하지 않습니다. 예를 들어 CMU Serif:
\documentclass{book}
\usepackage{fontspec}
\setmainfont{CMU Serif}
\begin{document}
\.{S}
\.{R}
\end{document}