我怎样才能用 biber/biblatex 仅引用顶层作品?
这个想法是有一个literature.bib
包含真实条目的例如
@Online{stack:tex,
title = {\tex},
url = {https://tex.stackexchange.com},
}
@Online{stack:tex:diaglines,
title = {math mode - Diagonal dots spanning multiple lines/columns of a matrix - TeX - LaTeX Stack Exchange},
url = {https://tex.stackexchange.com/questions/38833/diagonal-dots-spanning-multiple-lines-columns-of-a-matrix},
urldate = {2019-08-20},
crossref = stack:tex,
keywords = {tool, stack:tex},
}
并在生成参考书目时使用过滤器
\printbibliography[%
notkeyword={tool},
type=Online,
title={Online Quellen}
]
但我不确定如何在不从主条目中删除标签的情况下做到这一点。
这样做的原因是,例如,在线出版时可以选择完整的参考书目,而印刷版时可以选择精简版;另外,我更喜欢在文件中内嵌更多引文tex
,这样我就可以选择分享更多内容。(这与这)
编辑:添加MWEB
\documentclass{article}
\usepackage[style=authoryear-comp]{biblatex}
\addbibresource{\jobname.bib}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Online{stack:tex,
title = {\tex},
url = {https://tex.stackexchange.com},
}
@Online{stack:tex:diaglines,
title = {math mode - Diagonal dots spanning multiple lines/columns of a matrix - TeX - LaTeX Stack Exchange},
url = {https://tex.stackexchange.com/questions/38833/diagonal-dots-spanning-multiple-lines-columns-of-a-matrix},
urldate = {2019-08-20},
crossref = stack:tex,
keywords = {tool, stack:tex},
}
\end{filecontents}
\begin{document}
\nocite{stack:tex:diaglines}% technical citation should only be added to the biliography
\printbibliography[%
notkeyword={tool},
type=Online,
title={Online Quellen}
]
\end{document}
printbibliography
我可能需要调整或的限制\jobname.bib
,以便只stack:tex
在印刷的参考书目中进行引用。