
私は使い始めた dfgproposal クラスと dfgreporting クラスに出会いました。このクラスでは、コマンド \dfgprojpapers が定義されています。私が理解している限りでは、これは、提供されたキーのリストに従って、ドキュメント内に参照の小さなリストを生成することになっています。しかし、このコマンドは 1 回しか使用できないようです。そのように 2 つの別々のリストを取得するには、何をする必要がありますか?
答え1
\dfgprojpapers
コマンドをコピーして 2 つの異なるバージョンを作成することで、これを実現できました。 (\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
注目の出版物の最初のリストと 2 番目のリストをどこでも表示できます。
非注目参考文献を生成するコマンドを変更する必要があることに注意してください。
\printbibliography[
heading = empty,
notcategory = featureda,
notcategory = featuredb,
]