# Which is the appropriate inputenc option for Slovak?

I have written latex document in English. Now I want to rewrite the same document in Slovak.

What I found is this:

\usepackage[utf8]{inputenc}

just use this:

\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[slovak,english]{babel}
\newcommand\sktxt[1]{\foreignlanguage{slovak}{#1}}

Text written in Slovak would start: \sktxt{<Slovak text>}.

It simply doesn't work with this simple makeover. The pdf output doesn't build.

I'm using Windows/MiKTeX 2.9/TeXnicCenter and I usually build the Latex file (output as pdf) via shift-Ctrl-F5 or just simply in top panel - build.

-
Welcome to TeX.sx!. Try without ucs and utf8x-option in inputenc. And side question: Is this intentionally, that English is the main language and not Slovak? –  Speravir Jan 29 '13 at 18:20
Can you give an example of the <Slovak text> that fails? –  egreg Jan 29 '13 at 18:28
@egreg: simply the letters with the specific diacritic mark are missing. So something is wrong with the setting. –  Maximilian Jan 29 '13 at 19:09
@Speravir: I'm using LaTex primarily (or actually only) with English text but this is first time I want to write something in Slovak. There is no specific intention why there should be English as the primary language for this particular document. It can be very much also in pure Slovak. –  Maximilian Jan 29 '13 at 19:11
The language you use most should be obviously the main language. Another question: The document is saved in UTF-8? So you use a UTF8-aware version of TeXnicCenter? And provide, please, a minimal (not) working example (MWE) with some Slovak text, as also requested by egreg. –  Speravir Jan 29 '13 at 19:36