Graphics, Figures & TablesCompilation stops after Inclusion of a Package

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
justausername
Posts: 3
Joined: Sun May 19, 2013 4:59 am

Compilation stops after Inclusion of a Package

Post by justausername »

Hello everyone,

I have the following file.

Code: Select all

\documentclass{article}
\usepackage{graphics}

\begin{document}
Some text ...
\end{document}
It is not working. The log file generated is empty and when I remove the graphics package line it generates a PDF successfully and it is giving me this output.

Code: Select all

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)
entering extended mode
(C:/Users/LENOVO/Desktop/Grabage/Tex/Images.tex
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-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty")))
(C:\Users\LENOVO\Desktop\Grabage\Tex\Images.aux)texify: pdflatex failed for some reason (see log file).
Last edited by localghost on Fri Jun 21, 2013 11:24 am, edited 2 times 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Compilation stops after Inclusion of a Package

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

A remark first: better load the graphicx package, which extends the graphics package. Otherwise you may notice that some code you will see won't work, such as if key=value syntax is used in command options, supported by graphicx.

To fix the problem, look into the .log file or post it here, as attachment.

Stefan
LaTeX.org admin
justausername
Posts: 3
Joined: Sun May 19, 2013 4:59 am

Compilation stops after Inclusion of a Package

Post by justausername »

I included graphicx package, the problem is that the log file is empty when I include any package. The moment I remove the \usepackage{graphicx}, the file compiles and generates a PDF with a log file.
Last edited by cgnieder on Sun May 19, 2013 2:23 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Compilation stops after Inclusion of a Package

Post by Stefan Kottwitz »

It could be a known issue of MiKTeX and TeXnicCenter, have a look at this topic: No output after recovering from system rebuild. Or do you use another editor?

Stefan
LaTeX.org admin
justausername
Posts: 3
Joined: Sun May 19, 2013 4:59 am

Compilation stops after Inclusion of a Package

Post by justausername »

I added \usepackage{lmodern} as shown in the link and it works! what was the problem? I am using MiKTeX 64 bit edition on Windows 7.

Thanks a lot !!
Last edited by cgnieder on Sun May 19, 2013 2:24 pm, edited 1 time in total.
Post Reply