Fonts & Character SetsGerman Umlaute in TexShop

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Tim88
Posts: 5
Joined: Wed May 06, 2015 11:37 am

German Umlaute in TexShop

Post by Tim88 »

hi everybody,

i'm using TexShop for mac and i'm having a lot of trouble by setting up the System for the german Umlaut like ä ü ö. Also im kind of new to Latex in general.
My research on google wasn't any help. I tried a lot of different set ups like \usepackage[utf8]{inputenc} and of course applemac, macce, latin1, latin9. nothing is working.

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

Right now im trying to save the Document in a different Encoding language.
Am i on the right track?

Thanks in advance :-)

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

German Umlaute in TexShop

Post by Stefan Kottwitz »

Hi Tim,

welcome to the forum!

Are you using pdfLaTeX? Or another compiler such as XeLaTeX or LuaLaTeX?

Those three lines are fine for German support with pdfLaTeX. Ensure that UTF-8 is the default encoding of TeXshop, and ensure that you both choose UTF-8 when opening and saving a file.

If this doesn't help, please post a small compilable test document and the corresponding log file and pdf output as attachment.

Btw. if you speak German, you may be interested in our partner site TeXwelt.de where all LaTeX questions are welcome.

Stefan
LaTeX.org admin
Tim88
Posts: 5
Joined: Wed May 06, 2015 11:37 am

Re: German Umlaute in TexShop

Post by Tim88 »

im using XeLaTeX so far. My Encoding is set on unicode (utf-8).

After clicking on typeset the compiler stops right here: undefined control sequence
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

German Umlaute in TexShop

Post by Stefan Kottwitz »

XeLaTeX uses Unicode (utf8) natively. So do not use inputenc. Also use fontspec instead of fontenc. And possibly change to polyglossia instead of babel. The three lines above could be replaced by:

Code: Select all

\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{german}
Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

German Umlaute in TexShop

Post by Johannes_B »

Hi and welcome,

with XeLaTeX, you don't need the packages inputenc and fontenc. But you do need package fontspec.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Tim88
Posts: 5
Joined: Wed May 06, 2015 11:37 am

Re: German Umlaute in TexShop

Post by Tim88 »

thanks but that didn't work unfortunately.

maybe im missing just a stupid thing which i cant think of right now.
so from the beginning:

- i save my document as utf-8
- the file format is Tex File
- in my preferences is encoding set on unicode (utf-8)
- in typesetting im using XeLaTeX (before i was also using LateX)

am i missing something?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

German Umlaute in TexShop

Post by Stefan Kottwitz »

Tim88 wrote:am i missing something?
Yes, the Infominimal working example and the requested corresponding .log and .pdf file as attached. ;-)

Seeing that, we would already have known that XeLaTeX was used with wrong packages and possibly something else what wasn't mentioned yet.

Stefan
LaTeX.org admin
Tim88
Posts: 5
Joined: Wed May 06, 2015 11:37 am

Re: German Umlaute in TexShop

Post by Tim88 »

ok thanks. so i just set the default settings.
Attachments
no1.pdf
(481 Bytes) Downloaded 480 times
no1.log
(16 KiB) Downloaded 463 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

German Umlaute in TexShop

Post by Johannes_B »

The first line of your log starts like this:

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2014.5.25)  6 MAY 2015 12:39
So, you are not using XeLaTeX.

Additionally, you are using packages fontenc and inputenc.
The log-file is incomplete, are you sure that the process was finished correctly?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Tim88
Posts: 5
Joined: Wed May 06, 2015 11:37 am

Re: German Umlaute in TexShop

Post by Tim88 »

no i reseted everything to default. Giving it a fresh start.

so far all my documents worked, only the new german written document troubles me.

so from the beginning what are the first steps for dummies? ;-)
it seems working fine for the most mac users when they just entered the right package like inputenc.

i'm really glad for any help!
Post Reply