\usepackage[english, russian]{babel}
\usepackage[T1, T2A]{fontenc}

Это вводный абзац в начале документа.
 Этот текст будет на русском языке. Это демонстрация того, что символы кириллицы
 в сгенерированном документе (Compile to PDF) отображаются правильно.
 Для этого Вы должны установить нужный  язык (russian) 
и необходимую кодировку шрифта (T2A).

This text will be in English. The elements within this 
block of text will also be set in the right language.

A brief description of the main subject to be 
explained in the entire document.

Кириллические символы также могут быть использованы в математическом режиме.

  S_\textup{ис} = S_{123}

I am using above code to generate the document using miktex -> pdf latex. but document is not getting generated.

This is what I am getting in log file. https://pastebin.com/cgU2pYLG

And this is what I am getting at console

Microsoft Windows [Version 10.0.16299.1029]
(c) 2017 Microsoft Corporation. All rights reserved.


C:\Users\kesarkas\AppData\Local\Temp\ReportGenerator>CD C:\KBData\NGworkspace\Branch\Out\Print\PDF\miktex\bin

C:\KBData\NGworkspace\Branch\Out\Print\PDF\miktex\bin>pdflatex --output-directory="C:\Users\kesarkas\AppData\Local\Temp\ReportGenerator" --file-line-error --interaction=nonstopmode "C:\Users\kesarkas\AppData\Local\Temp\ReportGenerator\report.tex"
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
* Local config file bblopts.cfg used

Package babel Warning: No Cyrillic font encoding has been loaded so far.
(babel)                A font encoding should be declared before babel.
(babel)                Default `T2A' encoding will be loaded  on input line 74.

(C:\Users\kesarkas\AppData\Local\Temp\ReportGenerator\t2acmr.fd)pdflatex: The font creation utility could not be found.
pdflatex: Data: miktex-maketfm.exe

  • The .log file probably got truncated due to length limits. Maybe you can post it elsewhere (pastebin.com or GitHub gists) and/or repost it here, but remove all the defining Unicode char ... lines to make it more compact. – moewe May 23 at 5:58
  • pastebin.com/cgU2pYLG Please check above link for log file and I see only this much in log file so not able to figure out what is the issue exactly. – sameerk May 23 at 6:04
  • What exactly happens when you compile your document? Do you get any error in the console output? Does compiliation even ever finish? – siracusa May 23 at 6:20
  • 1
    Your document is missing the \end{document}. If I add that it compiles just fine for me. The .log file does not contain any obvious warnings or errors. But it shows that your system is seriously outdated (last update around 2011). – moewe May 23 at 6:20
  • @moewe actually I forgot to paste it in question. but at my place I am having \end{document} at the end. – sameerk May 23 at 7:19

Your method to call pdflatex is wrong. (I split it for the remarks):


You should not start pdflatex in the bin folder. Correct would be to switch to the folder of the document and call pdflatex from there

C:\Users\kesarkas\AppData\Local\Temp\ReportGenerator> pdflatex

You are trying to output the files to folder of your document, which is unnecessary if you call pdflatex correctly.


You should never pass an absolute path to pdflatex correct would be simply


So the correct call is

 C:\Users\kesarkas\AppData\Local\Temp\ReportGenerator> pdflatex --file-line-error --interaction=nonstopmode report

If this reports that pdflatex is not found, you should add


to your windows PATH variable.

Your Answer

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

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