Skip to content

Commit

Permalink
Refactor example.
Browse files Browse the repository at this point in the history
  • Loading branch information
xueruini committed Apr 27, 2019
1 parent ebda200 commit 75ff715
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions data/chap01.tex
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,6 @@ \subsection{复杂表格}
抗行周雅,长揖楚辞。诗家者流,时论归美。克成编录,叹息良深。殷璠谓维诗词秀调雅,
意新理惬。在泉成珠,著壁成绘。苏轼亦云:“维诗中有画,画中有诗也。”今编诗四卷。

要想用好论文模板还是得提前学习一些 \TeX/\LaTeX{}的相关知识,具备一些基本能力,掌
握一些常见技巧,否则一旦遇到问题还真是比较麻烦。我们见过很多这样的同学,一直以来
都是使用 Word 等字处理工具,以为 \LaTeX{}模板的用法也应该类似,所以就沿袭同样的思
路来对待这种所见非所得的排版工具,结果被折腾的焦头烂额,疲惫不堪。

如果您要排版的表格长度超过一页,那么推荐使用 \pkg{longtable} 或者 \pkg{supertabular}
宏包,模板对 \pkg{longtable} 进行了相应的设置,所以用起来可能简单一些。
表~\ref{tab:performance} 就是 \pkg{longtable} 的简单示例。
\begin{longtable}[c]{c*{6}{r}}
\caption{实验数据}\label{tab:performance}\\
\toprule[1.5pt]
Expand Down Expand Up @@ -294,6 +286,15 @@ \subsection{复杂表格}
\bottomrule[1.5pt]
\end{longtable}

要想用好论文模板还是得提前学习一些 \TeX/\LaTeX{}的相关知识,具备一些基本能力,掌
握一些常见技巧,否则一旦遇到问题还真是比较麻烦。我们见过很多这样的同学,一直以来
都是使用 Word 等字处理工具,以为 \LaTeX{}模板的用法也应该类似,所以就沿袭同样的思
路来对待这种所见非所得的排版工具,结果被折腾的焦头烂额,疲惫不堪。

如果您要排版的表格长度超过一页,那么推荐使用 \pkg{longtable} 或者 \pkg{supertabular}
宏包,模板对 \pkg{longtable} 进行了相应的设置,所以用起来可能简单一些。
表~\ref{tab:performance} 就是 \pkg{longtable} 的示例。

\subsection{其它}
\label{sec:tableother}
如果不想让某个表格或者图片出现在索引里面,请使用命令 \cs{caption*}。
Expand Down
2 changes: 1 addition & 1 deletion ref/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ @online{oclc2000
@online{thuthesis,
author = {薛瑞尼},
title = {ThuThesis: 清华大学学位论文模板},
urldate = {2017-12-02},
urldate = {2019-04-27},
url = {https://github.com/xueruini/thuthesis},
year = 2017,
}

0 comments on commit 75ff715

Please sign in to comment.