我读过很多关于 biblatex 中方括号问题的帖子。不幸的是,没有一篇帖子能让我完全理解如何计算方括号。我知道 biblatex 与 natbib 不兼容,所以那不是一个选择。
输出结果:我想要方括号而不是圆括号。这看起来很简单,但经过许多令人沮丧的时间,我还是想不通。
代码如下:
\usepackage[style=numeric, backend=biber]{biblatex} % Adjust bibliography style
\addbibresource{bibliography.bib} % BibTeX bibliography file
\DeclareFieldFormat{labelnumber}{\RN{#1}}
MWE.tex 文件:
%----------------------------------------------------------------------------------------
% DOCUMENTCLASS
%----------------------------------------------------------------------------------------
\documentclass[11pt,a4paper,fleqn,twoside]{book} % Default font size and left-justified equations
%----------------------------------------------------------------------------------------
% FONTS
%----------------------------------------------------------------------------------------
% itemize with dash
\def\labelitemi{--}
\usepackage{avant} % Use the Avantgarde font
%
\renewcommand{\familydefault}{\sfdefault} % Makes changes in the text font
\usepackage{microtype} % Slightly tweak font spacing for aesthetics
\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\usepackage{csquotes}
\usepackage[style=numeric, backend=biber]{biblatex} % Adjust bibliography style
\addbibresource{bibliography.bib} % BibTeX bibliography file
\DeclareFieldFormat{labelnumber}{\RN{#1}}
\defbibheading{bibempty}{}
%----------------------------------------------------------------------------------------
% START DOCUMENT
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% PART II
%----------------------------------------------------------------------------------------
Value-based health care is a health care delivery model that aims to achieve high value for patients, with value defined as health outcomes achieved per dollar spent \cite{porter2010value}.
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\printbibliography
%----------------------------------------------------------------------------------------
% END DOCUMENT
%----------------------------------------------------------------------------------------
\end{document}
bibliography.bib 文件:
@article{porter2010value,
title={What is value in health care?},
author={Porter, Michael E},
journal={New England Journal of Medicine},
volume={363},
number={26},
pages={2477--2481},
year={2010},
publisher={Mass Medical Soc}
}
答案1
事实证明,MWE 中的内容是方括号,但avant
方括号的末端有点圆。不过,您仍然可以看到圆括号和方括号之间的细微差别——至少当您将它们并排看到时。
以下是一个解决方案,让我们biblatex
使用 Latin Modern Sans 中的方括号。请注意,这仅有的biblatex
更改受控制的方括号,并且仅更改那些正确排版的\mkbibbrackets
方括号。如果您正在寻找一种解决方案,该解决方案还可以替换字符[
,并且每当您输入它们时,我建议您就此提出一个新问题(因为它与完全]
无关)。biblatex
\documentclass[british]{article}
\usepackage{avant}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{microtype}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=numeric, backend=biber]{biblatex}
\newcommand*{\sqqbrackleft}{{\usefont{T1}{lmss}{m}{n}\symbol{91}}}
\newcommand*{\sqqbrackright}{{\usefont{T1}{lmss}{m}{n}\symbol{93}}}
\makeatletter
\renewcommand*{\bibleftbracket}{\blx@postpunct\sqqbrackleft}
\renewcommand*{\bibrightbracket}{\blx@postpunct\sqqbrackright\midsentence}
\makeatother
\addbibresource{biblatex-examples.bib}
\begin{document}
[square] (round)
\sqqbrackleft square\sqqbrackright
\cite{sigfridsson}
\printbibliography
\end{document}
答案2
我建议使用
\usepackage[style=numeric,backend=bibtex8]{biblatex}
如果没有特别需要biber
。大多数情况下,bibtex8
对我来说效果很好,如果不行,我会很快找到解决方案。