我想将网站标题包含在我的参考书目中。在 bibtex 文件(由 Zotero 创建)中,网站标题存储为journal
。
\RequirePackage{filecontents}
\begin{filecontents*}{mybib.bib}
@book{test1,
address = {London},
url = {www.jstor.com/somearticle.html},
urldate = {2013-10-29},
title = {Cyberprotest: {New} media, citizens, and social movements},
publisher = {Routledge},
editor = {van de Donk, Wim B. H. J.},
year = {2004}
}
@misc{test2,
title = {This is the title of the webpage},
url = {www.blog.com},
urldate = {2013-08-29},
journal = {This is the title of the website},
month = feb,
year = {2009}
}
}
\end{filecontents*}
\documentclass[a4paper]{article}
% Set the values for the bibliography
\usepackage[
style=apa,
backend=biber,
isbn=false,
url=false,
doi=false,
eprint=false,
hyperref=true,
backref=false,
firstinits=false,
]{biblatex}
% Remove series & month
\AtEveryBibitem{
\clearfield{series}
\clearfield{labelmonth}
\clearfield{edition}
}
% Set language
\usepackage[british]{babel}
\DeclareLanguageMapping{british}{british-apa}
\addbibresource{mybib.bib}
\begin{document}
\cite{test1}
\cite{test2}
\printbibliography
\end{document}
产生
答案1
我们可以添加对该maintitle
领域的支持@online
并@misc
使用惊人的xpatch
包裹就像
\xpatchbibdriver{misc}
{\usebibmacro{title}}
{\usebibmacro{title}%
\newunit\newblock
\usebibmacro{maintitle}}
{}{}
\xpatchbibdriver{online}
{\usebibmacro{title}}
{\usebibmacro{title}%
\newunit\newblock
\usebibmacro{maintitle}}
{}{}
这将maintitle
在 之后添加title
。
不过,由于你希望引用 SEP,所以你最好遵循他们网站上的建议(参见“经典逻辑”的作者和引文信息例如):使用@incollection
。
@incollection{sep-set-theory,
author = {Jech, Thomas},
title = {Set Theory},
booktitle = {The Stanford Encyclopedia of Philosophy},
editor = {Edward N. Zalta},
url = {http://plato.stanford.edu/archives/win2011/entries/set-theory/},
urldate = {2014-04-23},
year = {2011},
edition = {Winter 2011},
}
平均能量损失
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@collection{cybeprotest,
editor = {van de Donk, Wim and Brian D. Loader and Paul G. Nixon and Dieter Rucht},
title = {Cyberprotest},
subtitle = {New Media, Citizens and Social Movements},
publisher = {Routledge},
address = {location},
date = {2004},
url = {www.jstor.com/somearticle.html},
urldate = {2013-10-29},
isbn = {978-0-415-29784-4},
}
@online{web,
title = {This is the title of the webpage},
maintitle = {This is the title of the website},
date = {2009-02},
url = {http://www.example.com},
urldate = {2013-08-29},
}
@incollection{sep-set-theory,
author = {Jech, Thomas},
title = {Set Theory},
booktitle = {The Stanford Encyclopedia of Philosophy},
editor = {Edward N. Zalta},
url = {http://plato.stanford.edu/archives/win2011/entries/set-theory/},
urldate = {2014-04-23},
year = {2011},
edition = {Winter 2011},
}
\end{filecontents*}
\documentclass[british]{article}
\usepackage[
style=apa,
backend=biber,
firstinits=false,
]{biblatex}
\AtEveryBibitem{
\clearfield{series}
\clearfield{labelmonth}
\clearfield{edition}
}
\usepackage{babel}
\usepackage{xpatch}
\DeclareLanguageMapping{british}{british-apa}
\usepackage[british]{hyperref}
\addbibresource{\jobname.bib}
\xpatchbibdriver{misc}
{\usebibmacro{title}}
{\usebibmacro{title}%
\newunit\newblock
\usebibmacro{maintitle}}
{}{}
\xpatchbibdriver{online}
{\usebibmacro{title}}
{\usebibmacro{title}%
\newunit\newblock
\usebibmacro{maintitle}}
{}{}
\begin{document}
\nocite{*}
\printbibliography
\end{document}