I have a macro to define a text:
\def\Title{Mein Titel und Langes"=Wort"=Beispiel}
The dash "= is defined in babel/German and is used to activate the hyphenation in concatenated words.
In titlepage.tex I use \Title to generate a title page. If I put the \def into titlepage.tex I get correct dashes, but if I put \def into main.tex which \include{titlepage} I see "= instead of -.
\Titlebefore you loadbabel? It might not work if used in the preamble because the language is not loaded yet (IIRC) and therefore the"=still has it's old definition. The order is important here because the characters must be set active before they are used. – Martin Scharrer Oct 19 '11 at 14:42\usepackage[ngerman]{babel}2.\def\Titel{...}3.\include{titlepage}– knut Oct 19 '11 at 14:53