如何在 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}