看板LaTeX
标 题Re: [问题] comment的符号
发信站交大资讯次世代BS2 (Sun Jun 15 06:50:53 2008)
转信站ptt!ctu-reader!ctu-peer!news.nctu!csnews.cs.nctu!news.cs.nctu!BS2
※ 引述《[email protected] (好多目标)》之铭言:
> ※ 引述《bcs (= ="frailty..gggg XD)》之铭言:
> : 请问latex中有没有夹集的comment符号,像是
> : /*
> : first
> : second
> : so on
> : */
> : 白色这段话就会省略。
> : 谢谢^^"
> 我会自己定义
> \newcommand{\ignore}[1]{}
> 然後
> \ignore{
> first
> second
> so on
> }
这样定义会有小问题,那就是会多出一个空白出来,请做一个小测试:
comments test.
\ignore{
Here are ignore comments.
Here are ignore comments.
}
comments test.
comments test.
\iffalse
Here are iffalse comments.
Here are iffalse comments.
\fi
comments test.
--
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw>
█▄▄▄▄█ █ ▄▄▄▄▄█ Player: EdwardLee
▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: linux.cc.ntu.edu.tw
☆ 次世代BS2 ☆ 可申请个人板 150MB 相簿
http://pic.bs2.to 交大资讯人 250MB