Wish you all a happy Mid-Autumn Festival and National Day!
Looking back, we often encounter various problems during the programming process. However, many problems cannot be solved. There are various redundant answers on the Internet, and there is a lack of systematic summary of practical skills. In order to better engage in scientific research and programming learning, various common practical skills will be summarized in the following, hoping to be helpful to you.
This article mainly introduces the common usage and practical skills of writing LaTeX papers, including the basic structure of the paper, algorithms, pictures, tables, formulas, special symbols, references, serial numbers and other methods. The full text will be continuously updated. On the one hand, it serves as my own study notes. On the other hand, I hope it can help beginners solve practical problems. Please read and cherish it!
Article directory
Basic paper structure
What is LaTeX
LaTeX is a typesetting system based on ΤΕΧ, which was developed by American computer scientist Leslie Lambert in the early 1980s. Using this format, even users without knowledge of typesetting and programming can give full play to The powerful functions provided by TeX can produce many book-quality printed materials in a few days or even hours. This is especially true for generating complex tables and mathematical formulas. It is therefore ideally suited for producing high print quality scientific and mathematical documents.
LaTeX works like a web page. They are rendered from a source file (.tex or .html) by an engine (TeX or browser) to produce the final effect, thereby obtaining a PDF file or generating a page. The two are very similar, including grammatical rules and working methods.
The official download address is as follows:
- Tex Live download address:http://www.tug.org/texlive/
- Tsinghua University mirror address:https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/
- Tex studio下载地址:http://www.texstudio.org/
It is strongly recommended that you directly download the LaTex module for modification. This article is more about telling you the basic syntax. Please come down and try the installation process. I hope it will be helpful to you!
basic structure
LaTeX documents are divided into an introduction area and a text area (document area). In the introduction area, we can use the documentclass command to introduce a document class, or there can be a book class, a report class, and a letter class. The percent sign represents a comment and does not participate in document compilation. and not as output. Use begin and end to enter an environment in the text area, as shown in the following figure:
Then set the name of the environment to document. A LaTeX file has and can only have one document file. Add the text content and compile the document.
The introductory area is mainly used for global settings, such as document title, author, date, and then displays the title through maketitle.
% 导言区
\documentclass{article}
\title{My First Document}
\author{Eastmount}
\date{\today}
% 正文区
\begin{document}
\maketitle
Hello World!
\end{document}
The display is as shown below:
Chapter structure
Academic papers usually include two structures, as shown in the figure below. The left side represents the theoretical type and the right side represents the experimental type.
In LaTeX, we can define summaries through section, and we can also use subsection to define subsummaries. At the same time, I also recommend that you download the IEEE structure and modify it, which I will also talk about later.
- \section{Section title}
- \label{sec:mysection}
- \subsection{title}
- \subsubsection{title}
- \section*{} unnumbered section
- \appendix
For example:
% 导言区
\documentclass{article}
\usepackage{ctex}
\title{My First Document}
\author{Eastmount}
\date{\today}
% 正文区
\begin{document}
\maketitle
% 构建文章小结
\section{Introduction}
\section{Related Work}
\section{System Model}
\section{Mathematics and algorithms}
\section{Experiments}
\subsection{Datasets}
\subsubsection{实验条件}
\subsubsection{评价指标}
\subsection{Results}
\section{Acknowledgment}
\end{document}
The output is as shown below:
algorithm
Two methods are usually used to write algorithms, including:
- Use algorithm and algorithm packages
- Use algorithm2e macro package
algorithm
Import package:
\usepackage{
algorithm}
\usepackage{
algorithmic}
Algorithm code:
\begin{
algorithm}[!ht]
\caption{
Feature extraction based on abstract syntax tree.}
\begin{
algorithmic}[1]
\REQUIRE {
$X=\left\{
x_1,x_2,...,x_n\right\}$, where $x_i$ is the $i^{
th}$ PowerShell script.}
\ENSURE {
$V^{
(ast)}=\left\{
v_1,v_2,...,v_n\right\}$, where $v_i$ is the $i^{
th}$ sequence vector generated by AST-based feature extraction method (i.e., AST2Vec).}
\STATE $V^{
(ast)} \leftarrow \emptyset$ , $S \leftarrow \emptyset$, $F \leftarrow \emptyset$, $W \leftarrow \emptyset$
\FOR{
$i \leftarrow 1$ {
\bf to} $n$}
\STATE $t_i = ExtractAstSequences( x_i )$
\STATE $s_i = PostorderTraversal( t_i )$
\STATE $S.append( s_i )$
\ENDFOR
\STATE $F = BuildFeatureSetFromAst(S) $
\STATE $//$ Count all distinct features of AST sequences.
\FOR{
each $f_k \in F$}
\STATE $w_k = CalculateWordVectors( f_k )$
\STATE $W.append( w_k )$
\ENDFOR
\STATE $//$ Calculate word vectors for each AST node.
\FOR{
each $s_i \in S$}
\STATE $v_i = GenerateAstEmbedding( s_i )$
\STATE $V^{
(ast)}.append( v_i )$
\ENDFOR
\STATE {
\bf return} {
$V^{
(ast)}$}
\end{
algorithmic}
\label{
algorithm1}
\end{
algorithm}
The running results are shown in the figure below:
algorithm2e
Import package:
\usepackage{
algorithm}
\usepackage[algo2e]{
algorithm2e}
Algorithm code:
\begin{
algorithm}[!ht]
\caption{
Feature extraction based on abstract syntax tree.}
\label{
algorithm1}
\SetAlgoLined
\SetKwInOut{
Input}{
Input}
\SetKwInOut{
Output}{
Output}
\Input{
$X=\left\{
x_1,x_2,...,x_n\right\}$, where $x_i$ is the $i^{
th}$ PowerShell script.}
\Output{
$V^{
(ast)}=\left\{
v_1,v_2,...,v_n\right\}$, where $v_i$ is the $i^{
th}$ sequence vector generated by AST-based feature extraction method (i.e., AST2Vec).}
Initialization: $V^{
(ast)} \leftarrow \emptyset$ , $S \leftarrow \emptyset$, $F \leftarrow \emptyset$, $W \leftarrow \emptyset$
\For{
$i \leftarrow 1$ \KwTo $n$}{
$t_i = ExtractAstSequences( x_i )$
$s_i = PostorderTraversal( t_i )$
$S.append( s_i )$
}
$F = BuildFeatureSetFromAst(S) $
\tcc{
Count all distinct features of AST sequences}
\For{
$f_k \in F$}{
$w_k = CalculateWordVectors( f_k )$
$W.append( w_k )$
}
\tcc{
Calculate word vectors for each AST node}
\For{
$s_i \in S$}{
$v_i = GenerateAstEmbedding( s_i )$
$V^{
(ast)}.append( v_i )$
}
\Return{
$V^{
(ast)}$}
\end{
algorithm}
The running results are shown in the figure below:
picture
Basic usage
The basic syntax for inserting pictures in LaTeX is as follows:
- Insert in the introduction area: \usepackage{graphicx}
- Syntax: \includegraphics[ < options > ] { < filename > }
- Format: EPS, PDF, PNG, JPEG, BMP
Here are some examples:
% 导言区
\documentclass{article}
\usepackage{ctex}
\usepackage{graphicx}
% 指定图片在当前目录下figures目录下
\graphicspath{
{figures/}}
% 正文区
\begin{document}
% 插入图片
\includegraphics{fig1}
% 缩放比例
\includegraphics[scale=0.5]{fig1}
% 固定图像高度
\includegraphics[height=2cm]{fig1.png}
% 固定图像宽度
\includegraphics[width=2cm]{fig1.png}
% 图像高度和宽度基于
\includegraphics[height=0.2\textheight]{fig1.png}
\includegraphics[width=0.2\textwidth]{fig1.png}
% 指定多个参数
\includegraphics[angle=-45,width=0.5\textwidth]{fig1.png}
\end{document}
The display result is as shown in the figure below. scale=0.5 reduces the image size to half of its real size, and [width=0.2\textwidth] scales the graphics to 0.2 times the size of the text.
Dual column display
Note that in papers, we usually encounter application scenarios that span two columns. In this case, we need to set it up like this:
- \begin{figure*}
- \end{figure*}
\usepackage{stfloats}
\begin{figure*}[ht]
\centering
\includegraphics[width=0.8\textwidth]{4.eps}
\caption{BER performance of original OFDM system and different companding schemes over AWGN channel (QPSK).}
\label{fig8}
\end{figure*}
In the above code, figure* means spanning two columns, and htbp means that latex will try its best to satisfy the floating format ranked first, which is the order of h-t-b-p, so that the typesetting effect is as good as possible. Among them, h-here means here, t-top means at the top, b-bottom means the bottom, and p-page means on this page. In order to prevent the cross-page image from running to the last page, we need to add the stfloats package in the introduction area, and then set \begin{figure*}[ht].
h——放置在此处
t——放置在顶部
b——放置在底部
p——浮动放置
*——两栏放置
Dual picture display
The first way - calling minipage implementation, is also the most common way.
\begin{
figure*}
\begin{
minipage}[t]{
0.48\linewidth}
\centering
\includegraphics[scale=0.30]{
Figure-7.eps}
\caption{
The loss curve of different models.}
\label{
fig7}
\end{
minipage}
\begin{
minipage}[t]{
0.48\linewidth}
\centering
\includegraphics[scale=0.30]{
Figure-8.eps}
\caption{
The accuracy curve of different models.}
\label{
fig8}
\end{
minipage}
\end{
figure*}
The display effect is as shown below:
The second way is to call subfigure to achieve it.
\usepackage{
caption}
\usepackage{
subfigure}
\begin{
figure}[htbp]
\centering %居中
\subfigure[name of the first figure] %第一张子图
{
\begin{
minipage}[t]{
0.4\textwidth}
\centering
\includegraphics[scale=0.15]{
fig2}
\end{
minipage}
}
\subfigure[name of the second figure] %第二张子图
{
\begin{
minipage}[t]{
0.4\textwidth}
\centering
\includegraphics[scale=0.2]{
fig3}
\end{
minipage}
}
\caption{
name of the figure} %大图名称
\label{
fig-1} %图片引用标记
\end{
figure}
The display is as shown below:
The third method - call the macro package subfig. To use the \subfloat command provided by the subfig macro package, you need to use the macro packages \usepackage{graphicx} and \usepackage{subfig}.
\begin{
figure}[!hb]
\centering
\subfloat[\label{
fig:arm1}$Q^{
*}$ values for arm 1]{
\includegraphics[width=.5\linewidth]{
1.eps}}%
\subfloat[\label{
fig:arm2}$Q^{
*}$ values for arm 2]{
\includegraphics[width=.5\linewidth]{
1.eps}}\\
\subfloat[\label{
fig:arm3}$Q^{
*}$ values for arm 3]{
\includegraphics[width=.8\linewidth]{
1.eps}}
\caption{
$Q^{
*}$ values for different arms.}
\label{
fig:arms}
\end{
figure}
The display is as shown below:
sheet
Basic usage
Use tabular to generate a table in LaTeX. When inserting, you need to set the alignment (l-left alignment, c-center alignment, r-right alignment), and then insert the data, where & is used to separate each column and \\ is used for line breaks. The code below shows a common three-line table.
\begin{table}
\caption{Symbol Table}
\centering
\begin{tabular}{lll}
\hline
Symbol & Definition & Unitis\\
\noalign{\global\arrayrulewidth1pt}\hline\noalign{\global\arrayrulewidth0.4pt}
\multicolumn{3}{c}{\textbf{Constants}}\\
$\lambda$ & Mean of Poisson distribution & unitless\\
$p_{slow}$ & Probability that a vehicle slows down randomly & unitless\\
\hline
\end{tabular}
\end{table}
The display is as shown below:
Annotated table
In the IEEE LaTex template, I want to add table comments, that is, explain the meaning of table characters. The specific process is as follows:
- 使用\usepackage{threeparttable}
- Add \begin{threeparttable} after \begin{tabular}, and \end{threeparttable} before \end{tabular}
- Comments are added between \begin{tablenotes} and \end{tablenotes}
Importing the extension package is as follows:
\usepackage{
threeparttable}
\usepackage{
float}
\usepackage{
bbding}
\usepackage{
pifont}
code show as below:
\begin{
table*}[!ht]
\centering
\caption{
Related work comparison.}
\begin{
threeparttable}
\resizebox{
\textwidth}{
!}{
\begin{
tabular}{
ccccm{
1.2cm}<{
\centering}m{
1.2cm}<{
\centering}cc}\hline
Related work & Techniques & Focus & Deobfuscation & AST & KG & Multi-modal & Transformer \\\hline
Li et al. \cite{
b3} & \makecell[c]{
subtree-based deobfuscation \\ OOA mining algorithm} & deobfuscation & \Checkmark & \Checkmark & \XSolid & \XSolid & \XSolid \\\hline
PSDEM \cite{
b12} & \makecell[c]{
two-layer deobfuscation \\ monitor process by dynamic analysis} & deobfuscation & \Checkmark & \XSolid & \XSolid & \XSolid & \XSolid \\\hline
PowerDrive \cite{
b13} & \makecell[c]{
multi-stage deobfuscator \\ static analysis by regex \\ dynamic analysis by cmdlet} & deobfuscation & \Checkmark & \XSolid & \XSolid & \XSolid & \XSolid \\\hline
PowerDecode \cite{
b15} & \makecell[c]{
syntax check and remove base64 encoding \\ deobfuscate by cmdlet overriding \\ deobfuscate by regex} & deobfuscation & \Checkmark & \XSolid & \XSolid & \XSolid & \XSolid \\\hline
Hendler et al. \cite{
b18} & \makecell[c]{
character-level CNN \\ 4-layer CNN} & binary classification & \XSolid & \XSolid & \XSolid & \XSolid & \XSolid \\\hline
Fang et al. \cite{
b19} & \makecell[c]{
hybrid features \\ FastText \\ random forest} & binary classification & \Checkmark & \Checkmark & \XSolid & $\bigcirc$ & \XSolid \\\hline
Hendler et al. \cite{
b2} & \makecell[c]{
AMSI-based detection \\ contextual embeddings \\ Token-Char-FastText} & binary classification & \XSolid & \XSolid & \XSolid & \XSolid & \XSolid \\\hline
FC-PSDS \cite{
b25} & \makecell[c]{
features combination \\ random forest and DNN} & binary classification & \Checkmark & \Checkmark & \XSolid & \XSolid & \XSolid \\\hline
Ruscak et al. \cite{
b20} & \makecell[c]{
abstract syntax tree \\ random forest} & multi-classification task & \XSolid & \Checkmark & \XSolid & \XSolid & \XSolid \\\hline
\makecell[c]{
\textbf{
Our method} \\ \textbf{
PowerDetector}} & \makecell[c]{
multi-modal embedding \\ Transformer-CNN-BiLSTM \\ multi-layer deobfuscation algorithm } & \makecell[c]{
malicious family detection \\ multi-classification task} & \Checkmark & \Checkmark & \Checkmark & \Checkmark & \Checkmark \\\hline
\end{
tabular}}
\begin{
tablenotes}
\footnotesize
\item In this table, \Checkmark stands for fully cover, $\bigcirc$ stands for partial cover, \XSolid means cannot cover.
\end{
tablenotes}
\end{
threeparttable}
\label{
tab1}
\end{
table*}
The running results are shown in the figure below:
Complex tables merge multirow
Implemented using the multirow macro package, the basic syntax format of the multirow command is as follows:
- \multirow{[number of rows]}{[width]}{[content]}
- \multirow{[number of rows]}*{[content]}
Import package:
\usepackage{
multirow}
code show as below:
\begin{
table*}[!ht]
\centering
\caption{
Detailed performance comparison of single-modal and multi-modal.}
\resizebox{
\textwidth}{
!}{
\begin{
tabular}{
ccccccccccc}\hline
\multirow{
3}{
*}{
Model} & \multicolumn{
8}{
c}{
Single-modal} & \multicolumn{
2}{
c}{
\multirow{
2}{
*}{
Multi-modal}} \\
\cline{
2-9}
& \multicolumn{
2}{
c}{
Token-level} & \multicolumn{
2}{
c}{
Character-level} & \multicolumn{
2}{
c}{
AST-level} &
\multicolumn{
2}{
c}{
KG-level} & \multicolumn{
2}{
c}{
} \\
\cline{
2-11}
& $F_1$ & Acc & $F_1$ & Acc & $F_1$ & Acc & $F_1$ & Acc & $F_1$ & Acc \\\hline
LR & 0.8727 & 0.8629 & 0.8496 & 0.8528 & 0.8661 & 0.8700 & 0.8646 & 0.8559 & 0.8895 & 0.8857 \\
RF & 0.8723 & \textbf{
0.8676} & \textbf{
0.8610} & \textbf{
0.8567} & \textbf{
0.8807} & \textbf{
0.8786} & 0.8723 & 0.8676 & \textbf{
0.9017} & \textbf{
0.8943} \\
SVM & 0.8764 & 0.8661 & 0.8527 & 0.8519 & 0.8755 & 0.8786 & \textbf{
0.8771} & 0.8676 & 0.8934 & 0.8912 \\
KNN & 0.8706 & 0.8669 & 0.8554 & 0.8536 & 0.8644 & 0.8637 & 0.8741 & \textbf{
0.8715} & 0.8804 & 0.8771 \\\hline
CNN & 0.9002 & 0.8974 & 0.8826 & 0.8808 & 0.9019 & 0.8998 & 0.9025 & 0.8998 & 0.9153 & 0.9115 \\
TextCNN & 0.9049 & 0.9013 & 0.9012 & 0.8966 & 0.9083 & 0.9076 & 0.9036 & 0.9005 & 0.9186 & 0.9178 \\
BiLSTM & 0.9076 & 0.9069 & 0.9037 & 0.9036 & 0.9126 & 0.9107 & 0.9054 & 0.9025 & 0.9226 & 0.9209 \\
BiGRU & 0.9041 & 0.9021 & 0.8989 & 0.8966 & 0.9092 & 0.9045 & 0.9046 & 0.9013 & 0.9205 & 0.9201 \\
Transformer & 0.9123 & 0.9107 & 0.9053 & 0.9029 & 0.9116 & 0.9092 & 0.9121 & 0.9115 & 0.9224 & 0.9178 \\
CNN-BiLSTM+ATT & \textbf{
0.9142} & \textbf{
0.9123} & \textbf{
0.9081} & \textbf{
0.9076} & \textbf{
0.9144} & \textbf{
0.9139} & \textbf{
0.9139} & \textbf{
0.9123} & \textbf{
0.9262} & \textbf{
0.9209} \\\hline
\textbf{
Our Method} & \textbf{
0.9236} & \textbf{
0.9225} & \textbf{
0.9170} & \textbf{
0.9169} & \textbf{
0.9248} & \textbf{
0.9233} & \textbf{
0.9204} & \textbf{
0.9201} & \textbf{
0.9374} &\textbf{
0.9358} \\\hline
\end{
tabular}}
\label{
tab5}
\end{
table*}
The running results are shown in the figure below:
How to deal with table out-of-bounds:
Solve automatic line wrapping
To use taularx to solve related problems, refer to the following blog.
Normal display will go out of bounds, as shown in the figure below:
\begin{
table*}[h]
\centering
\begin{
tabular}{
cc} \hline
Use Case Navn: & Opret Server \\\hline
Scenarie: & At oprette en server med bestemte regler som tillader folk at spille sammen.
The nonlinear companding function introduce some nonlinear distortion to original OFDM signal,
which can be eliminated theoretically by the decompanding function. \\\hline
\end{
tabular}
\label{
tab5}
\end{
table*}
The running results are shown in the figure below, which is obviously out of bounds.
Import package:
\usepackage{
tabularx}
code show as below:
\begin{
table*}[h]
\centering
\begin{
tabularx}{
\textwidth}{
p{
4cm} X} \hline
Use Case Navn: & Opret Server \\\hline
Scenarie: & At oprette en server med bestemte regler som tillader folk at spille sammen.
The nonlinear companding function introduce some nonlinear distortion to original OFDM signal,
which can be eliminated theoretically by the decompanding function. \\\hline
\end{
tabularx}
\label{
tab5}
\end{
table*}
The running results are shown in the figure below:
official
Math mode in LaTeX comes in two forms: inline and display. The former refers to inserting mathematical formulas between lines in the text, while the latter is arranged independently, with or without numbering.
- Inline formula (inline): Use $...$ to enclose the formula for typesetting. You can also use parentheses and \begin{math} for typesetting.
- Interline formula (displayed): Use $ $...$ $ to enclose the formula in an unnumbered form, and there is also an unnumbered independent formula form of \ [ ... \ ] , inter-block elements are displayed centered by default.
- Use the ^ symbol for superscripts and the _ symbol for the following tables.
- Common mathematical functions include \log, \sin, \cos, \arcsin, \arccos, \ln, \sqrt, etc.
- It is recommended to use \frac{3}{4} for fractions to represent 3/4.
- If you need to automatically number the formula, you need to format it in the equation environment and call \ref for direct reference.
- Editing table of various Greek letters, common symbols are shown in the figure below.
If you are writing scientific documents containing many complex formulas, the amsmath package introduces several new commands that are more powerful and flexible than those provided by basic LaTeX.
- \usepackage {amsmath}
- \usepackage {mathtools}
Teacher Stone_Stan4d’s article "Latex formula input" summarizes common symbols, as shown in the following figure:
Then give some examples:
(1) Matrix formula:
\begin{
equation}
\begin{
aligned}
V^{
(token)}=
\begin{
bmatrix}
v_{
11} & v_{
12} & \cdots & v_{
1m} \\
v_{
21} & v_{
22} & \cdots & v_{
2m} \\
\vdots & \vdots & \ddots & \vdots \\
v_{
n1} & v_{
n2} & \cdots & v_{
nm} \\
\end{
bmatrix}
\end{
aligned}
\label{
eq1}
\end{
equation}
The display is as shown below:
(2) Piecewise function formula:
\begin{
equation}
\begin{
aligned}
TokenPairs[j][k] =
\begin{
cases}
v_{
jk} + 1 & \exists <f_j,f_k> \\
v_{
jk} + 0 & other \\
\end{
cases}.
\end{
aligned}\label{
eq2}
\end{
equation}
The display is as shown below:
(3) Fractional function:
\begin{
equation}
\begin{
aligned}
Attention(\textbf{
Q},\textbf{
K},\textbf{
V}) = softmax \left( \frac{
\textbf{
Q}\textbf{
K}^T}{
\sqrt{
d_k}} \right) \textbf{
V}.
\end{
aligned}\label{
eq5}
\end{
equation}
The display is as shown below:
(4) Accuracy formula:
\begin{
equation}
\begin{
aligned}
Accuracy = \sum_{
i=1}^N Accuracy_i \times w_i .
\end{
aligned}\label{
eq15}
\end{
equation}
The display is as shown below:
It should be noted that unlike charts using "\ref{tab1}" references, formulas use "\eqref{eq1}" references. The difference is whether it is displayed with parentheses.
Detailed formula usage articles are recommended as follows:
special symbols
circle numbers
It is normally recommended to use the pifont macro package.
- https://zhuanlan.zhihu.com/p/615066252
- https://milde.users.sourceforge.net/LUCR/Math/mathpackages/amssymb-symbols.pdf
\usepackage{
pifont}
\ding{
184}
The various styles are as follows:
\ding{
182}\ding{
183}\ding{
184}\ding{
185}\ding{
186}\ding{
187}\ding{
188}\ding{
189}\ding{
190}\ding{
191}\\
\ding{
192}\ding{
193}\ding{
194}\ding{
195}\ding{
196}\ding{
197}\ding{
198}\ding{
199}\ding{
200}\ding{
201}\\
\ding{
202}\ding{
203}\ding{
204}\ding{
205}\ding{
206}\ding{
207}\ding{
208}\ding{
209}\ding{
210}\ding{
211}\\
The display effect is as shown below:
Then, sometimes the publisher's template cannot reference the pifont macro package, so use the following:
$\textcircled{
3}$
But when the number is large, the numbers will run outside the circle.
The solution is as follows:
\normalsize{
\textcircled{
\scriptsize{
3}}}\normalsize\enspace
semicircle
Import reference packages and code:
\usepackage{
tikz}
\newcommand*\emptycirc[1][1ex]{
\tikz\draw (0,0) circle (#1);}
\newcommand*\halfcirc[1][1ex]{
%
\begin{
tikzpicture}
\draw[fill] (0,0)-- (90:#1) arc (90:270:#1) -- cycle ;
\draw (0,0) circle (#1);
\end{
tikzpicture}}
\newcommand*\fullcirc[1][1ex]{
\tikz\fill (0,0) circle (#1);}
Use as follows:
\fullcirc
\halfcirc
\emptycirc
References: https://blog.csdn.net/weixin_43846270/article/details/108202031
hook
Import reference packages and code:
\usepackage{
pifont} % \ding{
xx}
\usepackage{
bbding} % \Checkmark,\XSolid,... (需要和pifont宏包共同使用)
Use as follows:
\checkmark
\Checkmark
\CheckmarkBold
\XSolid
\XSolidBold
\XSolidBrush
For other reference symbols, please refer to Teacher Xovee’s article. For details, see the references.
references:
- https://blog.csdn.net/hyk_1996/article/details/124486173
- https://blog.csdn.net/xovee/article/details/122179352
card
The reference code is as follows:
$\clubsuit$
$\spadesuit$
$\heartsuit$
$\diamondsuit$
Other common symbols are recommended on the following blogs.
- https://blog.csdn.net/ying_xu/article/details/51240291
- https://blog.csdn.net/YEN_CSDN/article/details/79966985
references
LaTeX inserts references with or without BibTex.
\begin{thebibliography}{99}
\bibitem{ref1}Zheng L, Wang S, Tian L, et al., Query-adaptive late fusion for image search and person re-identification, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015: 1741-1750.
\bibitem{ref2}Arandjelović R, Zisserman A, Three things everyone should know to improve object retrieval, Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on, IEEE, 2012: 2911-2918.
\bibitem{ref3}Lowe D G. Distinctive image features from scale-invariant keypoints, International journal of computer vision, 2004, 60(2): 91-110.
\bibitem{ref4}Philbin J, Chum O, Isard M, et al. Lost in quantization: Improving particular object retrieval in large scale image databases, Computer Vision and Pattern Recognition, 2008. CVPR 2008, IEEE Conference on, IEEE, 2008: 1-8.
\end{thebibliography}
Five references are listed above. The option 99 of {thebibliography} refers to the maximum number of references being 99, which can be set to other numbers. The methods for citing references in the text are: \cite{ref1}, \cite{ref1, ref5}.
BibTeX is a format and a program designed to coordinate reference processing with LaTeX.
In Texlive, there are generally two formats for citing references.
(1) The first way is to write directly in the main.tex file, in the form of thebibliography.
\begin{
thebibliography}{
49}
\bibitem{
b1} Microsoft, ``What is PowerShell? - PowerShell | Microsoft Docs,''
Website: https://docs.microsoft.com/en-us/powershell/scripting/overview, 2022.
\bibitem{
b2} D. Hendler, S. Kels, et al., ``AMSI-Based Detection of Malicious PowerShell
Code Using Contextual Embeddings,'' in 15th ACM Asia Conference on Computer and
Communications Security (AsiaCCS). ACM, 2020, pp. 679-693.
\bibitem{
b49} M. Ring, D. Schlor, et al., ``Malware detection on windows audit logs using
LSTMs,'' Computers \& Security, vol.109, 2021, p. 102389.
\end{
thebibliography}
(2) The second way is to write the reference in myref.bib and add it in the form of \bibliography{myref}.
@misc{
b1,
title = {
What is PowerShell? - PowerShell | Microsoft Docs},
url = {
https://docs.microsoft.com/en-us/powershell/scripting/overview},
author = {
Microsoft},
year = {
2022}
}
@inproceedings{
b2,
title={
Amsi-based detection of malicious powershell code using contextual embeddings},
author={
Hendler, Danny and Kels, Shay and Rubin, Amir},
booktitle={
Proceedings of the 15th ACM Asia Conference on Computer and Communications Security (AsiaCCS)},
pages={
679--693},
year={
2020},
organization = {
ACM}
}
@article{
b49,
title={
Malware detection on windows audit logs using LSTMs},
author={
Ring, Markus and Schl{
\"o}r, Daniel and Wunderlich, Sarah and Landes, Dieter and Hotho, Andreas},
journal={
Computers \& Security},
volume={
109},
pages={
102389},
year={
2021},
publisher={
Elsevier}
}
References in BIB format can be downloaded through Google Scholar. Similarly, ChatGPT can modify the corresponding format, such as Baidu's Wen Xinyiyan. Recommended reference format:
- https://www.jianshu.com/p/f335e75487cb
The display is as shown below:
serial number
(1) Unordered sequence
\begin{itemize}
\item Every sentence should make sense.
\item There is a lot to be said.
\item Eschew the highfalutin.
\end{itemize}
(2) Ordered sequence
\begin{enumerate}
\item Every sentence should make sense.
\item There is a lot to be said.
\item Eschew the highfalutin.
\end{enumerate}
(3) Custom sequence
\begin{description}
\item[Rule 1.] Every sentence should make sense.
\item[Rule 2.] There is a lot to be said.
\item[Rule 3.] Eschew the highfalutin.
\end{description}
Sequences can also be nested, as shown below:
Summarize
I am writing this, I hope this article is helpful to you, and I will continue to update the content in the future.
The moon is the brightness of my hometown. Happy birthday to our great motherland. I have seen mountains and rivers from various places, and the clearest one is the Shanmu River in Shibing, my hometown. I have eaten many sour soups, and the most authentic one is the red and white sour soup in my hometown of Southeast Guizhou. It’s rare to go back to my hometown these two days and see the development and changes in my hometown; I saw my study notes for the past few years; I saw the certificates and certificates from elementary and middle schools. What is memorable is the first place in the county’s high school entrance examination and the two national physics certificates. and won prizes in mathematics competitions; I saw various literature books that my father had packed for me, as well as calligraphy and paintings handwritten by my father in 1990, which were engraved on my desk and chair (Figure 3). Father’s love and mother’s love are great.
Looking back, life is like the continuous green mountains and green waters of Guizhou, always ups and downs. From elementary school to junior high school, it is a rising period; then to high school, it plummets; to the beginning of university, there are ups and downs. ; After graduating with a master's degree, my career as a teacher declined slowly; after I was seconded under the National Development and Reform Commission, I briefly rebounded; while studying for a Ph.D., I had ups and downs, and now it has plummeted again. However, the mountains in our hometown can always help us develop a simple character, just like the goddess always laughs at me for carrying a computer wherever I go. When I am with you, I still have to type codes and see this ordinary world. Keep your feet on the ground, unite your knowledge and action, laugh when you see things, I love you! Happy Double Holidays to everyone.
(By:Eastmount 2023-10-06 Night in Southeast Guizhouhttp://blog.csdn.net/eastmount/ )< /span>