Text FormattingUmlauts not displayed, although package is included

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mmuuuuhh
Posts: 7
Joined: Tue May 10, 2011 8:12 pm

Umlauts not displayed, although package is included

Post by mmuuuuhh »

Hey,

I don't get umlauts like "äöü", althoug I do include ngerman{babel} (line 2 in the code)
I compile it with pdflatex! In older latexfiles it worked, and still works!
Anybody know where my error is?

Code: Select all

\documentclass[ucs,xcolor={table,dvipsnames},hyperref={bookmarks,colorlinks}]{beamer}
\usepackage[ngerman]{babel}
\setbeamertemplate{background canvas}[vertical shading][bottom=white!10,top=blue!10]
\usefonttheme[onlysmall]{structurebold}
\usetheme{CambridgeUS}
\usepackage[latin1]{inputenc}

\title{Blutzuckermessmethoden}
\author{Patrick Mullan}
\institute[FAU, LTE]{Friedrich-Alexander-Universit"at Erlangen-N"urnberg}
\date{30.01.2012}

\begin{document}
\begin{frame}
  \titlepage
\end{frame}

\begin{frame}
  \frametitle{Inhaltsverzeichnis}
  \tableofcontents[]
\end{frame}

\section{Blutzucker}
\subsection{Was ist Blutzucker}

\begin{frame}
\end{frame}

\subsection{Wie wird er im K"orper verarbeitet}
\begin{frame}
\end{frame}

\section{Messung des Blutzuckers}
\subsection{Ziele der Messungen}

\begin{frame}
\end{frame}

\subsection{Invasive Messung}
\subsubsection{Funktionsweise}

\begin{frame}
\end{frame}

\subsubsection{Aufbau}

\begin{frame}
\end{frame}

\subsubsection{Nachteile der invasiven Methode}

\begin{frame}
\end{frame}

\subsection{Nicht-invasive Messung}
\subsubsection{Funktionsweise}

\begin{frame}
\end{frame}

\subsubsection{Aufbau}
\begin{frame}
\end{frame}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Umlauts not displayed, although package is included

Post by localghost »

Please make sure in coming posts that there are no line numbers in your code (has been corrected here). Otherwise copying your code for testing purposes is difficult because line numbers have to be deleted subsequently.


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

Umlauts not displayed, although package is included

Post by Stefan Kottwitz »

As I said in the other thread (no problem to split it), it would work if you use umlauts after \begin{document}, even if it means the move \title there.

However you could turn on the shortcut " earlier in the preamble if you like:

Code: Select all

\shorthandon{"}
\title{Blutzuckermessmethoden}
\author{Patrick Mullan}
\institute[FAU, LTE]{Friedrich-Alexander-Universit"at Erlangen-N"urnberg}
Stefan
LaTeX.org admin
mmuuuuhh
Posts: 7
Joined: Tue May 10, 2011 8:12 pm

Re: Umlauts not displayed, although package is included

Post by mmuuuuhh »

Pardon, but I don't get it...
I typed the \shorthandon{"} after the \begin{document} but it didn't work!
And all my frames, incl. the titlepage are after the \begin{document}, as you said. So I still can't spot the mistake, nor do I understand your suggestions!
Sorry, but could you help me once more :D
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Umlauts not displayed, although package is included

Post by Stefan Kottwitz »

mmuuuuhh wrote:Pardon, but I don't get it...
No problem, just read again above. ;-)
mmuuuuhh wrote:I typed the \shorthandon{"} after the \begin{document} but it didn't work!
I said, put it earlier, before \title etc. It can be in the preamble.
mmuuuuhh wrote:And all my frames, incl. the titlepage are after the \begin{document}, as you said.
Above, they are before. This works, to make the order clear:

Code: Select all

\shorthandon{"}
\title{Blutzuckermessmethoden}
\author{Patrick Mullan}
\institute[FAU, LTE]{Friedrich-Alexander-Universit"at Erlangen-N"urnberg}
\date{30.01.2012}

\begin{document}
Stefan
LaTeX.org admin
Post Reply