我有一个带有 URL 字段的 biblatex 参考文献。但是,每个反斜杠都被空格包围。
我在用
\usepackage[sorting=nyt, citestyle=authoryear, bibstyle=authoryear, isbn=false, firstinits=true, url=false, terseinits=true, dashed=false, maxcitenames=3, maxbibnames=99, backref=true, doi=false]{biblatex}
是什么原因导致的?我该如何去除它们?
編輯:MWE
我的 biblatex .bib 文件是这样的:
@ONLINE{Soderberg2010,
author = {Soderberg, T},
title = {Section 5.1: The origin of the {NMR} signal.},
year = {2010},
url = {http://chemwiki.ucdavis.edu/Organic_Chemistry/Organic_Chemistry_With_a_Biological_Emphasis/Chapter__5%3A_Structure_Determination_II/Section_5.1%3A_The_origin_of_the_NMR_signal},
urldate = {2013-5-16}
}
这有效:
\documentclass[11pt]{amsart}
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % ... or a4paper or a5paper or ...
%\geometry{landscape} % Activate for for rotated page geometry
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\usepackage{multicol}
\usepackage[sorting=nyt, citestyle=authoryear, bibstyle=authoryear, isbn=false, firstinits=true, url=false, terseinits=true, dashed=false, maxcitenames=3, maxbibnames=99, backref=true, doi=false]{biblatex}
\addbibresource{resourcename}
\title{Brief Article}
\author{The Author}
%\date{} % Activate to display a given date or no date
\begin{document}
\maketitle
%\section{}
%\subsection{}
\begin{multicols*}{2}
\parencite{Soderberg2010}
\end{multicols*}{2}
\printbibliography
\end{document}
这不起作用:
\documentclass[11pt]{amsart}
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % ... or a4paper or a5paper or ...
%\geometry{landscape} % Activate for for rotated page geometry
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\usepackage{multicol}
\usepackage[sorting=nyt, citestyle=authoryear, bibstyle=authoryear, isbn=false, firstinits=true, url=false, terseinits=true, dashed=false, maxcitenames=3, maxbibnames=99, backref=true, doi=false]{biblatex}
\addbibresource{resourcename}
\title{Brief Article}
\author{The Author}
%\date{} % Activate to display a given date or no date
\begin{document}
\maketitle
%\section{}
%\subsection{}
\begin{multicols*}{2}
\parencite{Soderberg2010}
\end{multicols*}{2}
\begin{multicols*}{2}
\printbibliography
\end{multicols*}{2}
\end{document}
唯一的区别是第二个文档在 multicols 内有参考列表。
答案1
biblatex 使用url
包\Urlmuskip
参数在 URL 中断方面提供了一些小的可伸缩性。无论是否multicolumn
使用,这都是存在的,只是在多列设置的狭窄度量中,如果可用,则更有可能使用可伸缩性。
对此可能有一个更高级别的 biblatex 设置,但这只是修补设置命令以将参数重置为零。
将其添加到你的序言中
\toks0\expandafter{\biburlsetup}
\edef\biburlsetup{\the\toks0 \Urlmuskip =0mu\relax}
生产
答案2
我发现问题出在多列上。我的解决方案是禁用参考列表的多列。如果有人有不需要禁用参考列表的多列的解决方案,我会非常感兴趣。