\documentclass[journal,article,pdftex,10pt,a4paper]{IEEEtran}
Error as shown in the title appears:
Package pdftex.def Error: PDF mode expected, but DVI mode detected!(pdftex.def) If you are using `latex', then call `pdflatex'. }\@ehc
It is probably because of the difference between the compilation of latex
and pdflatex
. Using the mode of latex
, the latter cannot be compiled.
The option pdftex is for use with pdfLaTeX. If eps figure are used, remove the option pdftex and use LaTeX and dvi2pdf.
In other words, eps
(embedded PostScript) image documents should be used with latex
mode, while pdftex
will cause problems (the solution is to try to delete pdftex
).
In addition, the same problem will occur when I see my net friends in the following usage:
\usepackage[pdftex]{graphicx}
The solution is to remove the [pdftex]
, the graphicx
package will compile normally, but in the pdftex
mode, it is better to convert the . Eps
file into the . PDF
file.
If you use commands such as \includegraphics{file}
to load the display image file, the two modes mentioned above will automatically complete the extension of the filefile
, and latex
mode will be supplemented with file.eps
. While pdftex
will be completed as file.pdf
(or file.png
, file.jpg
).
Read More:
- Package pdftex.def Error
- Idea ignores compilation errors and runs in eclipse compilation mode
- Solve the problem of available for offline mode in Android studio compilation
- error: ‘for‘ loop initial declarations are only allowed in C99 mode
- Shortcut to exit zoom mode in VirtualBox [off]
- Compiler problem, error: ‘for’ loop initial declarations are only allowed in C99 mode
- How to Fix error: ‘for’ loop initial declarations are only allowed in C99 mode
- Solve the problem of USB mouse failure in the laptop mode of Ubuntu
- [solution] the system is running in low graphics mode
- Nacos starts in cluster mode and reports an error
- RuntimeError: cudnn RNN backward can only be called in training mode
- [Solved] Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
- Jenkins series installation and deployment in docker mode
- How to Fix RTL8188 “Set Mode” (8B06) Error
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- A solution to the default invalid host only mode of CentOS virtual machine in VirtualBox
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- Error: ~ /. Vuerc may be updated. Please delete it and re run vuercli in manual mode
- Installation user interface mode not supported solution
- Rk3399 boot into loader mode