As a coder and PhD candidate, Markdown and TeX are basic skills. Unless the client insists on Word documents, I always use .md/.tex to get things done. The original templates provided by various publishers for journals and conferences include cover patterns and other elements that go without saying. This article records the tools involved in typesetting figures, tables, literature citations, pseudocodes, and equations. This blog will be continuously updated, serving as a way to relieve stress during thesis writing.
Hyperref
My favorite feature, so I’ll put it first! Hyperlinks are satisfying to use, and the more you use them, the more satisfying they are~~ Code:
\usepackage{hyperref}
\usepackage{url}
\usepackage{xcolor}
Effect:



Sections & Subsections
The structure of sections, subsections, and acknowledgements is the same across different journals. You can directly copy them when submitting to another journal. Code:
\section{Introduction} % Section 1
\label{sec:intro}
Your text comes here.
\section{Related work} % Automatically formatted as Section 2
\label{sec:rw}
\subsection{Subsection title} % Automatically formatted as 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}
Effect:

Single Figure
\begin{figure}[H]
\label{fig:example}
\centering
\includegraphics[height=5.5cm]{fig/example.jpg}
\caption{Figure title.}
\end{figure}
The caption and label can also be written separately.
There should be a figure here, but I’m too lazy, so no guarantee of an update
Multi Figures
\begin{figure}[th]
\centering
\subfigure[Title]{\includegraphics[height=3cm]{imgFilePath}}
% Use \\ to control line breaks; set height or width according to the layout width, calculate the number of figures to insert, and then compute the size yourself.
\caption{Assembly process simulation}
\label{fig:SimpleBright}
\end{figure}
There should be a figure here, but I’m too lazy, so no guarantee of an update
Equations
LaTeX uses MathJax syntax. Codes for special characters can be obtained through handwritten recognition on detexify. The code for the main part of an equation is as follows:
\begin{equation}
\label{eq:eqlabel}
\end{equation}
It’s worth noting that:
- Number fields are represented using hollow fonts:
\mathbb{R}$\mathbb{R}$ - Vectors and matrices use bold fonts:
\mathbf{p}$\mathbf{p}$ - Images, data, and sets use script fonts, e.g.:
\mathcal{I}$\mathcal{I}$ - Non-variable subscripts that describe meanings should be in roman font instead of the default italic. For example, the image captured by a camera, $\mathcal{I}$, is written as
\mathcal{I}_\mathrm{c}$\mathcal{I}_\mathrm{c}$
There should be a figure here, but I’m too lazy, so no guarantee of an update
Tables
Algorithms (Pseudocode) (Updated on January 26, 2021)
English-only: algorithm + algorithmic
Chinese pseudocode: algorithm + algorithmic + ctex
Embedding pseudocode in Word with Aurora (English-only, cannot use ctex)
References of all types of materials
Cite and hyperlink the above materials in the article