KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

이미 데니스님이 답을 다셨네요. -.- 저는 쬐끔 다르게 만들어 봤습니다.

\documentclass[10pt]{book}
\usepackage{kotex}
\usepackage{xparse, expl3}
\ExplSyntaxOn
\bool_new:N \tentative_show_bool
\NewDocumentCommand \tentative { +m }
{
  \bool_if:NT \tentative_show_bool { #1 }
}
\NewDocumentCommand \showtentative {}
{
  \bool_set_true:N \tentative_show_bool
}
\NewDocumentCommand \hidetentative {}
{
  \bool_set_false:N \tentative_show_bool
}
\showtentative
\ExplSyntaxOff
\newcommand\str{유구한 역사와 전통에 빛나는 우리 대한국민은 3·1운동으로 건립된}

\begin{document}
보이고: \str

\hidetentative
안 보이고: \tentative{\str}

\showtentative
다시 보이고: \tentative{\str}
\end{document}
 

KTUG 한국 텍 사용자 그룹