Generalumlauts also in included file

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
timoslav
Posts: 4
Joined: Sat Feb 06, 2010 7:29 pm

umlauts also in included file

Post by timoslav »

hi guys,

i've included my title page in my main document. for the main document german umlauts are defined by the specific package, but after typesetting the included title page is not rendered correctly. i tried using usepackage in the title page itself but that doesn't work either.

any held is appreciated :)

thanks!

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: umlauts also in included file

Post by frabjous »

It's impossible to tell what the problem is from the very limited amount of information provided.

Please provide a compiliable, minimal working example that shows the problem.
timoslav
Posts: 4
Joined: Sat Feb 06, 2010 7:29 pm

umlauts also in included file

Post by timoslav »

sorry. here it comes:

title.tex:

Code: Select all


\begin{titlepage}

\begin{minipage}{1in}
\begin{tabular}{l}
\includegraphics[width=0.5\textwidth]{./uom}
\end{tabular}
\end{minipage}
\hfill
\begin{minipage}{1in}
\begin{tabular}{r}
\includegraphics[width=0.5\textwidth]{./cse}
\end{tabular}
\end{minipage}


\begin{center}
% Upper part of the page

\textmd{text with umlauts äüö}\\[0.5cm]
\includegraphics[width=100px]{./gs_scholl}
\vfill
% Title
{ \huge \textbf{text} }\\[0.4cm]
\begin{center}
\vfill
von\\
\vfill
\large\textbf{}
\end{center}

\begin{center}
\textmd{text}\\
\vfill
\large\textbf{text}
\vfill
text\\
\end{center}

\vfill
\begin{center}
text
\end{center}
\vfill


\end{center}

\end{titlepage}

main document:

Code: Select all

\documentclass[pdftex,a4paper]{scrartcl}

\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{url} % Erlaubt die Nutzung von URLs

\typearea{12} % Breite des bedruckten Bereiches vergrössern (funktioniert nur, wenn eine der folgenden Dokumentklassen geladen wird: scrreprt, scrartcl, scrbook)

\usepackage{fancyhdr}
\pagestyle{fancy}

\usepackage[pdftex]{graphicx}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand*{\punkte}{\dots\unkern} % Definition eines neuen Befehls zur Erzeugung von drei Punkten als Auslassungszeichen. Sollte statt \ldots verwendet werden, wenn die Punkte in Klammern eingeschlossen sind. Beispiel: blabla (\punkte) blabla

\usepackage{hyperref} % Alle Referenzen werden verlinkt! Man kann beispielsweise auf einen Eintrag des Inhaltsverzeichnisses klicken und kommt so zum betreffenden Kapitel!

\clubpenalty = 1000 % reduziert Schusterjungen
\widowpenalty = 1000 % reduziert Hurenkinder

\begin{document}

%B. TITELSEITE UND INHALTSVERZEICHNIS
%***************************************************************************************************
\input{./title.tex}

\tableofcontents

%C. HAUPTTEIL
%*********************************************s******************************************************

\section{text}

text

\bibliography{bibliographie}
\end{document}

%
%	EOF
%
thanks in advance!
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

umlauts also in included file

Post by frabjous »

Actually, a minimal working example is one in which you remove all code not related to your problem -- and especially things like images that make the code uncompiliable for those who don't have them. I had to comment most of that out to compile your source.

I don't think the problem has to do with including the title page from a separate file. I get a problem even if I copy and paste the code inside.

Two things worked to fix it for me in TeXworks.

The first is to switch to UTF8 encoding and option for the inputenc package. This presupposes your editor can save in that format.

Code: Select all

\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
äüö
\end{document}
The other is to switch to the LaTeX accent codes to make the umlauts.

Code: Select all

\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\"a\"u\"o
\end{document}
That doesn't really explain what the problem was though, since latin1 should be able to handle the umlauts... but I don't have a lot of experience with it, since I pretty much always use utf8.
timoslav
Posts: 4
Joined: Sat Feb 06, 2010 7:29 pm

Re: umlauts also in included file

Post by timoslav »

sorry for the code mess :)

thanks alot!! utf8 works perfect.

greetz
Post Reply