Latex2:文本编辑篇

Latex写作2:文本编辑篇

导言区

在自己需要的自定义包之前都是IEEE Template模板自带的包,由于我们只需要使用就不介绍每个包做什么用的,只需要知道我们想要什么功能的时候去搜索相关的代码,然后需要某个包就去导入哪个包。

标题、作者和致谢区

共有三个代码,分别是\title,\author,\thanks

每个代码后面接{+内容}

注意latex代码间的空白行代表着下一个需另起一段,如上述的段落

This article has supplementary downloadable material available at http://ieeexplore.ieee.org, provided by the authors.与段落Color versions of one or more of the figures in this article are available online at http://ieeexplore.ieee.org.是两个不同的段落,其代码如下所示:

1
2
3
4
5
\thanks{
This article has supplementary downloadable material available at http://ieeexplore.ieee.org, provided by the authors.

Color versions of one or more of the figures in this article are available online at http://ieeexplore.ieee.org.
}}

接下来的Abstractkeywords在其代码区进行内容编辑即可。

正文区

首单词

在IEEE格式下,一个Introduction的首字母一般独有特色,需要特殊标出,如:

用latex代码:\IEEEPARstart{B}{ipedal}表示

百分比符号

我遇到的写作需要用到%符号,但是直接写这个符号在latex代码中表示注释,跟MATLAB一样。怎么去表示如50%?使用转移符表示即可,如50\%即可显示。

文献引用

主要在Introduction部分会进行大量参考文献的引用,这时候使用\cite{your lable}即可进行引用:

1
\cite{ref3} %引用参考文献3

编译运行后

枚举

如你想在Introduction进行枚举你接下来的文章内容分布,实例如下:

1
2
3
4
5
6
7
\begin{enumerate}{}{}
\item{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.}

\item{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.}

\item{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.}
\end{enumerate}

则会生成3个枚举对象,如下所示:

与正文会有一定的悬挂值,保持默认即可

粗体

如对段落(4) Capabilities of power generation and output.想进行加粗处理,查询后代码为:

1
\textbf{(4) Capabilities of power generation and output.}

但是发现还是无法进行文本的加粗,这时候再查询缺少的包,在导言区加入:

1
\usepackage[T1]{fontenc} % 保证英文字体加粗有效

即可进行文本的加粗处理,结果如下所示:

文本内公式

使用$equaion in text $即可进行文本内的公式进行编辑,如:

1
knee joint motion ($30^\circ\leq \theta \leq 180^\circ$).

编译后如下图所示: