## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Unable to compile simple latex file with a graphic Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
richo123
Posts: 5
Joined: Wed May 13, 2020 12:16 am

### 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.
Attachments
test.log
ubndens.eps
test.tex

rais
Posts: 280
Joined: Sun Nov 16, 2014 8:51 pm
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

richo123
Posts: 5
Joined: Wed May 13, 2020 12:16 am
I switched to graphicx (which was what I tried originally) and the message is identical. I attach the logfile
Attachments
test.log

richo123
Posts: 5
Joined: Wed May 13, 2020 12:16 am
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

rais
Posts: 280
Joined: Sun Nov 16, 2014 8:51 pm
you seem to be loading a local graphicx file which is quite old:
(/home/richard/texmf/tex/latex/aguplus/GRAPHICX.STYPackage: graphicx 1996/10/31 v1.0c Enhanced LaTeX Graphics (DPC,SPQR)

not sure why it is even found; graphicx.sty and GRAPHICX.STY are different files (under linux, at least)

KR
Rainer

richo123
Posts: 5
Joined: Wed May 13, 2020 12:16 am
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).

rais
Posts: 280
Joined: Sun Nov 16, 2014 8:51 pm
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
texmf_casefold_search=0

to texmf.cnf file in /usr/local/texlive/2020 on your system to make searches on the texmf tree case sensitive...

KR
Rainer

richo123
Posts: 5
Joined: Wed May 13, 2020 12:16 am
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