作为 coder 和 phD candidate, Markdown和tex是基本操作。除非甲方硬要word文档,否则一律 .md/.tex 解决。各出版社期刊会议提供的原始模板中包含的封面图案等不必赘述,本文记录排版中涉及到的图、表格、文献引用、伪代码、公式中的工具。Blog持续更新,作为 thesis writing 过程中的减压方式吧。
Hyperref
最喜欢的一个功能,放到前面!超链一时爽,一直用一直爽~~ code:
\usepackage{hyperref}
\usepackage{url}
\usepackage{xcolor}
效果:
Sections & Subsections
各个期刊的章节和致谢构造是一样的,改投的时候直接粘过来就行了。代码:
\section{Introduction} %Section 1
\label{sec:intro}
Your text comes here.
\section{Related work} %自动排成 Section 2
\label{sec:rw}
\subsection{Subsection title} %自动排成 Subsection
\label{sec:sub1}
Here's an example of section citation (see Section.~\ref{sec:intro}).
\begin{acknowledgements}
If you'd like to thank anyone.
\end{acknowledgements}
效果:
Single Figure 单图
\begin{figure}[H]
\label{fig:example}
\centering
\includegraphics[height=5.5cm]{fig/example.jpg}
\caption{Figure title.}
\end{figure}
caption 和 label也可以独立开来写。
此处应有图,不过太懒了,不保证会更新
Multi Figures 多图
\begin{figure}[th]
\centering
\subfigure[Title]{\includegraphics[height=3cm]{imgFilePath}}
%用\\控制换行;按照版面宽度设置height 或 width,算好要插入图的数量,之后自己计算size。
\caption{Assembly process simulation}
\label{fig:SimpleBright}
\end{figure}
此处应有图,不过太懒了,不保证会更新
Equations 公式
latex 使用 MathJax 语法, 特殊字符的代码可以通过在 detexify 手写识别获得。 公式主体部分代码如下:
\begin{equation}
\label{eq:eqlabel}
\end{equation}
值得注意的是:
- 数域的表示用空心字体
\mathbb{R}
$\mathbb{R}$ - 向量、矩阵用粗体字
\mathbf{p}
$\mathbf{p}$ - 图像、数据、集合用手写体,如:
\mathcal{I}
$\mathcal{I}$ - 非变量脚注,描述意义的脚注,用正体而非默认的斜体。如 camera 捕获的图像 $\mathcal{I}$ 记为
\mathcal{I}_mathrm{c}
$\mathcal{I}_\mathrm{c}$
此处应有图,不过太懒了,不保证会更新