biblatex phys 中的重複引用

biblatex phys 中的重複引用

我試圖找到一種方法來兩次引用相同的參考文獻,並在參考書目列表中使用不同的編號兩次。這是因為我需要在整個文件中增加數字,即使它們引用相同的參考文獻。

\usepackage[backend=biber, style=phys,sorting=none,autocite=superscript]{biblatex}
    \bibliography{Ref.bib}
\begin{document}
\chapter{Test Chapter}

\begin{refsection}[Ref.bib]
    This is a test to cite \autocite{ref1} and cite \autocite{ref2} and cite \autocite{ref1}.

    \printbibliography
\end{refsection}
\end{document}

這顯示為

這是對 cite1 和 cite2 和 cite1 的測試。

我想要

這是對 cite1、cite2 和 cite3 的測試。

參考書目中有三個不同的條目(1 和 3 顯示為完全相同)。

有人可以幫忙嗎?

Ref.bib的內容是

@article{ref1,
  title={REF1},
  journal={ournal REF1},
  pages={137--153},
  year={2015},
  publisher={Pub REF1}
}


@article{ref2,
  title={REF2},
  author={Author, Test2},
  }

我目前使用的解決方案使用腳註和尾註。這樣做的問題是,除了不斷收到警告之外,參考文獻的顯示效果不如使用參考書目時那麼好。如果有一種方法可以透過 \printbibliography 來實現這一點,那麼事情就會變得更加整潔。

\documentclass[12pt]{report}

\usepackage{endnotes,chngcntr}

%\usepackage[backend=biber, style=verbose-ibid,sorting=none,     autocite=footnote]{biblatex}
\usepackage[backend=biber]{biblatex-chicago}

\bibliography{Ref.bib}

\let\footnote=\endnote %For footnotes at the end 
\renewcommand{\notesname}{References}

\begin{document}

\chapter{Test Chapter}
\begin{refsection}[Ref.bib]

This is a test to cite \autocite{ref1} and cite \autocite{ref2} and cite   \autocite{ref1}.

\newpage
\theendnotes
%\printbibliography
\end{refsection}
\end{document}

這可以用 ref.bib 中的這兩個參考文獻來嘗試

@article{ref1,
title={REF1},
journal={ournal REF1},
pages={137--153},
year={2015},
publisher={Pub REF1}
}


@article{ref2,
title={REF2 when the title is very long to cover two lines the references are not displayed very nicely},
author={Author, Test2},
}

答案1

您可以將尾註與 footfullcite 一起使用。

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{lmodern}

\usepackage{endnotes}
\def\enotesize{\normalsize}
\renewcommand{\notesname}{\refname}

\usepackage{csquotes}
\usepackage[backend=biber, style=phys, sorting=none, notetype=endonly]{biblatex}
\bibliography{biblatex-examples.bib}

\DeclareAutoCiteCommand{endfull}[f]{\footfullcite}{\footfullcites}
\ExecuteBibliographyOptions{autocite=endfull}

\begin{document}
This is a test to cite \autocite{sigfridsson} and cite \autocite{worman} and cite \autocite{sigfridsson}.

\theendnotes
\printbibliography
\end{document}

範例輸出

\printbibliography只是為了比較輸出。


您也可以使用該enotez套件

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{lmodern}

\usepackage{enotez}
\setenotez{list-name = {\refname}}
\DeclareInstance{enotez-list}{plain}{paragraph}
{
  format = \normalfont\normalsize,
}

\usepackage{csquotes}
\usepackage[backend=biber, style=phys, sorting=none, notetype=endonly]{biblatex}
\bibliography{biblatex-examples.bib}

\DeclareAutoCiteCommand{endfull}[f]{\footfullcite}{\footfullcites}
\ExecuteBibliographyOptions{autocite=endfull}

\begin{document}

This is a test to cite \autocite{sigfridsson} and cite \autocite{worman} and cite \autocite{sigfridsson}.

\printendnotes
\printbibliography
\end{document}

相關內容