KTUGFaq
KTUG FAQ
[ÆíÁý]
% ¹®ÀÚ ¶
LATEXÀº ÀÔ·Â ÆÄÀÏÀ» ó¸®ÇØ°¡´Ù°¡ % ¹®ÀÚ¸¦ ¸¸³ª¸é ±× ÁÙ(Çà)ÀÇ ³ª¸ÓÁö ºÎºÐ°ú ÁٹٲÞÀ» ¹«½ÃÇÑ´Ù. ±×¸®°í ´ÙÀ½ Á٠ù¸Ó¸®¿¡ ¿À´Â °ø¹é¹®ÀÚµµ ¸ðµÎ ¹«½ÃÇÑ´Ù. ÀÌ°ÍÀº ÀÔ·Â ÆÄÀÏ ÀÛ¼º½Ã ÃÖÁ¾ ÀμâÆÇ¿¡´Â ³ªÅ¸³ªÁö ¾Ê´Â ÁÖ¼®¹®À» ¾²°í ½ÍÀ» ¶§ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
% ¹®ÀÚ´Â °ø¹é¹®ÀÚ³ª ÁÙ¹Ù²Þ ¹®ÀÚ°¡ Çã¿ëµÇÁö ¾Ê´Â ±ä ÁÙÀ» ³ª´©¾î ÀÔ·ÂÇÒ ¼ö ÀÖ°Ô ÇØÁØ´Ù.
[ÆíÁý]
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}
ÀÌ ¹æ¹ýÀÌ ¼öÇÐ½Ä °°ÀÌ º¹ÀâÇÑ È¯°æ ¾È¿¡¼´Â Á¦´ë·Î µ¿ÀÛÇÏÁö ¾ÊÀ»¼öµµ ÀÖ´Ù.
[ÆíÁý]
comment ÆÐÅ°Áö ¶
macros/latex/contrib/comment/¿¡¼ ãÀ» ¼ö ÀÖ´Ù. »ç¿ë¹ýÀº verbatim ÆÐÅ°ÁöÀÇ comment ȯ°æ°ú °°´Ù. ¶ÇÇÑ ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÒ ¼öµµ ÀÖ´Ù.
\comment ... \endcomment
¾î¶² ±ÛÀڵ鵵 ÁÖ¼®Ã³¸®ÇØÁشٰí ÇÏ´Ï(comment.sty ÆÄÀÏ Ã³À½ºÎºÐ ¼³¸íÂü°í) verbatim ÆÐÅ°Áö·Î ó¸®ÇÒ ¼ö ¾ø´Â°ÍÀº comment ÆÐÅ°Áö¸¦ »ç¿ëÇغ¼°Í.
[ÆíÁý]
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}