MiKTeX and proTeXtUpdated MikTeX and PNG/JPEG not working

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
JRCD
Posts: 2
Joined: Sun Feb 25, 2018 2:15 am

Updated MikTeX and PNG/JPEG not working

Post by JRCD »



Usually I find all of my answers from others in the larger community. I'm a late adopter and so lots of work has been done before I find my problems. Thanks. But, this time I'm stumped. I updated my MiKTeX last week and then no jpeg or png files would be incorporated into the pdf file. I found a hint that this was a 64-bit problem, so I just reinstalled the latest 32-bit version. The tex file compiles without error, but again no images.

Using latex/dvips/ps2pdf worked for eps. But, neither the latex command in emacs nor the pdflatex dos command window produced files with images. They compiled without error, but the resulting pdf was white where the images should have been.

I'm using files that I used just last week for presentations. They worked just fine. This week nothing is working. So, I'm happy to post an example of my code, but it feels like the upgrade not working for me.

Please let me know. Most of my life is on tex and I need it working...

Thanks.

Here's the example, but again, the full beamer presentation I used for a talk last Friday will now not produce a single image, just white space where the images should be.

My test file:

\begin{document}
test\\

\includegraphics[width=64mm,natwidth=610,natheight=642]{pics//bad.png}\\

and more tests

\includegraphics[width=64mm,natwidth=610,natheight=642]{pics//packard4.jpg}\\

and even more tests

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Updated MikTeX and PNG/JPEG not working

Post by Johannes_B »

Your code snippets are useless. Please try the MWE from the Wikibook. What do you get?

Crosspost
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Updated MikTeX and PNG/JPEG not working

Post by Stefan Kottwitz »

Welcome to the forum!

Perhaps post actual code, that can be compiled and tested (Infominimal working example). The only issue I see is the double slash // in the file name, there should be a single slash separating parts of path and file name.

Stefan
LaTeX.org admin
JRCD
Posts: 2
Joined: Sun Feb 25, 2018 2:15 am

Updated MikTeX and PNG/JPEG not working

Post by JRCD »

Thank you both for your replies...and for the MWE lesson. It turns out that it was the natwidth/natheight terms in the \includegraphics commands. When I removed them, the file compiled with the images. My fault. I clipped the natwidth terms from someone online and it's worked for a year since I did that. But, the update didn't like both the width and nat width.

As for the double slash, it's another legacy of more than a decade using MikTex. The double slash always worked for me so I never had a reason to change it. I've been doing my papers, lectures, and a book in LaTeX. I even wrote my own calendar program in perl that wrote the LaTex code to produce the calendar. But, something like this happens and I realize I'm still basically a beginner on LaTeX when it comes to the underlying framework.

I very much appreciate your help. Thanks, Chris.
Post Reply