LaTeX forum ⇒ Graphics, Figures & TablesUnable 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

Postby richo123 » Wed May 13, 2020 12:23 am

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 10 times
ubndens.eps
(16.3 KiB) Downloaded 9 times
test.tex
(300 Bytes) Downloaded 7 times

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

Postby rais » Wed May 13, 2020 12:44 am

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

Postby richo123 » Wed May 13, 2020 12:50 am

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 7 times

richo123
Posts: 5
Joined: Wed May 13, 2020 12:16 am

Postby richo123 » Wed May 13, 2020 12:53 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: 268
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Wed May 13, 2020 1:02 am

you seem to be loading a local graphicx file which is quite old:
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. (/home/richard/texmf/tex/latex/aguplus/GRAPHICX.STY
  2. 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

Postby richo123 » Wed May 13, 2020 3:11 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: 268
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Wed May 13, 2020 7:06 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
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. 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

Postby richo123 » Wed May 13, 2020 9:23 pm

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


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 8 guests