![如何使用 dcu.bst 哈佛引用样式摆脱参考文献列表中年份出现的括号?](https://linux22.com/image/394323/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20dcu.bst%20%E5%93%88%E4%BD%9B%E5%BC%95%E7%94%A8%E6%A0%B7%E5%BC%8F%E6%91%86%E8%84%B1%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE%E5%88%97%E8%A1%A8%E4%B8%AD%E5%B9%B4%E4%BB%BD%E5%87%BA%E7%8E%B0%E7%9A%84%E6%8B%AC%E5%8F%B7%EF%BC%9F.png)
我使用的\bibliographystyle{dcu}
是哈佛格式的引文,我想从文件中删除括号dcu.bst
。如何删除()
参考文献列表中出现的年份周围的括号?
我之所以问这个问题是因为我在源代码即文件中没有看到年份周围的括号dcu.bst
。
您可以在这里找到代码:http://tug.ctan.org/tex-archive/macros/latex/contrib/harvard/dcu.bst
提前感谢您的帮助。以下是我的代码:
\documentclass[12pt]{article}
\usepackage{amsmath,color}
\usepackage[comma, authoryear]{natbib}
\setcitestyle{aysep={}}
\bibliographystyle{dcu}
\usepackage{filecontents}
\begin{filecontents*}{final.bib}
@article{jan,
title={{A simulation toolkit }},
author={Donald Donald},
journal={Phys. Med. Biol.},
volume={\textcolor{blue}{xx}},
pages={\textcolor{blue}{101-110}},
year={2004},
publisher={IOP Publishing}
}
\end{filecontents*}
\begin{document}
\section{Intro}
Hello, this is a simple example of harvard style citation~\cite{jan}.
\bibliography{final}
\end{document}
- 我想删除引用中的括号,但不删除上下文中的括号,如简介部分所示。
- 还想去掉引用末尾出现的点。
答案1
书目样式dcu
是书目样式集的一部分natbib
。括号由文件设置,natbib
而不是由.bst
文件本身设置。
\begin{filecontents}{\jobname.bib}
@book{Chomsky1965,
Address = {Cambridge Mass.},
Author = {Noam Chomsky},
Publisher = {{MIT} Press},
Title = {Aspects of the Theory of Syntax},
Year = {1965}}
\end{filecontents}
\documentclass{article}
\usepackage{natbib}
\setcitestyle{open={},close={}}
\bibliographystyle{dcu}
\begin{document}
\citet{Chomsky1965}
\bibliography{\jobname}
\end{document}
答案2
@Alan,谢谢你的帮助。我现在明白我漏掉了 \setcitestyle{open={},close={}}。
另外,我想删除年份后面和引用末尾的点。我该怎么做?