Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISO date goes over the end of the line #1398

Open
mdesharnais opened this issue Nov 19, 2024 · 1 comment
Open

ISO date goes over the end of the line #1398

mdesharnais opened this issue Nov 19, 2024 · 1 comment

Comments

@mdesharnais
Copy link

mdesharnais commented Nov 19, 2024

Hi,

I use ISO date format for my bibliography and some references have a date field that extend over the end of the line.

Groß_linebreak
Lukowski_linebreak

Is there a way to allow LaTeX, as a last resort, to break the date between the year, or month, or day fields? Or is there another recommended way to make the line fit?

@moewew
Copy link
Collaborator

moewew commented Nov 20, 2024

With standard biblatex these date strings are breakable as a last resort.

\documentclass[british,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[left = 20mm, right = 20mm, showframe,]{geometry}
\usepackage{babel,csquotes}
\usepackage[backend = biber, alldates=iso,]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}
Lorem \autocite{ctan}.

\printbibliography
\end{document}

Generally speaking, however, line breaking is tricky in the bibliography and you can always run into bad breaks. There is a number of general things you can do to improve/modify line breaking, but no general method guarantees that you never see bad breaks. See https://tex.stackexchange.com/q/442308/35864.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants