Skip to content

Commit

Permalink
Refactor tables&figures organization
Browse files Browse the repository at this point in the history
  • Loading branch information
Durant35 committed May 3, 2018
1 parent f3322d0 commit 235381a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 22 deletions.
23 changes: 2 additions & 21 deletions body/introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,11 @@ \section{例子}

图例子。label要在caption后。多图或子图方法上网查吧。

\begin{figure}[!t]
\centering
\includegraphics[width=0.95\textwidth]{scenes}
\caption{图例}
\label{fig:scenes}
\end{figure}
\input{figures/chap01_example.tex}

表例子。推荐使用这种三行表。缺省值使用三个“-”产生长横线“---”。

\begin{table}[!t]
\caption{示例表}
\label{tab:eg}
\vspace{0.5em}
\centering
\wuhao
\begin{tabular}{ccccc}
\toprule[1.5pt]
表头 & 栏1 & 栏2 & 栏3 & 栏4 \\
\midrule[1pt]
内容1 & b & --- & $768 \times 576$ & 19 \\
内容1 & a & 240/7 & $768 \times 576$ & --- \\
\bottomrule[1.5pt]
\end{tabular}
\end{table}
\input{tables/chap01_example.tex}

公式例子,与普通Latex数学公式无异\footnote{这是一个脚注:\href{https://github.com/Durant35/LatexThesis4SYSU}{https://github.com/Durant35/LatexThesis4SYSU}}。

Expand Down
6 changes: 6 additions & 0 deletions figures/chap01_example.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\begin{figure}[!t]
\centering
\includegraphics[width=0.95\textwidth]{./imgs/scenes}
\caption{图例}
\label{fig:scenes}
\end{figure}
File renamed without changes.
Binary file modified main.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
% 以下是论文正文,内容在body子文件夹下
% 默认即开章页无页眉
\mainmatter\defaultfont\sloppy\raggedbottom
% 设置开章页页眉眉页脚样式
% 设置开章页页眉页脚样式
\makeatletter
\fancypagestyle{plain}{
\fancyhf{}
Expand Down
15 changes: 15 additions & 0 deletions tables/chap01_example.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
\begin{table}[!t]
\caption{示例表}
\label{tab:eg}
\vspace{0.5em}
\centering
\wuhao
\begin{tabular}{ccccc}
\toprule[1.5pt]
表头 & 栏1 & 栏2 & 栏3 & 栏4 \\
\midrule[1pt]
内容1 & b & --- & $768 \times 576$ & 19 \\
内容1 & a & 240/7 & $768 \times 576$ & --- \\
\bottomrule[1.5pt]
\end{tabular}
\end{table}

0 comments on commit 235381a

Please sign in to comment.