是否有办法在 refcontext 中省略 biblatex 书目中的字段,以便按如下方式使用它:
\usepackage[sorting=nty]{biblatex}
\DeclareRefcontext{testrc}{sorting=nyt}
\begin{document}
\begin{refcontext}{testrc}
...
\end{refcontext}
\begin{refcontext}[***omit-field***=note]{testrc}
... [cite references omitting the note field]
\end{refcontext}
\end{document}
答案1
这比 per-refsection 更灵活一些 - 通过更改布尔值,您可以随时省略任何字段。Per-refsection 如下所示:
\documentclass{article}
\usepackage[sorting=nyt]{biblatex}
\begin{filecontents}[force]{\jobname.bib}
@BOOK{test1,
AUTHOR = {R. Author},
TITLE = {Title},
DATE = {2015},
NOTE = {NOTE}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\newbool{nonote}
\AtEveryBibitem{\ifbool{nonote}{\clearfield{note}}}
\begin{document}
\begin{refcontext}
\cite{test1}
\printbibliography
\end{refcontext}
\begin{refcontext}
\booltrue{nonote}
\cite{test1}
\printbibliography
\end{refcontext}
\end{document}