8

How can I suppress hyphenation in biblatex?

(I know that only one sentence usually is considered bad question quality, but why over-complicate a simple (?) problem)

  • 1
    You want that the bibliography is printed with no hyphenation? – egreg Apr 21 '13 at 16:39
  • See hyphenpenalty: tex.stackexchange.com/questions/51263/… – Marco Daniel Apr 21 '13 at 16:40
  • 1
    Could you add a MWE that shows undesired hyphenation, so that a) other users don’t have to create that themselves and b) we can clearly compare before and after? (This is partially responding to your remark about a one sentence question.) – doncherry Apr 21 '13 at 16:57
15

It's a good idea to disable hyphenation in bibliographies, but it will only yield acceptable results if you also disable justification, that is, if you set your bibliography with no hyphenation plus ragged-right (to suppress awkward stretching and shrinking of inter-word space). The command that switches to a right rag and (implicitly) turns off hyphenation is \raggedright.

Now, biblatex has a command called \bibsetup:

\bibsetup: Arbitrary code to be executed at the beginning of the bibliography, intended for commands which affect the layout of the bibliography.

So let's append \raggedright to whatever else is already contained in \bibsetup:

\documentclass[10pt,DIV=5]{scrartcl}
\usepackage[style=authoryear]{biblatex}
\usepackage{filecontents}

\begin{filecontents}{testbib.bib}
@INCOLLECTION{Cahn97,
  author = {Cahn, Michael},
  title = {Die Rhetorik der Wissenschaft im Medium der Typographie: Zum Beispiel die Fußnote},
  year = {1997},
  pages = {91-109},
  crossref = {RHW97}}
\end{filecontents}

\appto{\bibsetup}{\raggedright}
\bibliography{testbib.bib}

\begin{document}
\cite{Cahn97}
\printbibliography
\end{document}
  • Is there a solution when using biblatex (instead of bibtex)? – Jeffrey Goldberg Nov 30 '16 at 22:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.