我最近遇到了一个软件包问题biblatex-chicago
,其中 URL 在脚注中的换行正确,但在参考书目中的换行不正确。
在 Google 和这里搜索了一番后,我在标题中找到了此代码,但仍然无法解决问题。我能知道我还能做些什么来解决这个问题吗?任何建议都非常感谢!
(该turbian-researchpaper
课程可在此处找到:https://www.overleaf.com/latex/templates/turabian-formatted-research-paper/drzcdssyhyqh#.WtgRbdPwbUo)
\documentclass[12pt]{turabian-researchpaper}
\usepackage[utf8]{inputenc}
\usepackage{csquotes, ellipsis}
\usepackage{mathptmx}% http://ctan.org/pkg/mathptmx
% Specify paper size with geometry package
\usepackage[pass, letterpaper, margin=1in]{geometry}
\usepackage{verbatim}
\usepackage[hyphens,spaces,obeyspaces]{url}
\urlstyle{same}
\def\UrlBreaks{\do\/\do-\do=\do_\do&}
\usepackage{outline}
% For citations, use the biblatex-chicago package
\usepackage[maxbibnames=99, backend=biber]{biblatex-chicago}
\renewcommand*{\biburlsetup}{%
\Urlmuskip=0mu plus 3mu\relax
\mathchardef\UrlBigBreakPenalty=100\relax
\mathchardef\UrlBreakPenalty=200\relax
\def\UrlBigBreaks{\do\:\do\-}%
\def\UrlBreaks{%
\do\.\do\@\do\/\do\\\do\!\do\_\do\|\do\;\do\>\do\]\do\)\do\}%
\do\,\do\?\do\'\do\+\do\=\do\#\do\$\do\&\do\*\do\^\do\"}%
\ifnumgreater{\value{biburlnumpenalty}}{0}
{\def\do##1{\appto\UrlSpecials{\do##1{\mathchar`##1 \penalty\value{biburlnumpenalty}}}}%
\do\1\do\2\do\3\do\4\do\5\do\6\do\7\do\8\do\9\do\0}
{}%
\ifnumgreater{\value{biburlucpenalty}}{0}
{\def\do##1{\appto\UrlSpecials{\do##1{\mathchar`##1 \penalty\value{biburlucpenalty}}}}%
\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J
\do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T
\do\U\do\V\do\W\do\X\do\Y\do\Z}
{}%
\ifnumgreater{\value{biburllcpenalty}}{0}
{\def\do##1{\appto\UrlSpecials{\do##1{\mathchar`##1 \penalty\value{biburllcpenalty}}}}%
\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j
\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t
\do\u\do\v\do\w\do\x\do\y\do\z}
{}%
\let\do=\noexpand}
\newcommand{\mypenalty}{100}
\setcounter{biburlnumpenalty}{\mypenalty}
\setcounter{biburlucpenalty}{\mypenalty}
\setcounter{biburllcpenalty}{\mypenalty}
\renewcommand{\footnotesize}{\normalsize}
\addbibresource{works-cited.bib}
答案1
100 的惩罚可能有点低。你尝试过更高的数字吗?
如果没有 MWE,就无法进行测试,但你可以尝试
\usepackage{etoolbox}
\apptocmd{\UrlBreaks}{\do\XXX{}{}
XXX
您的 URL 实际中断的标志在哪里。