自訂 biber 參考書目:編號前的點

自訂 biber 參考書目:編號前的點

我試著改變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

fbenceBiblatexFinentry

\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}

相關內容