作者hearowank (謫仙人)
看板LaTeX
標題Re: [問題] 表格問題(自動換行、第一行頂到線)
時間Sat Jun 30 23:23:14 2012
※ 引述《yuzic (柚)》之銘言:
: 請問如何做出跟下方相同的東西
: http://ppt.cc/ak2M
: 碰到的問題:
: 1.指定寬度後不會換行
: 2.第一行(Note...)會頂到表格的線(跟線非常接近),不如圖中會有間隔
: 附上目前嘗試的結果
: \begin{center}
: \begin{tabular}{|l| p{1.0\textwidth}}
: \hline
: {\large\textbf{Note.}} In this book the terms ``mapping,'' ``map,''
: ``function,'' and ``transformation'' are all synonymous.\\
: \hline
: \end{tabular}
: \end{center}
: 還是它可以有不是表格的做法?
: 請大家幫忙,謝謝。
: 補充:外框跟內文寬度相同
這感覺不是用表格做的耶...把文字加個外框?
\fbox{
\begin{minipage}{\textwidth}
{\large\textbf{Note.}} In this book the terms ``mapping,'' ``map,''
``function,'' and ``transformation'' are all synonymous.
\end{minipage}}
用\fbox{}包起來就行了
要讓裡面的文字自動換行 所以要再多用
\begin{minipage}{\textwidth}
內容
\end{minipage}
這樣應該就有外框效果了
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.205.139.8
推 yuzic:是耶! 謝謝 07/01 00:11
→ yuzic:\framebox[1.0\textwidth] 改用這比較接近我要的 07/01 00:13