我正在准备我的参考书目,并注意到 biblatex-printbibliography 产生了Overfull \hbox
几次。
示例(灰线表示文本边距,红线表示物理页边距):
为什么 hyperref 换行不能按预期使用pdflatex
或甚至latex -> dvipdfm
但不使用latex -> dvips -> ps2pdf
?
此外,如果有人能指出我如何提高第二行(及以下行)的缩进,那就太好了,因为这样看起来可能会更好。
编辑:定制问题,因为 lockstep 给出的答案解决了第三个问题。第二个问题似乎与第一个问题相同。
\documentclass[12pt]{scrbook}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ps2pdf]{hyperref}
%\usepackage[ps2pdf,breaklinks=true]{hyperref} %This doesn't change anything.
%\usepackage{breakurl} %That makes no difference either.
\usepackage[a4paper,twoside,showframe]{geometry} %show text margins
\usepackage[style=alphabetic,backend=biber,maxnames=4,minnames=3,maxbibnames=99]{biblatex}
\bibliography{biblatex-issue}
\begin{document}
\nocite{*}
\printbibliography[heading=subbibliography,type=article,prefixnumbers={A-}]
\printbibliography[heading=subbibliography,type=book,prefixnumbers={B-}]
\printbibliography[heading=subbibliography,type=online]
\end{document}
以及 bib 文件:
@online{GLS:datasheet,
title = "GLS Datasheet",
organization = "Optoelectronics Research Centre",
howpublished ="Website",
date = "2004-09",
urldate="2013-07-01",
url ="http://www.southampton.XXXX",
address = "Southampton, United Kingdom"
}
@book {Lifante:Fundamentals,
title = "Integrated Photonics: Fundamentals",
author = "Lifante, Ginés",
publisher = "J.Wiley",
address = "Chichester",
year = "2003",
type = "text",
isbn = "9780470848685"
}
@article{Labadie:First_fringes,
author = {Labadie, L. and Mart\'{\i}n, G. and Anheier, N. C. and Arezki, B. and Qiao, H. A. and Bernacki, B. and Kern, P.},
title = {First fringes with an integrated-optics beam combiner at 10},
DOI= "10.1051/0004-6361/201116727",
journal = {A\&A},
year = 2011,
volume = 531,
pages = "A48"
}
附言:我注意到 GLS 数据表的访问日期是错误的 ;-)
答案1
我将回答我自己的问题,因为我最终找到了一个解决方案,这可能会引起所有在 LaTeX 中显示长 URL 时遇到问题的人的兴趣,同时也向您展示效果:我与 Vilar(-package 的维护者breakurl
)进行了一些聊天,他能够按照我建议的方式扩展他的包的破坏可能性。
因此,最新版本中的新选项anythingbreaks
使链接看起来很好,因为它们保持在文本边框的范围内。
你自己看:
完全没有:
标准行为:
任何中断:
@lockstep:谢谢你针对第三个问题提供的解决方案。真的很怀念~
。
答案2
第一个和第二个问题可以可以通过删除包选项并以 PDF 模式运行示例来解决ps2pdf
(参见我的图片)——但这可能不是您的选择。关于第三个问题, 中缺少一个不可中断的空格J.Wiley
——使用J.~Wiley
,将在 后添加一个连字符,i
并且换行符变得可以接受。
\documentclass[12pt]{scrbook}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage[a4paper,twoside,showframe]{geometry}
\usepackage[style=alphabetic,backend=biber,maxnames=4,minnames=3,maxbibnames=99]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{GLS:datasheet,
title = "GLS Datasheet",
organization = "Optoelectronics Research Centre",
howpublished ="Website",
date = "2004-09",
urldate="2013-07-01",
url ="http://www.southampton.XXXX",
address = "Southampton, United Kingdom"
}
@book {Lifante:Fundamentals,
title = "Integrated Photonics: Fundamentals",
author = "Lifante, Ginés",
publisher = "J.~Wiley",
address = "Chichester",
year = "2003",
type = "text",
isbn = "9780470848685"
}
@article{Labadie:First_fringes,
author = {Labadie, L. and Mart\'{\i}n, G. and Anheier, N. C. and Arezki, B. and Qiao, H. A. and Bernacki, B. and Kern, P.},
title = {First fringes with an integrated-optics beam combiner at 10},
DOI= "10.1051/0004-6361/201116727",
journal = {A\&A},
year = 2011,
volume = 531,
pages = "A48"
}
\end{filecontents}
\addbibresource{\jobname.bib}
\nocite{*}
\begin{document}
\printbibliography[heading=subbibliography,type=article,prefixnumbers={A-}]
\printbibliography[heading=subbibliography,type=book,prefixnumbers={B-}]
\printbibliography[heading=subbibliography,type=online]
\end{document}
另一种方法是留出一些“紧急”的额外空间:
\appto{\bibsetup}{\emergencystretch=1em}