Graphics, Figures & Tables ⇒ Using »graphicx« package with MiKTeX
-
- Posts: 1
- Joined: Wed Feb 23, 2011 2:47 am
Using »graphicx« package with MiKTeX
"! 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?
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
Using »graphicx« package with MiKTeX
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".
- 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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10