我对 LaTeX 还很陌生,我正在尝试设置我的引文和参考书目格式。我剩下的唯一问题是,当我使用apacite
参考书目样式时,我的卷/期会以斜体显示。我该如何更改它,使其不再以斜体显示?
我的文字如下(我现在只是在尝试):
\documentclass[12pt,a4paper]{thesis}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{apacite}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[round]{natbib}
\author{Kristian Jensen}
\title{Bibliography in \LaTeX}
\begin{document}
\renewcommand{\BBAA}{and}
\renewcommand{\BBAB}{and}
\renewcommand{\BAnd}{and}
We are now going to try out how this works by doing a citation.
Here it is: \citep{Pressair}.
That's it for now.
\bibliographystyle{apacite}
\bibliography{mybib}
\end{document}
来自我的mybib.bib
档案:
@Article{Pressair,
author = {Press, F., and Ewing, M.},
title = {Theory of aircoupled flexural waves},
journal = {Journal of Applied Physics},
volume = {22},
number = {7},
year = {1951},
pages = {892-899},
}
现在,在我的参考列表中,除了卷/期显示为22(7)而我希望它是 22(7)(不是斜体)。如果有人能帮助我解决这个问题,我将不胜感激!
答案1
该包包含一个 LaTeX 宏,用于确定 类型条目的、、和字段的apacite
默认格式。此宏称为,其默认定义可以在第 1275 行左右找到。journal
volume
number
pages
@article
\APACjournalVolNumPages
apacite.sty
要修改此宏,我建议加载etoolbox
包并使用该包的\patchcmd
宏。具体来说,在加载包后,您应该在序言中插入以下代码行apacite
:
\usepackage{etoolbox}
\makeatletter
\patchcmd{\APACjournalVolNumPages}%
{\unskip, \Bem{#2}}%
{\unskip, #2}{}{}
\makeatother
宏\Bem
是 的别名\emph
。基本上,宏的修改\APACjournalVolNumPages
在于删除第二个参数(字段的内容)的斜体强调volume
。
完整的 MWE:
\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@Article{Pressair,
author = {Press, F. and Ewing, M.},
title = {Theory of aircoupled flexural waves},
journal = {Journal of Applied Physics},
volume = {22},
number = {7},
year = {1951},
pages = {892--899},
}
\end{filecontents}
\documentclass[12pt,a4paper]{article}
\usepackage[margin=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage[natbibapa]{apacite} % load "apacite" with option "natbibapa"
\bibliographystyle{apacite} % specify the bibliography style
\usepackage{etoolbox}
\makeatletter
\patchcmd{\APACjournalVolNumPages}%
{\unskip, \Bem{#2}}%
{\unskip, #2}{}{}
\makeatother
\AtBeginDocument{%
\renewcommand{\BBAA}{and}
\renewcommand{\BBAB}{and}
\renewcommand{\BAnd}{and}}
\begin{document}
\citep{Pressair}
\bibliography{mybib}
\end{document}