1

I am trying to generate a table with \csvreader. The problem is latex is ignoring when I have some german chars such as; ü,ä,ö

How can I fix this?

Here is the code:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{csvsimple}

\begin{filecontents*}{scientists.csv}
name,surname,age
Albert,Einstein,133
Marie,Curie,145
LO-üäo-OK,TH-uao-IS,100
\end{filecontents*}

\begin{document}
\csvreader[tabular=|l|l|c|,
    table head=\hline & Name & Age\\\hline,
    late after line=\\\hline]%
{scientists.csv}{name=\name,surname=\surname,age=\age}%
{\thecsvrow & \name~\surname & \age}%
\end{document}

The Output:

output

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.