![biblatex 的 bibstyle GOST 中作者字段的罗马样式](https://linux22.com/image/375880/biblatex%20%E7%9A%84%20bibstyle%20GOST%20%E4%B8%AD%E4%BD%9C%E8%80%85%E5%AD%97%E6%AE%B5%E7%9A%84%E7%BD%97%E9%A9%AC%E6%A0%B7%E5%BC%8F.png)
如何在 biblatex gost 中为作者字段应用罗马样式?现在是斜体。
% !TeX program = pdflatex
% !TeX encoding = utf8
% !TeX spellcheck = uk_UA
% !BIB program = biber
\documentclass[]{article}
\usepackage{filecontents}
\begin{filecontents*}{file.bib}
@BOOK{texbook,
author = "Knuth, D. E.",
title= {\TeX Book},
publisher = {Addison-Wesley},
year = {1984}
}
\end{filecontents*}
\usepackage[backend=biber, bibstyle=gost-numeric, babel=other, isbn=true, url=false]{biblatex}
\addbibresource{file.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
答案1
如果您希望坚持使用通用的 GOST/ГОСТ 书目,并且只想将名称格式从斜体更改为罗马字体,则需要重新定义特殊名称格式宏\mkbibhdnamefamily
。标准样式使用\mkbibnamefamily
,这也是在其他地方使用的,但在初始标题位置使用biblatex-gost
特殊宏。\mkbibhdname...
\documentclass[]{article}
\usepackage[backend=biber, style=gost-numeric, autolang=other, isbn=true, url=false]{biblatex}
\addbibresource{biblatex-examples.bib}
\renewcommand*{\mkbibhdnamefamily}[1]{#1}
\begin{document}
\nocite{knuth:ct:a}
\printbibliography
\end{document}