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.

My native language is Serbian and it is included in MiKTeX distribution for Windows. However, there is only latin version of it, and I'd like to use cyrillic Serbian. I tried searching the Internet about the issue and found this post.

These files are based on Russian language, and after inspecting them, I found that the translations are just fine. I copied the contents of the files to two files (serbianc.ldf and serbianc.sty) and placed these files in tex\generic\babel folder where other language files reside.

Next, I added the following line to babel.sty (among other language definitions):

\DeclareOption{serbianc}{\input{serbianc.ldf}}

When trying to use the language in TeX document, LaTeX fails at the following line:

\usepackage[serbianc]{babel}

with the following error:

! LaTeX Error: File `serbianc.ldf' not found.

I have also tried going to MiKTeX settings and refreshing file name database to no avail.

I'm rather new to TeX - it might be a big shot for me, but I do have a lot of programming skills and am eager to learn about it. The resources I found on the Internet are rather scarce and mainly Unix related.

What am I missing here? Any help is much appreciated.

share|improve this question
1  
Did you run texhash (or whatever the MikTeX equivalent is)? –  Caramdir Mar 4 '11 at 19:15
    
I guess this is equivalent to refreshing FNDB through GUI in MiKTeX. I did run it, nonetheless. Here's the output: Creating fndb for user root directory (C:\Users\Witchunter\AppData\Roaming\MiKTeX\2.9)... Creating fndb for user root directory (C:\Users\Witchunter\AppData\Local\MiKTeX\2.9)... Skipping common root directory (C:\ProgramData\MiKTeX\2.9)... Skipping common root directory ("V:\Program Files (x86)\MiKTeX 2.9")... –  Nikola Malešević Mar 4 '11 at 19:31
2  
Don't put local files in the main root (programdata\miktex ...), use a local root instead (see manual of miktex). But if you use the main root then you must update the FNDB in admin mode. –  Ulrike Fischer Mar 4 '11 at 20:21
1  
Thank you both, Ulrike's suggestion did the trick. Ulrike, feel free to post the answer, I'll accept it as the best. –  Nikola Malešević Mar 4 '11 at 21:04
    
@Ulrike: Can your please post your comment as an answer? Thanks! –  Hendrik Vogt Mar 5 '11 at 9:29
add comment

1 Answer 1

up vote 2 down vote accepted

Here as wanted the comment as answer:

Don't put local files in the main root (programdata\miktex ...), use a local root instead (see manual of miktex). But if you use the main root then you must update the FNDB in admin mode.

share|improve this answer
    
See now also Create a local texmf tree in MiKTeX. –  Speravir Mar 24 '13 at 17:01
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.