I want to use »graphicx« with MiKTeX (v2.8). I guess I am supposed to "install" the package in some way, but I can't seem to find where to get it / how to install it. Any recommendations? (I am a total beginner to Latex...so far I've used an online compiler which already had the »graphicx« package so I was able to use it for graphics in my paper, but now I am trying to compile with TeXworks, and when I try to call it with \usepackage{graphicx} , I get an error
"! LaTeX Error: LaTeX2e command \usepackage in LaTeX 2.09 document.
l.4 \usepackage
{graphicx}
?
"
and the compiler fails.
How do I get »graphicx« to work?
Graphics, Figures & Tables ⇒ Using »graphicx« package with MiKTeX
NEW: TikZ book now 40% off at Amazon.com for a short time.

Using »graphicx« package with MiKTeX
If you use TeXworks, you should be able to use MikTeX's auto-installation feature without any problem.
Please click here and see under "TeXnicCenter compatibility":
Please click here and see under "TeXnicCenter compatibility":
If this doesn't help, please post a MWE.Remedy: start MiKTeX Options and choose either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Using »graphicx« package with MiKTeX
The compiler runs in LaTeX2.09 compatibility mode since your document presumably begins as follows.theneedtoknow wrote:[…] I get an errorand the compiler fails. […]Code: Select all
"! LaTeX Error: LaTeX2e command \usepackage in LaTeX 2.09 document. l.4 \usepackage {graphicx} ? "
Code: Select all
\documentstyle[…]{article}
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\begin{document}
Hello World!
\end{document}
[1] View topic: LaTeX Resources for Beginners
Beat regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10