Graphics, Figures & TablesSuppress Name and Path of included Graphics File?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
EzekielAxel
Posts: 1
Joined: Thu Aug 27, 2020 12:41 pm

Suppress Name and Path of included Graphics File?

Post by EzekielAxel »

How can I suppress the filename and path of a file, when using the \includegraphics command, from being displayed in the output. We I insert a figure, it shows the full path for that figure and makes the figure look very odd.


Thank You All

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Suppress Name and Path of included Graphics File?

Post by Ijon Tichy »

Usually the filenames are only shown on draft mode, but then the images are not shown. So it is very unusual that you get both. AFAIK with old TeX distributions this could happen, if you have filenames with spaces. With up-to-date LaTeX and graphicx package this should never happen. So if I'm right, and there are spaces in the paths/filenames, best solution would be to update your TeX distribution or to rename the files replacing the spaces, e.g., by underscores or -. If I'm wrong, please show us a Infominimal working example.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply