Graphics, Figures & TablesUnable to compile simple latex file with a graphic

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

Unable to compile simple latex file with a graphic

Post by richo123 »

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
(3.17 KiB) Downloaded 160 times
ubndens.eps
(16.3 KiB) Downloaded 179 times
test.tex
(300 Bytes) Downloaded 181 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Unable to compile simple latex file with a graphic

Post by rais »

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

Unable to compile simple latex file with a graphic

Post by richo123 »

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

Unable to compile simple latex file with a graphic

Post by richo123 »

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

Unable to compile simple latex file with a graphic

Post by rais »

you seem to be loading a local graphicx file which is quite old:

Code: Select all

(/home/richard/texmf/tex/latex/aguplus/GRAPHICX.STY
Package: 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

Unable to compile simple latex file with a graphic

Post by richo123 »

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

Unable to compile simple latex file with a graphic

Post by rais »

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

Code: Select all

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

Unable to compile simple latex file with a graphic

Post by richo123 »

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
Post Reply