Graphics, Figures & Tables ⇒ Unable to compile simple latex file with a graphic
Unable to compile simple latex file with a graphic
The following tex file does not compile with pdflatex
\RequirePackage{latexbug} % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}
\usepackage{graphics}
\begin{document}
text
\begin{figure}[tbp]
\centering
\includegraphics[width=0.7\textwidth]{ubndens}
\caption{test}
%\label{fig:test}
\end{figure}
\end{document}
I have attached the log file and the graphic file
It worked with a previous release of texlive (2019) but not texlive 2020
Any help much appreciated.
\RequirePackage{latexbug} % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}
\usepackage{graphics}
\begin{document}
text
\begin{figure}[tbp]
\centering
\includegraphics[width=0.7\textwidth]{ubndens}
\caption{test}
%\label{fig:test}
\end{figure}
\end{document}
I have attached the log file and the graphic file
It worked with a previous release of texlive (2019) but not texlive 2020
Any help much appreciated.
- Attachments
-
- test.log
- (3.17 KiB) Downloaded 160 times
-
- ubndens.eps
- (16.3 KiB) Downloaded 179 times
-
- test.tex
- (300 Bytes) Downloaded 181 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Unable to compile simple latex file with a graphic
I doubt that.
Try loading graphicx instead of graphics package (the option processing is a bit different, see `texdoc grfguide` for more info on that).
KR
Rainer
Try loading graphicx instead of graphics package (the option processing is a bit different, see `texdoc grfguide` for more info on that).
KR
Rainer
Unable to compile simple latex file with a graphic
I switched to graphicx (which was what I tried originally) and the message is identical. I attach the logfile
- Attachments
-
- test.log
- (3.46 KiB) Downloaded 180 times
Unable to compile simple latex file with a graphic
As further information I compiled the original file on Debian stable (stretch) and it worked fine. I am currently using Ubuntu 20.04 which uses texlive 2020
Unable to compile simple latex file with a graphic
you seem to be loading a local graphicx file which is quite old:
not sure why it is even found; graphicx.sty and GRAPHICX.STY are different files (under linux, at least)
KR
Rainer
Code: Select all
(/home/richard/texmf/tex/latex/aguplus/GRAPHICX.STY
Package: graphicx 1996/10/31 v1.0c Enhanced LaTeX Graphics (DPC,SPQR)
KR
Rainer
Unable to compile simple latex file with a graphic
Yes I was worried there may have been an issue with local files (I submit to agu journals) so I created a new user account and compiled there unfortunately with identical results and none of the sty files from agu got pulled in.
I should add that this problem occurs with ALL my tex files and ALL the graphics they use. It only began when I upgraded my distribution from Ubuntu 18.04 to Ubuntu 20.04 recently. Before that all files compiled without issue (even with the old sty files).
I should add that this problem occurs with ALL my tex files and ALL the graphics they use. It only began when I upgraded my distribution from Ubuntu 18.04 to Ubuntu 20.04 recently. Before that all files compiled without issue (even with the old sty files).
Unable to compile simple latex file with a graphic
and do you have a log file from such a run?
The switch in kpathsea was done around TL18: a so-called casefolding search was implemented as a fallback. You could add
to texmf.cnf file in /usr/local/texlive/2020 on your system to make searches on the texmf tree case sensitive...
KR
Rainer
The switch in kpathsea was done around TL18: a so-called casefolding search was implemented as a fallback. You could add
Code: Select all
texmf_casefold_search=0
KR
Rainer
Unable to compile simple latex file with a graphic
Rainer,
After very careful checking using another test account I discovered that the problem was indeed what you had suggested. An old graphics.sty file was the culprit. Once deleted everything works fine. It must be that the latest texlive 2020 finally caused the old files to become a problem since it worked with texlive 2019. Thanks very much for your help!!
Richard
After very careful checking using another test account I discovered that the problem was indeed what you had suggested. An old graphics.sty file was the culprit. Once deleted everything works fine. It must be that the latest texlive 2020 finally caused the old files to become a problem since it worked with texlive 2019. Thanks very much for your help!!
Richard