
인수를 허용할 수 있는 새 명령을 정의하고(입력의 문자 대소문자에 관계없이) 첫 번째 문자를 제외한 모든 문자를 소문자로 설정합니다.
\documentclass{book}
\ExplSyntaxOn
\NewDocumentCommand{\LowerCase}{m}
{
\group_begin:
\cs_set_protected:Npx \\ { \exp_not:o \\ }
\text_lowercase:n {#1}
\group_end:
}
\ExplSyntaxOff
\begin{document}
\LowerCase{TestinG}
\end{document}
답변1
LaTeX 2022-11-01에서:
\documentclass{book}
\begin{document}
\MakeTitlecase{TestinG}
\end{document}
보다ltnews36.pdf
자세한 내용은.
답변2
이미 다음이 있습니다.
\documentclass{book}
\ExplSyntaxOn
\NewExpandableDocumentCommand{\TitleCase}{m}
{
\text_titlecase:n {#1}
}
\ExplSyntaxOff
\begin{document}
\TitleCase{TestinG}
\end{document}