
我對 Latex (TeXShop 4.25) 非常陌生,在我寫論文時,我的參考資料遇到了一些問題。我正在使用 biblatex
Biber,我需要如下參考:
作者。期刊;卷(數):頁數。
例如:
鮑德溫 I.、哈利奇克 R.、帕肖爾德 A.、馮達爾 CC。 y 加州普雷斯頓。 (2006)「植物與植物相互作用中的揮發性訊號:基因組學時代的『會說話的樹』」。科學; 311(5762):812-815。
我發現的最接近的樣式是authoryear,這是我寫的程式碼:
\documentclass{article}
\usepackage[backend=biber,
style=authoryear,
sorting=nyt,
sortlocale=de_DE,
natbib=true,
url=false,
doi=false,
isbn=false,
maxcitenames=2,
maxbibnames=9,
eprint=false]
{biblatex} ç
\addbibresource{References.bib}
\begin{document}
\cite{baldwin06}
\printbibliography
\end{document}
這就是程式印給我的內容:
Baldwin, IT、Halitschke R.、Anja P.、von Dahl CC 和 Preston CA (2006)。植物與植物互動中的揮發性訊號:基因組時代的會說話的樹。 812-815。
正如你可能注意到的,我想
- 刪除第一個逗號(“Baldwin,IT”),
- 將標題放在雙引號中,
- 在日記後面加分號,
- 列印體積後面括號內的數字,並
- 在頁面前顯示冒號。
有誰知道如何自訂此參考?
答案1
這是一個解決方案:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{References.bib}
@article{baldwin06,
Author = {Baldwin, I. and Halitschke, R. and Paschold, A. and von Dahl, C.C. and Preston, C.A.},
Journal = {Science},
Number = {5762},
Pages = {812--815},
Title = {Volatile signaling in plant–plant interactions:‘talking trees’ in the genomics era},
Volume = {311},
Year = {2006}}
\end{filecontents}
% Baldwin I., Halitschke R., Paschold A., von Dahl CC. y Preston CA. (2006) “Volatile signaling in plant–plant interactions:‘talking trees’ in the genomics era”. Science; 311(5762):812-815.
\usepackage[backend=biber,
style=authoryear,
sorting=nyt,
sortlocale=de_DE,
natbib=true,
url=false,
doi=false,
isbn=false,
maxcitenames=2,
maxbibnames=9,
eprint=false]
{biblatex}
\addbibresource{References.bib}
\usepackage{xpatch}
\xpatchbibdriver{article}{%
\usebibmacro{in:}}{}{}{}
\xpatchbibmacro{journal+issuetitle}{%
\setunit*{\addspace}}{%
\setunit*{\addsemicolon\addspace}}{}{}
\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{#1}}% number of a journal
\DeclareFieldFormat[article,periodical]{pages}{#1}
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
\setunit*{\space}%
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{eid}}
\renewbibmacro*{note+pages}{%
\printfield{note}%
\setunit{\addcolon\addspace}%
\printfield{pages}%
\newunit}
\begin{document}
\cite{baldwin06}
\printbibliography
\end{document}