Latex作为写论文的神器,有着很广泛的应用,本节我将为大家分享Latex学习系列之粗体、斜体和下划线,希望大家少走弯路,写出更好,更优美的论文出来
1、引言
本文将介绍三种基本的文本格式工具:斜体、粗体和下划线。让我们从一个例子开始:
% 粗体
Some of the \textbf{greatest}
% 下划线
discoveries in \underline{science}
% 粗体+斜体
were made by \textbf{\textit{accident}}.
\it 和 \bf 命令也可以使得字体变成斜体和加粗,但是不推荐这样的命令,因为这样会改变之前的格式
2、斜体
在latex中,可以使用\textit 和 \empf 两个命令使字体变为斜体,下面介绍例子
Some of the greatest
discoveries in science
were made by \emph{accident}.
3、粗体
在latex中,可以使用\textbf命令对字体加粗,下面介绍例子
Some of the \textbf{greatest}
discoveries in science
were made by accident.
4、下划线
在latex中,可以使用\underline使得在文字下面加下划线,下面介绍例子
Some of the greatest
discoveries in \underline{science}
were made by accident.
参考