> ## Documentation Index
> Fetch the complete documentation index at: https://resources.latex-cloud-studio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LaTeX in German

> Configure LaTeX for German documents with correct hyphenation and language-aware labels.

Use this setup to typeset documents in german with stable language rules and typography.

## pdfLaTeX Setup

```latex pdflatex-german.tex theme={null}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}

\begin{document}
\selectlanguage{ngerman}
Dies ist ein wissenschaftlicher Bericht auf Deutsch.
\end{document}
```

## XeLaTeX / LuaLaTeX Setup

```latex xelatex-german.tex theme={null}
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[german=swiss]{german}
\setmainfont{TeX Gyre Heros}

\begin{document}
\selectlanguage{ngerman}
Dies ist ein wissenschaftlicher Bericht auf Deutsch.
\end{document}
```

## Practical Notes

* Keep one compiler across the entire project.
* Verify fonts are available in local or cloud environments.
* For multilingual bibliographies, use Unicode-safe workflows.

## Related Pages

* [Multi-language documents](/learn/latex/how-to/multi-language-documents)
* [Choosing a compiler](/learn/latex/basics/choosing-compiler)
* [Bibliography and citations](/learn/latex/bibliography-citations)
