引用文献中的引文

引用文献中的引文

是否可以从外部引用引用节中的引文?我所说的外部不是“另一个引用节内部”,而是“无引用节内部”。

在以下 MWE 中,ArticleA 的标签已正确打印,但链接并未指向 SectionB 中的参考文献列表。

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{MWE.bib}
@article{articleA,
author = {Clark Kent},
title  = {On why superman is stronger than batman},
journal = {The daily planet},
year   = {2016},
}
@article{articleB,
author = {Bruce Wayne},
title  = {On why batman is stronger than superman},
journal = {Wayne Enterprises journal},
year   = {2016},
keywords = {blablabla},
}
\end{filecontents}
\usepackage[backend=biber,style=alphabetic]{biblatex}
\addbibresource{MWE.bib}
\usepackage[colorlinks]{hyperref}
\hypersetup{urlcolor=blue, citecolor=blue, linkcolor=blue}

\begin{document}

\section{Section Title A}
This is outside any refsection.
Here's a normal reference: \cite{articleB}. 
Here's a reference that's only listed inside a refsection: \cite{articleA}
\printbibliography[keyword=blablabla]

\newpage
\begin{refsection}
\section{Section Title B}
\cite{articleA}, \cite{articleB}
\printbibliography
\end{refsection}

\end{document}

答案1

您可能想使用refsegments而不是refsections。由于后者将所有内容都保存在本地,因此无法从外部访问它。但是,refsegments 的内容可以从外部轻松访问。

你需要记住的是,它\printbibliography不会自动限制在当前范围内refsegment,你必须手动使用

\printbibliography[segment=\therefsegment]

还要注意,消歧义特征应用于refsegments,而refsections 保持消歧义局部化。

平均能量损失

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{articleA,
author = {Clark Kent},
title  = {On why superman is stronger than batman},
journal = {The daily planet},
year   = {2016},
}
@article{articleB,
author = {Bruce Wayne},
title  = {On why batman is stronger than superman},
journal = {Wayne Enterprises journal},
year   = {2016},
keywords = {blablabla},
}
\end{filecontents}
\usepackage[backend=biber,style=alphabetic]{biblatex}
\addbibresource{\jobname.bib}
\usepackage[colorlinks]{hyperref}
\hypersetup{urlcolor=blue, citecolor=blue, linkcolor=blue}

\begin{document}

\section{Section Title A}
This is outside any refsection.
Here's a normal reference: \cite{articleB}. 
Here's a reference that's only listed inside a refsection: \cite{articleA}
\printbibliography[segment=\therefsegment,keyword=blablabla]

\newpage
\begin{refsegment}
\section{Section Title B}
\cite{articleA}, \cite{articleB}
\printbibliography[segment=\therefsegment]
\end{refsegment}

\end{document}

相关内容