1

I am using biblatex and biber. Inside the text I use the commands citet, parencites or citewith author-year. I would like to prevent that the last name sometimes gets hyphenated in the text.

Is there a command for bibsetup? Unfortunately I could not find something in the manual. Or is there any other possibility so that the last name stays as one part.

Thank you... Christian

ChrisP
  • 419

1 Answers1

2

Ulrike gave the answer in the german forum the question was crossposted: \AtEveryCitekey{\hyphenrules{nohyphenation}}

trinixBiblatexHyphenation

\begin{filecontents*}{\jobname.bib}
@book{Bruchmueller2001,
Author = {Bruchm{\"u}ller, H.-G. and Haug, A.},
Note = {Schriftenreihe report -- Band 40},
Publisher = {Leuchtturm-Verlag},
Title = {Labordidaktik f{\"u}r Hochschulen -- Eine Einf{\"u}hrung zum Praxisorientierten Projekt-Labor},
Year = {2001}}

@book{DiBerardinis2013,
Author = {{DiBerardinis}, L. J. and Baum, J. S. and First, M. W. and Gatwood, G. T. and Seth, A. K.},
Publisher = {John Wiley \& Sons, Inc.},
Subtitle = {health, safety, and environmental considerations},
Title = {Guidelines for laboratory design},
Year = {2013}}
\end{filecontents*}


\documentclass{scrbook}

\usepackage[english,ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{filecontents}

\usepackage[style=authoryear,%
backend=biber,%
maxcitenames=2,%
maxitems=999,%
language=ngerman,
maxbibnames=99,%
natbib
]{biblatex}
\addbibresource{\jobname.bib}


\setlength{\textwidth}{4cm}
\usepackage{showframe}
\AtEveryCitekey{\hyphenrules{nohyphenation}}
\begin{document}
test word~\cite[vgl.][]{Bruchmueller2001}.\par
test word~\citet{Bruchmueller2001}.\par
test word~\parencites{Bruchmueller2001}.\par
test word~\cite[vgl.][]{DiBerardinis2013}.\par
test word~\citet{DiBerardinis2013}.\par
test word~\parencites{DiBerardinis2013}.\par
\end{document}
Johannes_B
  • 24,235
  • 10
  • 93
  • 248