\newcommand\speechfont{\rmfamily}
\newcommand\setspeechfont[1]{\renewcommand\speechfont{#1}}
\newcommand\speech[1]{{\speechfont #1}}
\newenvironment{speech}{\begingroup\speechfont}{\endgroup}
요런 것을 expl3로 만들려고 하는데요. (이런 것을 구태여 expl3로 구현할 필요가 없겠습니다만 연습삼아 한다 치고요.)
\speechfont를 무엇으로 정의하는 것이 바람직한지 모르겠습니다.
우선 \speechfont를 "함수"로 봐야 할지, 아니면 "변수"로 봐야 할지 잘 모르겠습니다.
\tl_new:N \g_font_tl {\rmfamily}
\NewDocumentCommand \setspeechfont {m}
{\tl_set:Nn \g_font_tl {#1}}
이렇게 해야 하나요?
KTUG 한국 텍 사용자 그룹