我正在準備我的參考書目,並注意到 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}
和圍脖文件:
@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"
}
PS:我注意到 GLS 資料表的存取日期是錯誤的;-)
答案1
我將回答我自己的問題,因為我最終找到了一個解決方案,這可能會引起所有在LaTeX 中顯示長URL 時遇到問題的人的興趣,並向您展示效果:我與Vilar (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}