作者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
1F:推 yuzic:是耶! 谢谢 07/01 00:11
2F:→ yuzic:\framebox[1.0\textwidth] 改用这比较接近我要的 07/01 00:13