发布时间:2011-06-27 23:07:53
文章类别:表格制作
原文地址:http://blog.sina.com.cn/s/blog_5e16f177010173hw.html
QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载
第一个方法,可以固定列宽然后可以使用列表环境了。
第二个方法,就是使用\parbox。具体实例如下:
\begin{tabular}{|p{3cm}|p{3cm}|}
\hline
\textbf{Name:} Foo &\\
\hline
\textbf{Main success scenario:}& \\
\begin{enumerate}
\end{enumerate}&\begin{enumerate}
\end{enumerate}\\
\hline
\end{tabular}
\begin{tabular}{|c|c|}
\hline
\textbf{Name:} Foo &\\
\hline
\textbf{Main success scenario:}& \\
\parbox{.25\linewidth}{\begin{enumerate}
\end{enumerate}}&\parbox{.25\linewidth}{\begin{enumerate}
\end{enumerate}}\\
\hline
\end{tabular}
演示效果:
![LaTeX技巧548:表格中如何嵌入description enumerate等环境 LaTeX技巧548:表格中如何嵌入description enumerate等环境](wangzhaoli11_博客图片/LaTeX_files_17748d4e31444e0c7d56a45b87bf96243d3d6c2d/1.jpg)
前述文章也有定义列格式的方法,这里提供另一个定义方法,
实例如下:
\documentclass{article}
\usepackage{array}
\makeatletter
\newcolumntype{e}[1]{%--- Enumerated cells ---
\newcolumntype{i}[1]{%--- Itemized cells ---
\AtBeginDocument{%
\makeatother
\begin{document}
\begin{tabular}[t]{|i{2.5cm}|e{3cm}|}
\hline
\hline
\end{tabular}
\end{document}
选自:http://tex.stackexchange.com/questions/11541/how-to-include-enumerate-in-tabular
演示效果:
![LaTeX技巧548:表格中如何嵌入description enumerate等环境 LaTeX技巧548:表格中如何嵌入description enumerate等环境](wangzhaoli11_博客图片/LaTeX_files_17748d4e31444e0c7d56a45b87bf96243d3d6c2d/2.jpg)
发表评论 取消回复