发布时间:2010-02-07 01:03:37
文章类别:表格制作
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770100h61g.html

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载

如果一个表格没有标题,一般情况下,我们无法打一个标签来进行引用说明。本文提供两种解决方案,一种是使用caption来实现,另一种是使用命令。前一种方法可以导入表格目录中,后一种方法,却只可引用表格,却无法生成表格目录。
演示效果图:
LaTeX技巧283:如何引用无标题表格

演示代码:
\documentclass{article}
\usepackage{tabularx,booktabs}
\usepackage{caption}
\setlength\textwidth{200.0pt}
\begin{document}

\listoftables

\bigskip

Here comes table number \ref{tabl1}:

\begin{table}[!ht]
\captionlistentry{BlaBlah}\label{tabl1}
\begin{tabularx}{\textwidth}{lll}
\toprule
\multicolumn{3}{c}{\textbf{\tablename~\thetable}}\\
\multicolumn{3}{c}{\textbf{BlaBla}}\\
1 & 2 & 3\\
4 & 5 & 6\\
\bottomrule
\end{tabularx}
\end{table}

Here comes table number \ref{tabl2}:

\begin{table}[!ht]
\refstepcounter{table}\label{tabl2}
\begin{tabularx}{\textwidth}{lll}
\toprule
\multicolumn{3}{c}{\textbf{\tablename~\thetable}}\\
\multicolumn{3}{c}{\textbf{BlaBla}}\\
1 & 2 & 3\\
4 & 5 & 6\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}


点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部