前缀引用 ID 未按预期工作

前缀引用 ID 未按预期工作

我正在尝试将我的参考书目与一般参考书目区分开来。我希望[MINE1] XXX我的参考书目和[1] YYY其他人参考书目是类似的。

到目前为止我有以下代码:

\documentclass[a4paper, 12pt]{report}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{csquotes}

\usepackage[margin=1.0in]{geometry}
\usepackage{graphicx}

\usepackage[autolang=other,style=numeric,defernumbers=true,sorting=ydnt,maxbibnames=100,backend=biber]{biblatex} 
\addbibresource{biblio.bib}

\begin{filecontents*}{biblio.bib}
@ARTICLE{Sun,
author={Yanhua Sun and Yick-Sing Ho and Lie Yu},
journal={IEEE Transactions on Magnetics},
title={Dynamic Stiffnesses of Active Magnetic Thrust Bearing Including Eddy-Current Effects},
year={2009},
month={Jan},
volume={45},
number={1},
keywords={mine},
}
@book{Moon,
  title={Field Theory Handbook},
  author={Moon, P. and Spencer, D.E.},
  year={1961},
  location={Berlin, Heidelberg},
  publisher={Springer}
}
\end{filecontents*}

\begin{document}

This is me~\cite{Sun}.

This is not me~\cite{Moon}.

My bibliography is:

\begin{refsection}

\nocite{*}

\printbibliography[keyword=mine,resetnumbers=true,prefixnumbers=MINE,heading=none]

\end{refsection}

Other guys bibliographies:

% others refs
\printbibliography[resetnumbers=true,notkeyword=mine,heading=none]

\end{document}

但它不能按预期工作,因为我的引用使用的是数字而不是前缀:

结果

任何想法 ?

答案1

您采用的方法存在的问题在于 arefsection是本地的,因此无法从 之外访问它的引用refsection,因此当您Sun在文档中引用时,您(至少biblatex)是Sun在“全局”参考书目中引用,而不是Sun在本地 中引用refsectionbiblatex还具有srefsegments的“更全局的版本” refsection,但我认为我们实际上并不需要那些。

只需让你的参考书目

\printbibliography[keyword=mine,prefixnumbers=MINE,heading=none]

而其他人的

\printbibliography[resetnumbers=true,notkeyword=mine,heading=none]

平均能量损失

\documentclass[british]{article}
\usepackage{filecontents}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=numeric,defernumbers=true,backend=biber]{biblatex} 
\begin{filecontents*}{\jobname.bib}
@ARTICLE{Sun,
author={Yanhua Sun and Yick-Sing Ho and Lie Yu},
journal={IEEE Transactions on Magnetics},
title={Dynamic Stiffnesses of Active Magnetic Thrust Bearing Including Eddy-Current Effects},
year={2009},
month={Jan},
volume={45},
number={1},
keywords={mine},
}
@ARTICLE{Sun2,
author={Yanhua Sun and Yick-Sing Ho and Lie Yu},
journal={Journal of Articles},
title={A Second Article by Yours Truly},
year={2010},
month={Feb},
volume={46},
number={2},
keywords={mine},
}
\end{filecontents*}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
This is me \cite{Sun} and \cite{Sun2}.
This is not me \cite{wilde,cicero}.

My bibliography is:
\printbibliography[keyword=mine,prefixnumbers=MINE,heading=none]

Other guys bibliographies:
\printbibliography[resetnumbers=true,notkeyword=mine,heading=none]
\end{document}

在此处输入图片描述

相关内容