
我開始使用 dfgproposal 和 dfgreporting 類別。在此類中定義了命令 \dfgprojpapers。據我了解,它應該根據提供的密鑰列表在文件內產生一個小的引用列表。不過這個指令好像只能用一次?我需要做什麼才能以這種方式獲得兩個單獨的清單?
答案1
\dfgprojpapers
我設法透過複製命令並創建兩個不同的版本來做到這一點。 (\dfgprojpapers
在 中定義,但它基本上只是fromdfgproposal.cls
的別名。)\prop@paperlist
proposal.cls
\makeatletter
\DeclareBibliographyCategory{featureda}
\newcommand\dfgprojpapersa[2][]{%
\let\biboldfont\bibfont%
\renewcommand{\bibfont}{\footnotesize}%
\renewcommand{\baselinestretch}{.9}%
\nocite{#2}\def\do##1{\addtocategory{featureda}{##1}}\docsvlist{#2}%
\setkeys{paperlist}{#1}
\@ifundefined{prop@rl}{}{\@latex@warning{some papers are not classified!}}
\if@allpapers\printbibliography[category=featureda,heading=empty]\fi%
\let\bibfont\biboldfont}
\DeclareBibliographyCategory{featuredb}
\newcommand\dfgprojpapersb[2][]{%
\let\biboldfont\bibfont%
\renewcommand{\bibfont}{\footnotesize}%
\renewcommand{\baselinestretch}{.9}%
\nocite{#2}\def\do##1{\addtocategory{featuredb}{##1}}\docsvlist{#2}%
\setkeys{paperlist}{#1}
\@ifundefined{prop@rl}{}{\@latex@warning{some papers are not classified!}}
\if@allpapers\printbibliography[category=featuredb,heading=empty]\fi%
\let\bibfont\biboldfont}
\makeatother
有了這個,您可以使用命令\dfgprojpapersa
,\dfgprojpapersb
無論您想要什麼,您都可以分別獲得第一個和第二個特色出版物清單。
請記住,您必須修改用於產生非特色參考書目的命令:
\printbibliography[
heading = empty,
notcategory = featureda,
notcategory = featuredb,
]