总部位于这个问题我写了以下 MWE:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\usepackage[style=abnt-numeric, backend = biber]{biblatex}
\DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\addspace<\normalfont\url{#1}>}%
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{website:ArduinoLabview,
author = {{National Instruments}},
title = {Arduino Compatible Compiler for LabVIEW by Aledyne-TSXperts},
year = {2019},
url = {https://www.tsxperts.com/arduino-compatible-compiler-for-labview/},
urldate = {2019-06-07},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{website:ArduinoLabview}
\printbibliography
\end{document}
如何将 URL 和 DOI 字体改为正常样式?
答案1
biblatex
将 URL 和 DOI 格式委托给url
包,因此您可以使用其接口将 URL 字体更改为普通文档字体
\urlstyle{same}
没有必要,\normalfont
而且无论如何它也不会做任何事情,因此url
可以删除字段格式的重新定义。
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\usepackage[style=abnt-numeric, backend = biber]{biblatex}
\urlstyle{same}
\begin{filecontents}{\jobname.bib}
@misc{website:ArduinoLabview,
author = {{National Instruments}},
title = {Arduino Compatible Compiler for LabVIEW by Aledyne-TSXperts},
year = {2019},
url = {https://www.tsxperts.com/arduino-compatible-compiler-for-labview/},
urldate = {2019-06-07},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{website:ArduinoLabview}
\printbibliography
\end{document}