Fonts & Character SetsWorking with special characters in german

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

Working with special characters in german

Post by Murd »

Hey!

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

\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

\documentclass{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage[ngerman]{babel}

\usepackage{charter}


\begin{document}
	ß, ä, ö, ü
\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 3667 times
Hope for some advice!
Thank you!

Murd

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Working with special characters in german

Post by Stefan Kottwitz »

Hi Murd!

Your code should work with pdfLaTeX.

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

Code: Select all

\usepackage[utf8]{inputenc}
\usepackage{charter}
write

Code: Select all

\usepackage{fontspec}
\setmainfont{XCharter}
Or use pdfLaTeX.

Stefan
LaTeX.org admin
Post Reply