在 BibLaTeX 中將數字樣式與作者年份樣式結合

在 BibLaTeX 中將數字樣式與作者年份樣式結合

到目前為止,我還沒有太多經驗biblatex,因此我決定在文字中使用數字樣式進行引用。然而,參考書目的作者年份風格要好得多。我知道,我實際上無法將numericcitestyle 與authoryearbibstyle 結合。

這讓我想到了我的問題:如何在參考書目中使用數字 citestyle 和authoryear 格式?

答案1

你可以沿著路線從biblatex-biber:如何自訂參考書目中的順序?

致電citestyle=numeric(或您目前使用的家庭成員numeric) 和bibstyle=authoryear,然後匯入numeric.bbx以再次獲得正確的bibliography環境。

(預設情況下排序為sorting=nyt,如果您願意,sorting=none則需要明確排序。)

\documentclass{article}
\usepackage[
    backend=biber,
    %sorting=none,
    citestyle=numeric,
    bibstyle=authoryear,
]{biblatex}

\makeatletter
\input{numeric.bbx}
\makeatother

\addbibresource{biblatex-examples.bib}

\begin{document}
\cite{wilde,geer,worman}
\printbibliography
\end{document}

範例輸出

答案2

您可以將它們組合起來:

\documentclass{article}
 \usepackage[T1]{fontenc}
 \usepackage[utf8]{inputenc}
 \usepackage[citestyle=numeric,bibstyle=authoryear]{biblatex}
 \addbibresource{biblatex-examples.bib}
 \AtEveryBibitem{[\printfield{labelnumber}]\addspace}%Numbers in the bib
 \begin{document}

 \cite{herrmann}, \cite{doody}, 

 \printbibliography
 \end{document}

在此輸入影像描述

相關內容