
我想讓 biblatex 只列印參考書目中相關條目的標題。使用以下 MWE:
\documentclass{article}
\usepackage[backend=biber,style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{my.bib}
@Inproceedings{Frege1897a,
author = {Frege, Gottlob},
title = {Über die Begriffsschrift des Herrn Peano und meine eigene},
booktitle = {Berichte über die Verhandlungen der Königlich Sächsischen Gesellschaft der Wissenschaften zu Leipzig: Mathematisch-physische Klasse},
date = {1897},
pages = {361--378},
volume = {48},
related = {Frege1984h},
relatedstring = {English\addspace title},
shorthand = {PCN},
}
@Inbook{Frege1984h,
author = {Frege, Gottlob},
title = {On Mr. Peano's Conceptual Notation and My Own},
date = {1984},
pages = {234--248},
crossref = {Frege1984},
}
@Book{Frege1984,
author = {Frege, Gottlob},
title = {Collected Papers on Mathematics, Logic, and Philosophy},
date = {1984},
location = {Oxford},
publisher = {Blackwell},
translator = {Black, Max},
editor = {McGuinness, Brian},
shorthand = {CP},
}
\end{filecontents}
\addbibresource{my.bib}
\begin{document}
\cite{Frege1897a}.
\printbibliography
\end{document}
我明白了
我想要的就是「…我自己的」;即,省略“In:Gottlob Frege。數學、邏輯和哲學論文集。Ed. Brian McGuinness。Trans。Max Black。牛津:Blackwell,1984,234-248。”
答案1
您可以建立一個新的相關類型。
- 新增
relatedtype={englishtitle}
到您的條目 - 您可以將其刪除
relatedstring
並放入我們的新related:englishtitle
巨集中 製作一個
related:englishtitle
宏,如下圖:\newbibmacro*{related:englishtitle}[1]{% \entrydata{#1}{% \printtext{English title}% \setunit{\addspace}% \usebibmacro{title}}}
完整的MWE
\usepackage[backend=biber,style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{my.bib}
@Inproceedings{Frege1897a,
author = {Frege, Gottlob},
title = {Über die Begriffsschrift des Herrn Peano und meine eigene},
booktitle = {Berichte über die Verhandlungen der Königlich Sächsischen Gesellschaft der Wissenschaften zu Leipzig: Mathematisch-physische Klasse},
date = {1897},
pages = {361--378},
volume = {48},
related = {Frege1984h},
relatedtype = {englishtitle},
shorthand = {PCN},
}
@Inbook{Frege1984h,
author = {Frege, Gottlob},
title = {On Mr. Peano's Conceptual Notation and My Own},
date = {1984},
pages = {234--248},
crossref = {Frege1984},
}
@Book{Frege1984,
author = {Frege, Gottlob},
title = {Collected Papers on Mathematics, Logic, and Philosophy},
date = {1984},
location = {Oxford},
publisher = {Blackwell},
translator = {Black, Max},
editor = {McGuinness, Brian},
shorthand = {CP},
}
\end{filecontents}
\addbibresource{my.bib}
\newbibmacro*{related:englishtitle}[1]{%
\entrydata{#1}{%
\printtext{English title}%
\setunit{\addspace}%
\usebibmacro{title}}}
\begin{document}
\cite{Frege1897a}.
\printbibliography
\end{document}