KTUGFaq
KTUG FAQ
If you make a mistake you right it immediately to the best of your ability.
Tip: One Line On/Off Switch ¶
ó:
- (, April 19, 2006, \comment...\endcomment) http://faq.ktug.or.kr/faq/LittleTree/ReadingTeXbook/2006-04
- CategoryCode
ں ߴٰ .
ù % ڿ (Ȯϰ) ϴ \SWOFF ̴.
° \SWOFF ƹ ۵ ʴ ̴.
\def\SWOFF{\begingroup\catcode`\^^M=12 \xSWOFF}{\catcode`\^^M=12 \gdef\xSWOFF#1^^M{\endgroup}} \renewcommand\SWOFF{\relax}
\SWOFF ɰ % :
- \SWOFF ں Ͽ ִ.
- \SWOFF One Line On/Off Switch ϸ ...
ѱ : ° ٷ controlѴ.
- \SWOFF ** · ǵǾǷ ° comment(%)ϸ \SWOFF <<>> **.
- <<>> *ѱ* ؼ ° uncomment(%)ϸ ȴ.
\documentclass{article} \def\SWOFF{\begingroup\catcode`\^^M=12 \xSWOFF}{\catcode`\^^M=12 \gdef\xSWOFF#1^^M{\endgroup}} %\renewcommand\SWOFF{\relax} \begin{document} % Yo! Can you turn this line on??? \SWOFF Yo! Can you turn this line on? \SWOFF\begin{center} Is this line centered? \SWOFF\end{center} \end{document}
comment ȯ ¶
ּ verbatim Ű ϴ commentȯ ؾ Ѵ. .
\usepackage{verbatim} ... \begin{document} ... \begin{comment} ... \end{comment} \end{document}
н ȯ ȿ ִ.
memoir ¶
%%% UTF-8 ========================== \documentclass{memoir} \usepackage{dhucs} \usepackage[dvipdfm,bookmarks=false]{hyperref} \newcomment{versionthreedotone} \newcomment{versionthreedottwo} %\commentson{versionthreedottwo} %\commentsoff{versionthreedotone} \commentsoff{versionthreedottwo} \begin{document} ڸƮ Ű ̿ Ʈ? %%% \begin{versionthreedotone} κ version 3.1 Դϴ. \end{versionthreedotone} \begin{versionthreedottwo} κ version 3.2 Դϴ. \end{versionthreedottwo} %%% ܾ Ʈ. κ version \begin{versionthreedotone}% 3.1% \end{versionthreedotone}% \begin{versionthreedottwo}% 3.2% \end{versionthreedottwo}% Դϴ. \end{document}
comment package ¶
memoir ʴ´ٸ comment Ű ̿Ͽ ˴ϴ.
쿡 \newcomment, \commentson/off ƴϰ
\includecomment/\excludecomment Դϴ.
% UTF-8 \documentclass{article} \usepackage{dhucs} \usepackage[dvipdfm,bookmarks=false]{hyperref} \usepackage{comment} \excludecomment{versionthreedotone} \includecomment{versionthreedottwo} \begin{document} ڸƮ Ű ̿ Ʈ? κ version \begin{versionthreedotone} 3.1 \end{versionthreedotone} \begin{versionthreedottwo} 3.2 \end{versionthreedottwo} Դϴ. \end{document}