兩個庫條目的反向引用順序

兩個庫條目的反向引用順序

我用一個簡單的例子來說明以下問題:如果我在文件中引用作者 T. Coven 的論文,結果是「Coven (2004b)」。如果我引用本文的附錄,結果就是「Coven (2004a)」。現在附錄出現的頻率比原始論文要少得多,因此我想顛倒順序(交換引文中的“a”和“b”)。這可能嗎?

我正在使用 Biblatex。這是上面範例的 bib 檔案(名為:lib.bib):

@article{co:2004,
author = {T. Coven},
title = {Title A},
journaltitle = {The X Journal},
date = {2004}
}
@article{coapp:2004,
author = {T. Coven},
title = {Appendix to Title A},
journaltitle = {The X Journal},
date = {2004}
}

微量元素:

\documentclass[a4paper, 12pt, headsepline, headings=small,]{scrreprt}
\usepackage[backend=bibtex8,
    style=authoryear-icomp,
    dashed=false,
    autocite=footnote,
    maxcitenames=3,
    mincitenames=1,
    maxbibnames=100,
    firstinits=true,
    sorting=nty
    ]{biblatex}
\bibliography{lib}

\begin{document}
\cite{co:2004} and \cite{coapp:2004}
\end{document}

答案1

好吧,您必須透過為 提供某種sort...欄位來手動調整排序biblatex,以便它知道如何對條目進行排序。

您使用一種authoryear樣式,但是一種nty排序(“姓名-標題-年份”排序),這看起來很奇怪。如果你想堅持下去,就去現場sorttitle做一些類似的事情

@article{coapp:2004,
  author = {T. Coven},
  title = {Appendix to Title A},
  journaltitle = {The X Journal},
  date = {2004},
  sorttitle = {Title A/Appendix},
}

微量元素

\documentclass[a4paper, 12pt, headsepline, headings=small,]{scrreprt}
\usepackage{filecontents}
\usepackage[backend=biber,
    style=authoryear-icomp,
    dashed=false,
    autocite=footnote,
    maxcitenames=3,
    mincitenames=1,
    maxbibnames=100,
    firstinits=true,
    sorting=nty,
    ]{biblatex}

\begin{filecontents*}{\jobname.bib}
@article{co:2004,
  author = {T. Coven},
  title = {Title A},
  journaltitle = {The X Journal},
  date = {2004},
}
@article{coapp:2004,
  author = {T. Coven},
  title = {Appendix to Title A},
  journaltitle = {The X Journal},
  date = {2004},
  sorttitle = {Title A/Appendix},
}
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}
  \nocite{co:2004,coapp:2004}
  \printbibliography
\end{document}

對於「作者年份」樣式,更自然的排序選擇是sorting=nyt「或甚至」sorting=nyvt(分別按「名稱-年份-標題」和「名稱-年份-卷-標題」排序)。在這種情況下你可以選擇

@article{co:2004,
  author = {T. Coven},
  title = {Title A},
  journaltitle = {The X Journal},
  date = {2004},
  sortyear = {2004-1},
}
@article{coapp:2004,
  author = {T. Coven},
  title = {Appendix to Title A},
  journaltitle = {The X Journal},
  date = {2004},
  sortyear = {2004-2},
}

或(再次感謝lockstep)

@article{co:2004,
  author = {T. Coven},
  title = {Title A},
  journaltitle = {The X Journal},
  date = {2004},
}
@article{coapp:2004,
  author = {T. Coven},
  title = {Appendix to Title A},
  journaltitle = {The X Journal},
  date = {2004},
  sortyear = {2004/1},
}

微量元素

\documentclass[a4paper, 12pt, headsepline, headings=small,]{scrreprt}
\usepackage{filecontents}
\usepackage[backend=biber,
    style=authoryear-icomp,
    dashed=false,
    autocite=footnote,
    maxcitenames=3,
    mincitenames=1,
    maxbibnames=100,
    firstinits=true,
    sorting=nyt,
    ]{biblatex}

\begin{filecontents*}{\jobname.bib}
@article{co:2004,
  author = {T. Coven},
  title = {Title A},
  journaltitle = {The X Journal},
  date = {2004-1},
}
@article{coapp:2004,
  author = {T. Coven},
  title = {Appendix to Title A},
  journaltitle = {The X Journal},
  date = {2004},
  sortyear = {2004-2},
}
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}
  \nocite{co:2004,coapp:2004}
  \printbibliography
\end{document}

兩種方法都會產生

在此輸入影像描述

答案2

使用sorttitle字段。biblatex詳細資訊請參閱手冊第 2.2.3 節。

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{co:2004,
author = {T. Coven},
title = {Title A},
journaltitle = {The X Journal},
date = {2004}
}
@article{coapp:2004,
author = {T. Coven},
title = {Appendix to Title A},
sorttitle = {Title A/Appendix},
journaltitle = {The X Journal},
date = {2004}
}
\end{filecontents}

\usepackage[backend=bibtex8,
    style=authoryear-icomp,
    dashed=false,
    sorting=nty
    ]{biblatex}

\addbibresource{\jobname.bib}

\begin{document}

\cite{co:2004} and \cite{coapp:2004}

\printbibliography

\end{document}

在此輸入影像描述

相關內容