Graphics, Figures & TablesGraphicx and other packages don't work

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
The CRU
Posts: 2
Joined: Sat Aug 18, 2012 12:36 am

Graphicx and other packages don't work

Post by The CRU »

I'm using TeXnicCenter and it won't seem to permit the use of packages. The only one I desperately need to work is the graphicx package.

So long as I do not use any packages, my document compiles, of course with errors regarding the pictures I have placed in the document.
\documentclass[a4paper,12pt]{article}
%\usepackage{graphicx}


\begin{document}
...

And the Output

Code: Select all

LaTeX-Result: 6 Error(s), 0 Warning(s), 23 Bad Box(es), 18 Page(s)
This successfully produces a PDF with the only real format problems occurring where the images would be.

When I use the package however,
\documentclass[a4paper,12pt]{article}
\usepackage{graphicx}


\begin{document}
...

the Output
Image
And I get no product.
Same thing happens for the "graphics" package and in fact any indiscriminant package I want to use, be it a change of font colour or anything else.

All the packages I try to use I believe I already should have with the 'basic' MikTeX install but just in case, I go to MikTeX Package Manager and "graphicx" is not there though "graphics" is but if I try to install any package whatsoever, I get an error message. I get the same error message when I try to use MikTeX Update.

Code: Select all

MiKTeX Problem Report
Message: No connection could be made because the target machine actively refused it.

Data: connect failed in tcp_connect()
Source: Libraries\MiKTeX\PackageManager\PackageManager.cpp
Line: 1564
MiKTeX: 2.9
OS: Microsoft Windows Vista Business Edition, 32-bit Service Pack 2 (build 6002)
Invokers: explorer
SystemAdmin: yes
PowerUser: no
Root0: C:\Users\Raphael\AppData\Roaming\MiKTeX\2.9
Root1: C:\Users\Raphael\AppData\Local\MiKTeX\2.9
Root2: C:\ProgramData\MiKTeX\2.9
Root3: C:\Program Files\MiKTeX 2.9
UserInstall: C:\Users\Raphael\AppData\Roaming\MiKTeX\2.9
UserConfig: C:\Users\Raphael\AppData\Roaming\MiKTeX\2.9
UserData: C:\Users\Raphael\AppData\Local\MiKTeX\2.9
CommonInstall: C:\Program Files\MiKTeX 2.9
CommonConfig: C:\ProgramData\MiKTeX\2.9
CommonData: C:\ProgramData\MiKTeX\2.9
I've been battling this problem for a while now and thought it was because of my university's proxy that this wasn't working but I'm home now and it's still not working.

I do have the graphicx.sty and graphics.sty files in C:\Program Files\MiKTeX 2.9\tex\latex\graphics which came with the normal MikTeX 2.9 install. I thought these were the packages but I could be wrong.

Any clue what the cause is and how to solve it PLEASE?!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Graphicx and other packages don't work

Post by Stefan Kottwitz »

Hi,

welcome to the board!

The message GUI framework cannot be initialized points to a known issue with MiKTeX. Have a look at No output after recovering from system rebuild, there's a solution: switch off installing packages on-the-fly.

It seems that it's not the graphicx package, which causes the problem, because you said it's installed and in the log file LaTeX isn't complaining about that, but some lines later. I guess it's another package on which graphicx or another one depends.

Switch off installing packages on-the-fly, and have a look at the error message LaTeX brings then, it should tell you which package is missing.

Stefan
LaTeX.org admin
The CRU
Posts: 2
Joined: Sat Aug 18, 2012 12:36 am

Graphicx and other packages don't work

Post by The CRU »

Would you believe (I know you would) that that was all there was to it? :D
And I've read that in so many places over the past year. I think I got myself mixed up with another issue during the year that I solved but now I have a pdf with images. Thank you!

Ok but I don't believe it downloaded anything to fix the problem. The problem seems just to have been that option change.
I went from Settings to 'packages' to try and download a completely unrelated package, "TeXcount" to word-count my documents and got the same error code which I also think is embedding in my now working output (please ignore the warnings unless anyone knows of a way to get rid of them that doesn't destroy the layout of my document)(And I used a new document where I copied the text from the old and named it "Fixing"):
Image

And the error information from the package install attempt:

Code: Select all

MiKTeX Problem Report
Message: No connection could be made because the target machine actively refused it.

Data: connect failed in tcp_connect()
Source: Libraries\MiKTeX\PackageManager\PackageManager.cpp
Line: 1564
MiKTeX: 2.9
OS: Microsoft Windows Vista Business Edition, 32-bit Service Pack 2 (build 6002)
Invokers: explorer
SystemAdmin: yes
PowerUser: no
Root0: C:\Users\Raphael\AppData\Roaming\MiKTeX\2.9
Root1: C:\Users\Raphael\AppData\Local\MiKTeX\2.9
Root2: C:\ProgramData\MiKTeX\2.9
Root3: C:\Program Files\MiKTeX 2.9
UserInstall: C:\Users\Raphael\AppData\Roaming\MiKTeX\2.9
UserConfig: C:\Users\Raphael\AppData\Roaming\MiKTeX\2.9
UserData: C:\Users\Raphael\AppData\Local\MiKTeX\2.9
CommonInstall: C:\Program Files\MiKTeX 2.9
CommonConfig: C:\ProgramData\MiKTeX\2.9
CommonData: C:\ProgramData\MiKTeX\2.9
Thank you for the welcome btw
Post Reply