参考书目样式 - 将下划线更改为斜体(Latex)

Ste*_*ffi 3 latex bibliography

我正在努力使用乳胶参考书目样式。

使用预定义

\bibliographystyle{plain}
Run Code Online (Sandbox Code Playgroud)

风格我得到一个不错的结果:

在此处输入图片说明

添加以下包时:

\usepackage {ulem}
Run Code Online (Sandbox Code Playgroud)

我在参考书目中得到了这个结果:

在此处输入图片说明

如何去除期刊的下划线并使其变为斜体?

我试过:

\renewcommand{\uline}[1]{\textit{#1}}
Run Code Online (Sandbox Code Playgroud)

以及以下,取消定义 \uline

\renewcommand\uline[1]{}
Run Code Online (Sandbox Code Playgroud)

但是两者都在 bbl 文件中创建了很多“缺失}插入。\结束{thebibliography}”。有没有办法恢复 \usepackage 命令或恢复旧风格?

Nor*_*ray 7

One of the features of the ulem package is to redefine \emph so that it uses \uline, so (as is presumably already clear to you) that's why you're getting underline in the bibliography, where text was emphasised before.

The documentation for the ulem package notes that adding the [normalem] option when loading the ulem package means that \uline is defined but \emph isn't redefined. I don't know if that would be an acceptable solution for you – ie, do you in fact want \emph to be underlined throughout the rest of the document?

或者,如果您只想\emph返回参考书目的原始定义,您可以尝试ulem再次 docs)\normalem在加载参考书目之前给出命令。但是,参考书目的加载方式有时会出乎意料地难以调整其格式(正如您在尝试重新定义时发现的那样\uline)。

如果这些想法不能解决问题,请尝试发布“最小工作示例”。您最好查看或发布到TeX stackexchange