文章目录
- 背景
- 原因
- 解决方案
背景
问题如下,1.有一个下划线标注所发表的期刊或者会议2.不是斜体的。
上面这样肯定是不对的,那为什么会出现这种情况呢?
原因
I think I know of no style that applies underlining to titles in the bibliography. Many styles use italics, which in LaTeX can be implemented with \emph
. If you load the package ulem
, \emph
will produce underlining instead of italics.
This is what happened here. If you download the source code from https://arxiv.org/format/1912.12033 (or more specifically https://arxiv.org/e-print/1912.12033) and rename the downloaded file to 1912.12033.tar.gz, you will find that the paper uses the bibliography style
\bibliographystyle{IEEEtran}
which uses \emph
and would usually give italic titles. The file also loads
\usepackage{ulem}
in the preamble so that \emph
produces underlining.
This is very likely not what the IEEE wants on submission, so I suggest you do not load ulem
and do not try to emulate the output from that paper.
翻译一下就是:正常情况下,引用的期刊或者会议都是斜体的,而不是像之前那样有一个下划线。出现下划线的原因就在于导入了奇怪的包 ulem
,斜体命令此时会变成下划线命令。
至于说我为什么要导入这个包,其实是因为我要用那个删除线:
删除线的命令是\sout
,需要导入包 ulem
。
解决方案
1.使用删除线,好像并不是只有\sout
这一种方法。我们可以使用其他命令,这样就不用导入 ulem
包了。
2.对ulem
包加上一个选项normalem
,这可以使得你可以继续使用\sout
命令,且\emph{}
仍为斜体,那么引用格式就不会异常了。
\usepackage[normalem]{ulem} % normalem选项使\emph{}仍为斜体
如下: