LaTeX forum ⇒ Fonts & Character SetsWorking with special characters in german

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Posts: 5
Joined: Wed Aug 29, 2018 3:44 pm

Working with special characters in german

Postby Murd » Wed Aug 29, 2018 8:55 pm


I'm currently working on a document on which I would like to use the font "Charter". I got everything in place by using:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \usepackage{charter}

The only thing that does not work is the german "ß". It gets replaced by "SS". After quite a lot of searching nothing seems to work. I've already tried the following setup:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{scrartcl}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[utf8]{inputenc}
  6. \usepackage[ngerman]{babel}
  8. \usepackage{charter}
  11. \begin{document}
  12. ß, ä, ö, ü
  13. \end{document}

This is what I get:

Bildschirmfoto 2018-08-29 um 20.53.06.png
Bildschirmfoto 2018-08-29 um 20.53.06.png (6.39 KiB) Viewed 654 times

Hope for some advice!
Thank you!



User avatar
Stefan Kottwitz
Site Admin
Posts: 9452
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Aug 29, 2018 9:39 pm

Hi Murd!

Your code should work with pdfLaTeX.

I think you are using XeLaTeX. In that case, instead of

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \usepackage[utf8]{inputenc}
  2. \usepackage{charter}


Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \usepackage{fontspec}
  2. \setmainfont{XCharter}

Or use pdfLaTeX.

Site admin

Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 2 guests