
다음 문서가 있습니다.
\documentclass{scrartcl}
\usepackage{underscore}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\begin{document}
TLXV\rule{.5em}{.4pt}AAB % this looks better!
TLXV_2 % here the problem is that the underscore is too far downwards
\end{document}
제 생각에는 밑줄 텍스트가 너무 작아 보이는데 아마도 끝에 있는 문자 'V' 때문일 것입니다. 그러나 내 코드 편집기에서 밑줄은 라텍스로 생성된 PDF 문서에서보다 문자를 서로 더 잘 연결합니다(즉, 더 가깝다는 의미). 이를 개선할 수 있는 방법이 있나요? 아마도 전체 문서에 해당됩니까?
답변1
를 실행하여 기본값 대신 \textunderscore
문자의 너비를 재정의할 수 있습니다 . 이는 수학 모드뿐만 아니라 텍스트에도 영향을 미칩니다. 따라서 아래 두 번째 예와 같이 해당 위치에서 사용되도록 발행 하고 그대로 두는 것만 재정의할 수 있습니다 . 내부적 으로 호출됩니다 ..5em
.3em
\DeclareTextCommand{\textunderscore}{OT1}{\leavevmode\vbox{\hrule width.5em}}
\_
\DeclareTextCommand{\_}{OT1}{\leavevmode\vbox{\hrule width.5em}}
\textunderscore
_
_
\textunderscore
\documentclass{scrartcl}
\usepackage{underscore}
\usepackage{mathptmx}
%\DeclareTextCommand{\_}{OT1}{\leavevmode\vbox{\hrule width.5em}}
\DeclareTextCommand{\textunderscore}{OT1}{\leavevmode\vbox{\hrule width.5em}}
\begin{document}
TLXV{\_}AAB
TLXV_2
TLXV\_a
\end{document}