삭제한 것의 일부는 다음과 같습니다.
\ExplSyntaxOn \cs_new:Nn \obey_hspaces: { \penalty\z@\mbox{}\space } \NewDocumentCommand \obeyhspaces { } { \char_set_active_eq:nN {32} \obey_hspaces: \char_set_catcode_active:n {32} } \cs_new:Nn \obey_vlines: { \leavevmode\newline } \NewDocumentCommand \obeyvlines { } { \char_set_active_eq:nN {13} \obey_vlines: \char_set_catcode_active:n {13} } \NewDocumentEnvironment {lyrics} { } { \obeyhspaces \obeyvlines }{} \ExplSyntaxOff
\begin{lyrics} Oh, imagine a land, it's a faraway place Where the caravan camels roam Where you wander among every culture and tongue It's chaotic, but hey, it's home
\end{lyrics}
KTUG 한국 텍 사용자 그룹
삭제한 것의 일부는 다음과 같습니다.
\ExplSyntaxOn
\cs_new:Nn \obey_hspaces: { \penalty\z@\mbox{}\space }
\NewDocumentCommand \obeyhspaces { }
{
\char_set_active_eq:nN {32} \obey_hspaces:
\char_set_catcode_active:n {32}
}
\cs_new:Nn \obey_vlines: { \leavevmode\newline }
\NewDocumentCommand \obeyvlines { }
{
\char_set_active_eq:nN {13} \obey_vlines:
\char_set_catcode_active:n {13}
}
\NewDocumentEnvironment {lyrics} { }
{
\obeyhspaces
\obeyvlines
}{}
\ExplSyntaxOff
\begin{lyrics}
Oh, imagine a land, it's a faraway place
Where the caravan camels roam
Where you wander among every culture and tongue
It's chaotic, but hey, it's home
\end{lyrics}