7

Background:

I am using BibLaTeX, Biber and XeLaTeX to write a book that contains a bibliography. The bib-file is encoded as UTF-8 and contains "special" characters such as umlauts (ä, ö, ü) and sharp s (ß).

Problem:

When I compile the document, the "ß" are replaced by "SS" in the bibliography, as in the following:

"ß" replaced by "SS"

Note that the umlauts are ok.

Compiling the source with pdfLaTex yields the desired result, as in the figure below, but for certain reasons I would like to stay with XeLaTeX.

desired result with pdfLaTeX

Here are the minimal working examples:

.tex-file

\documentclass[12pt, a4paper, DIV=calc]{scrbook}
\usepackage[T1]{fontenc} % output font encoding
\usepackage{lmodern, textcomp} % beautiful fonts (latin modern).
\usepackage[utf8]{inputenc} % input language. Required only for pdfLaTeX.
\usepackage[ngerman, UKenglish]{babel} % language support
\usepackage{csquotes} % prettier quotes
\typearea[current]{calc}
\usepackage[backend=biber, style=authoryear-icomp]{biblatex} % biblatex
\addbibresource{test.bib} %biblatex

\begin{document}
\title{Some title}
\author{henning}
\maketitle

Here is some reference \parencite{Bluehdorn2010}.

\printbibliography

\end{document}

.bib-file

@INCOLLECTION{Bluehdorn2010,
  author = {Ingolfur Blühdorn},
  editor = {Sebastian Bukow and Wenke Seemann},
  title = {Win-win-Szenarien im Härtetest. Die Umweltpolitik der Großen Koalition
    2005-2009},
  booktitle = {Die große Koalition},
  year = {2010},
  publisher = {VS Verlag},
  pages = {211 -- 227},
  address = {Wiesbaden},
  keywords = {germany, grand coalition, environment},
  timestamp = {2012.07.18}
}

Note that the problem persists whether or not I use \usepackage[utf]{inputenc}.

Question: How can I configure XeLaTeX to produce sharp s instead of double-s?

Any hints are very much appreciated!

1

2 Answers 2

8

For xelatex use

\documentclass[12pt, a4paper, DIV=calc]{scrbook}
%\usepackage[T1]{fontenc} % output font encoding
%\usepackage{lmodern, textcomp} % beautiful fonts (latin modern).
%\usepackage[utf8]{inputenc} % input language. Required only for pdfLaTeX.
\usepackage{fontspec}
...
1
  • This does not work for me. Also the methods in the other answers do not work either. This happens for biblatex with biber. Are there any other methods?
    – unstable
    Mar 22, 2022 at 7:14
3

Another solution is: {\ss} instead of ß or ss.

8
  • Are the curly braces necessary? It works without them as well.
    – Alenanno
    Jun 5, 2015 at 13:23
  • Well, if you have gro\sse, it will read that as \sse - which it' can't recognise - not \ss+e. The curly braces are a good way around that, though not the only one.
    – Au101
    Jun 5, 2015 at 13:37
  • 1
    @Alenanno Yes, but if there's no letter after it...
    – user10274
    Jun 5, 2015 at 13:38
  • Gro\ss e or Gro{\ss}e, both ways are working, yes :-)
    – TobiasDK
    Jun 5, 2015 at 13:38
  • 4
    @Alenanno: Gro\ss{}e or Gro\ss e are preferrable; Gro{\ss}e may cause bad kerning or similar. See this question.
    – Wrzlprmft
    Jun 5, 2015 at 16:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .