看板LaTeX
標 題Re: [問題] 訊息框裡面放\verb= =?
發信站交大資訊次世代BS2 (Fri Nov 2 23:40:23 2007)
轉信站ptt!ctu-reader!ctu-gate!ctu-peer!news.nctu!csnews.cs.nctu!news.cs.nctu
※ 引述《[email protected] (jsb)》之銘言:
> 問題是以下的訊息框:
> \begin{center}
> \begin{minipage}[h]{10cm}
> \fbox{\parbox{10cm}
> {This is a test message. If the message is longer than
> the width indicated by \verb=\parbox=, it breaks into the next
> line.}
> }
> \end{minipage}
> \end{center}
> 如果沒有 \verb=\parbox= 的話,顯示就是我要的樣子。
> 可是這個訊息框裡面想要顯示 \parbox 這種 LaTeX 指令,好像就會出現錯誤。
> 不知道是為什麼?怎麼解決咧?
\verb 不能當其他指令的參數。例如,不能用在 \fbox{} 裡頭。請參考:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbwithin
--
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw>
█▄▄▄▄█ █ ▄▄▄▄▄█ Player: EdwardLee
▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: linux.cc.ntu.edu.tw
☆ 次世代BS2 ☆ 可申請個人板
150MB 相簿 http://pic.bs2.to 交大資訊人 250MB