当引用@online
来源时,我想给它加上前缀“互联网:”。
例如:
互联网:一些互联网资源 2017
有没有一种简单的方法可以实现这一点,而无需定义自定义命令?
答案1
请参阅以下 MWE:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{einstein,
author = {Albert Einstein},
title = {{Zur Elektrodynamik bewegter Körper}. ({German})
[{On} the electrodynamics of moving bodies]},
journal = {Annalen der Physik},
volume = {322},
number = {10},
pages = {891--921},
year = {1905},
DOI = {http://dx.doi.org/10.1002/andp.19053221004},
}
@online{ApoG,
Address = {03.08.2013},
Edition = {15.10.1980},
Publisher = {juris GmbH},
Title = {ApoG - Gesetz {\"u}ber das Apothekenwesen},
Url = {www.juris.de/purl/gesetze/_ges/ApoG},
Year = {1980},
}
\end{filecontents*}
\documentclass{article}
\usepackage[utf8]{inputenc} %
\usepackage[T1]{fontenc} %
\usepackage[
backend=biber, % bibtex % bibtex or biber (prefered)
style=numeric
]{biblatex}
\addbibresource{\jobname.bib} % calls bib file to create the bibliography
\begin{document}
We cite online document~\cite[Internet:][]{ApoG} or % <=================
Einstein~\cite[Internet:][page~893]{einstein}. % <======================
\printbibliography
\end{document}
该命令的\cite[prenote][postnote]{key}
结果取决于所使用的样式,例如[prenote 2, postnote]
。
MWE 的结果是: