Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to use German umlauts in a tabular directive. The file is encoded in UTF8 and the useage of umlauts outside of the tabular directive is working flawlessly so there should be no general encoding problem.

Using the following code

\begin{tabular}{ll}
  some content & some content ü content \\
\end{tabular}

the compiler issues the following warning:

Package inputenc Error: Keyboard character used is undefined [& some content]

It seems the compiler is interpreting the characters following the ampersand as an escaped unicode character. In the PDF output the umlaut is simply omitted.

Is there a possibility to either escape the umlaut, change the encoding of the tabular section or use a different character for column separation?

Encoding the umlaut using escaped unicode or \"u is not working due to both ampersand and backslash being control characters.

I am no LaTeX expert and desperately need this functionality for my bachelor thesis. My lifelong gratitude will truly be yours.

EDIT

I use the following in my head section, my distribution is MiXTeX 2.9 using Sublime Text 2 as my editor. My operating system is Windows 7 Professional x64

\documentclass[11pt, a4paper, titlepage]{book}
\usepackage{german}
\usepackage[utf8]{inputenc}

EDIT2

I had no encoding problem and just discovered, that even though regular TeX escaping in the form of

\"u 

wont work, surrounding this with curly braces will

{\"u}

for now this answer justifies using UTF8 instead of latin1 encoding but if anybody knows a more elegant solution I would be keen on your input!

share|improve this question

migrated from stackoverflow.com Jul 13 '12 at 11:05

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Jul 13 '12 at 16:09
add comment

1 Answer 1

Please try :

\documentclass{article}
\usepackage[utf8]{inputenc}

\begin{document}

\begin{tabular}{lll}
  some content \& some content ü content \\
\end{tabular}

\end{document}

If that does not show the expected result, please check your tex installation (texlive-latex-extra may be oh help then)

share|improve this answer
    
thank you for the fast reply! using your method, I get the following error: Package inputenc Error: Keyboard character used is undefined [some content \& some content ] –  Floscher Jul 12 '12 at 16:49
1  
Than the problem may be that your input file itself is not properly utf8 encoded. Have you checked that ? –  Alfred Ärger Jul 12 '12 at 17:48
    
The encoding of input files hasn't been the issue. I found a solution using curly brace based escaping. Inspite of this I will try TeXLive. Thank you both for the input :-) –  Floscher Jul 13 '12 at 9:43
    
Welcome to TeX.sx! Your answer was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or edit your answer. –  Werner Jul 13 '12 at 16:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.