我正在使用 BibLaTeX 和 Babel (加泰罗尼亚语),但在参考书目中出现了一个奇怪的错误:引号被问号取代。如果停用 Babel,一切正常。
巴别塔(Babel):
代码:
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage[backend=bibtex,sorting=none]{biblatex}
\usepackage{graphicx}
\usepackage[margin=2cm]{caption}
\usepackage[catalan]{babel}
\usepackage{float}
\usepackage{wasysym}
\usepackage{pifont}
\onehalfspacing
\usepackage[top=0.79in, bottom=0.79in, left=1.18in, right=0.79in]{geometry}
\renewcommand{\thefootnote}{\arabic{footnote}}
\addbibresource{bib.bib}
\begin{document}
[...]
\printbibliography
\end{document}
结果:
没有 Babel 的话:
代码:
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage[backend=bibtex,sorting=none]{biblatex}
\usepackage{graphicx}
\usepackage[margin=2cm]{caption}
%\usepackage[catalan]{babel}
\usepackage{float}
\usepackage{wasysym}
\usepackage{pifont}
\onehalfspacing
\usepackage[top=0.79in, bottom=0.79in, left=1.18in, right=0.79in]{geometry}
\renewcommand{\thefootnote}{\arabic{footnote}}
\addbibresource{bib.bib}
\begin{document}
[...]
\printbibliography
\end{document}
结果:
答案1
问题出在csquotes
。要么在加载时设置引用样式,通过
\usepackage[style=english]{csquotes}
或者如果这只是参考书目本身的问题,则问题
\setquotestyle{english}
就在之前\printbibliography
。
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[style=english]{csquotes}
\usepackage[backend=bibtex,sorting=none]{biblatex}
\usepackage[catalan]{babel}
\begin{filecontents}{\jobname.bib}
@Article{test,
author = {Author, A. N.},
title = {Title},
journaltitle = {J. J.},
year = 2000,
volume = 15,
number = 1,
pages = {4-8}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
请注意,最好在和babel
之前加载。这两个包将在可能的情况下使用传递给的选项。不幸的是,目前还不知道。csquotes
biblatex
babel
csquotes
catalan