我想让 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}
我明白了
我希望除了‘......我自己的’之外什么都没有;即省略“在:Gottlob Frege。数学,逻辑和哲学论文集。编辑 Brian McGuinness。翻译 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}