Fonts & Character SetsWriting in Slovak

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
Lugalzagezi
Posts: 2
Joined: Sun Oct 02, 2011 3:08 pm

Writing in Slovak

Post by Lugalzagezi »

Hi everybody,

I'm creating my CV with LaTeX and there are problems with compilation of these Slovak characters: š, ž, ť, ľ in the PDF output file. Although it works without problems by others. I've installed MikTeX 2.9 and use \babel command.

Please, consider following MWE:

Code: Select all

\documentclass{article}
\usepackage[cp1250]{inputenc}
\usepackage[slovak]{babel}
\usepackage[T1]{fontenc}

\begin{document}
 ľ š ť ž \\ 
 č ý á í é ú ä ô ň \\
\end{document}
After compiling I got two error messages, e.g.

Code: Select all

! Missing $ inserted.
<inserted text>
$
l.7 µ
ą»ľ\\
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 7.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 7.

Code: Select all

! Missing $ inserted.
<inserted text>
$
l.9 \end{document}
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.
Missing character: There is no ˇ in font cmr10!
Missing character: There is no © in font cmr10!
Missing character: There is no Ł in font cmr10!
Missing character: There is no ý in font cmr10!
Missing character: There is no á in font cmr10!
Missing character: There is no í in font cmr10!
Missing character: There is no é in font cmr10!
Missing character: There is no ú in font cmr10!
Missing character: There is no ä in font cmr10!
Missing character: There is no ô in font cmr10!
Missing character: There is no ¬ in font cmr10!
I've tried to change my encoding from cp1250 to utf8 but it didn't help.

I would be glad for every idea! :)

Thanks,
Lugalzagezi
Last edited by Lugalzagezi on Mon Oct 03, 2011 4:37 pm, edited 1 time in total.

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Writing in Slovak

Post by localghost »

Lugalzagezi wrote:[…] I've tried to change my encoding from cp1250 to utf8 but it didn't help. […]
Make sure that you editor manages Unicode and that your file is also saved with UTF-8 encoding. The below example works fine for me.

Code: Select all

\documentclass[slovak]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}

\begin{document}
ľ š ť ž

č ý á í é ú ä ô ň
\end{document}

Best regards and welcome to the board
Thorsten
Lugalzagezi
Posts: 2
Joined: Sun Oct 02, 2011 3:08 pm

Re: Writing in Slovak

Post by Lugalzagezi »

Hi Thorsten,

thanks for your answer. I've allready solved the problem. Somehow TexMaker got problems with CP-1250 encoding and with UTF-8 even more, even though I sep up this encoding in Options of the editor and saved the file with it. Therefore I downloaded another editor (TeXnicCenter) that works perfectly with CP-1250. The output PDF file is finally correct :)

So thanks and have a nice day,
Lugalzagezi
Post Reply