Skip to content

Commit

Permalink
更新图注添加事例 (sjtug#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu authored Jun 15, 2018
2 parents bae0057 + e2d61cc commit dd53a00
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 13 deletions.
16 changes: 12 additions & 4 deletions bib/thesis.bib
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ @article{chen2007ewi
publisher = {APS}
}

@article{he1999,
title = {标准动态力发生装置国内外研究现状},
number = {2},
journal = {机电工程},
author = {何闻},
year = {1999},
pages = {47-49},
}

@inproceedings{kocher99,
author={C. Kocher and J. Jaffe and B. Jun},
Expand All @@ -67,20 +75,20 @@ @incollection{Krasnogor2004e
PAGES = {185-207},
EDITOR = {W.E. Hart and N. Krasnogor and J.E. Smith},
VOLUME = {166},
SERIES = {Studies in Fuzziness and Soft Computing},
ADDRESS = {New York},
SERIES = {Studies in Fuzziness and Soft Computing},
ADDRESS = {New York},
}

@incollection{zjsw,
AUTHOR = {班固},
TITLE = {苏武传},
BOOKTITLE = {传记散文英华},
PUBLISHER = {湖北人民出版社},
YEAR = {1998},
YEAR = {1998},
PAGES = {65-69},
EDITOR = {郑在瀛 and 汪超宏 and 周文复},
VOLUME = {2},
SERIES = {新古文观止丛书},
SERIES = {新古文观止丛书},
ADDRESS = {武汉},
}

Expand Down
Binary file added figure/example/cn_100t.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 26 additions & 9 deletions tex/example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ \subsubsection{一个四级标题}
这是全文唯一的一个四级标题。在这部分中将演示了mathtools宏包中可伸长符号(箭头、等号的例子)的例子。

\begin{displaymath}
A \xleftarrow[n=0]{} B \xrightarrow[LongLongLongLong]{n>0} C
A \xleftarrow[n=0]{} B \xrightarrow[LongLongLongLong]{n>0} C
\end{displaymath}

\begin{eqnarray}
Expand Down Expand Up @@ -143,14 +143,14 @@ \subsection{定理环境}
\ointop_{\gamma}f(z)\,\mathrm{d}z = 2\uppi\mathbf{i}\sum^n_{k=1}\mathrm{Res}(f,a_k)
\end{equation}

% \oint_\gamma f(z)\, dz = 2\pi i \sum_{k=1}^n \mathrm{Res}(f, a_k ).
% \oint_\gamma f(z)\, dz = 2\pi i \sum_{k=1}^n \mathrm{Res}(f, a_k ).

在这里,$\mathrm{Res}(f, a_k)$表示$f$在点$a_k$的留数,$\mathrm{I}(\gamma,a_k)$表示$\gamma$关于点$a_k$的卷绕数。
卷绕数是一个整数,它描述了曲线$\gamma$绕过点$a_k$的次数。如果$\gamma$依逆时针方向绕着$a_k$移动,卷绕数就是一个正数,
如果$\gamma$根本不绕过$a_k$,卷绕数就是零。

定理\ref{thm:res}的证明。

\begin{proof}
首先,由……

Expand Down Expand Up @@ -246,7 +246,24 @@ \subsection{长标题的换行}
{上海交通大学是我国历史最悠久的高等学府之一,是教育部直属、教育部与上海市共建的全国重点大学.}
{Where there is a will, there is a way.}
\label{fig:longcaptiongood}
\end{minipage}
\end{minipage}
\end{figure}

\subsection{添加图注}

当插图中组成部件由数字或字母等编号表示时,可在插图下方添加图注进行说明,如图\ref{fig:cn_100t}所示。

\begin{figure}[!htp]
\centering
\includegraphics[width=0.3\textwidth]{example/cn_100t.png}\
\begin{center}
\small\kaishu 1.立柱 2.提升释放机构 3.标准冲击加速度计 \\ 4.导轨 5.重锤 6.被校力传感器 7.底座
\end{center}
\vspace{-1em}
\bicaption[出现在插图索引中]
{示例图片来源于\parencite{he1999}}
{Stay hungry, stay foolish.}
\label{fig:cn_100t}
\end{figure}

\subsection{绘制流程图}
Expand All @@ -258,7 +275,7 @@ \subsection{绘制流程图}
\bicaption{绘制流程图效果}{Flow chart}
\label{fig:flow_chart}
\end{figure}

\clearpage

\section{表格}
Expand Down Expand Up @@ -333,7 +350,7 @@ \section{参考文献管理}
author={"白云芬"},
year={2008},
school={"上海交通大学"}
}
}
\end{lstlisting}

推荐修改后在bib文件中的内容为:
Expand All @@ -345,7 +362,7 @@ \section{参考文献管理}
date={2008},
address={"上海"},
school={"上海交通大学"}
}
}
\end{lstlisting}

按照教务处的要求,参考文献外观应符合国标GBT7714的要求\footnote{\url{http://www.cces.net.cn/guild/sites/tmxb/Files/19798_2.pdf}}。
Expand Down Expand Up @@ -408,7 +425,7 @@ \section{用algorithm和algorithmicx宏包插入算法描述}
示例如算法\ref{algo:sum_100}和算法\ref{algo:merge_sort},
后者的代码来自\href{http://hustsxh.is-programmer.com/posts/38801.html}{xhSong的博客}。
algorithmicx的详细使用方法见\href{http://mirror.hust.edu.cn/CTAN/macros/latex/contrib/algorithmicx/algorithmicx.pdf}{官方README}。
使用算法宏包时,算法出现的位置很多时候不按照tex文件里的书写顺序,
使用算法宏包时,算法出现的位置很多时候不按照tex文件里的书写顺序,
需要强制定位时可以使用\verb+\begin{algorithm}[H]+
\footnote{http://tex.stackexchange.com/questions/165021/fixing-the-location-of-the-appearance-in-algorithmicx-environment}

Expand Down Expand Up @@ -501,7 +518,7 @@ \section{用algorithm和algorithmicx宏包插入算法描述}
但是当算法\ref{algo:merge_sort}不使用\verb+\begin{algorithm}[H]+时它会出现在算法\ref{algo:merge_sort}
甚至算法\ref{algo:sum_100}前面。

对于算法的索引要注意\verb+\caption+和\verb+\label+的位置,
对于算法的索引要注意\verb+\caption+和\verb+\label+的位置,
必须是先\verb+\caption+再\verb+\label+\footnote{http://tex.stackexchange.com/questions/65993/algorithm-numbering},
否则会出现\verb+\ref{algo:sum_100}+生成的编号跟对应算法上显示不一致的问题。

Expand Down

0 comments on commit dd53a00

Please sign in to comment.