我试图改变biblatex
文章使用的参考书目样式(它打印了太多东西,不符合我的口味)。但不知何故,我在列表中的数字前得到了一个非常奇怪的点。我做错了什么,我该如何修复它?有关详细信息,请参阅 MWE 和输出。
\documentclass{article}
\usepackage[sorting=ydnt,backend=biber,maxnames=10,defernumbers,date=year]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{file.bib}
@Article{Ferdinandy2015,
Title = {HIV competition dynamics over sexual networks: first comer advantage conserves founder effects.},
Author = {Ferdinandy, Bence and Mones, Enys and Vicsek, Tam{\'{a}}s and M{\"{u}}ller, Viktor},
Journal = {PLoS Comput Biol},
Year = {2015}
}
@article{Ferdinandy20121207,
title = "Landing together: How flocks arrive at a coherent action in time and space in the presence of perturbations ",
journal = "Physica A: Statistical Mechanics and its Applications ",
volume = "391",
number = "4",
pages = "1207 - 1215",
year = "2012"
}
@article{1,
title = "Landing together: How flocks arrive at a coherent action in time and space in the presence of perturbations ",
journal = "Physica A: Statistical Mechanics and its Applications ",
volume = "391",
number = "4",
pages = "1207 - 1215",
year = "2011"
}
\end{filecontents}
\addbibresource{file.bib} % Specify the bibliography file to include publications
\DeclareBibliographyDriver{article}{%
\printnames{author}\setunit{\space}%
\printfield{title}\setunit{\space}%
\usebibmacro{journal+issuetitle}%
\par\vspace{0.3\baselineskip}
}
\begin{document}
\section{publications}
\nocite{*}
\defbibheading{empty}{}
\subsection{papers}
\printbibliography[heading=empty, type=article, resetnumbers=true]
\end{document}
答案1
正确结束条目非常重要。biblatex
提供宏就是finentry
为了这个目的。
可以使用 设置条目之间的垂直间距\bibitemsep
。
\documentclass{article}
\usepackage{biblatex}
\begin{filecontents}{\jobname.bib}
@Article{Ferdinandy2015,
Title = {HIV competition dynamics over sexual networks: first comer advantage conserves founder effects.},
Author = {Ferdinandy, Bence and Mones, Enys and Vicsek, Tam{\'{a}}s and M{\"{u}}ller, Viktor},
Journal = {PLoS Comput Biol},
Year = {2015}
}
@article{Ferdinandy20121207,
title = "Landing together: How flocks arrive at a coherent action in time and space in the presence of perturbations ",
journal = "Physica A: Statistical Mechanics and its Applications ",
volume = "391",
number = "4",
pages = "1207 - 1215",
year = "2012"
}
@article{1,
title = "Landing together: How flocks arrive at a coherent action in time and space in the presence of perturbations ",
journal = "Physica A: Statistical Mechanics and its Applications ",
volume = "391",
number = "4",
pages = "1207 - 1215",
year = "2011"
}
\end{filecontents}
\addbibresource{\jobname.bib} % Specify the bibliography file to include publications
\DeclareBibliographyDriver{article}{%
\printnames{author}\setunit{\space}%
\printfield{title}\setunit{\space}%
\usebibmacro{journal+issuetitle}%
\usebibmacro{finentry}%
}
\renewcommand{\bibitemsep}{2\baselineskip}
\begin{document}
\nocite{*}
\printbibliography
\end{document}