Graphics, Figures & Tables ⇒ Remove Pathname from .pdf output
Remove Pathname from .pdf output
I am using the following packages in my TeXnicCenter to output my file into .pdf.
\documentclass{article}
\ifpdf
\usepackage[pdftex]{graphicx}
\pdfcompresslevel=9
\else
\usepackage{graphicx}
\fi
\usepackage{pdflscape}
\usepackage{array}
\usepackage{amsmath}
My LaTeX code was:
\begin{figure}
\centering
\includegraphics[clip=true,trim=35 80 45 65]{D:/Mypapers/fig1.pdf}
\label{fig:fig1}
\end{figure}
But the output .pdf file has the pathname of my graphics file inserted in the figure! i.e., "Mypapers/fig1.pdf"
How do I remove the pathname literally written across the figures in my output .pdf file?
ThanQ
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Remove Pathname from .pdf output
I tried just deleting {D:/....} from
\includegraphics[]{D:/}
but then the graphs are not found. How do we delete the directory from the .pdf output?

Re: Remove Pathname from .pdf output
"Regarding your problem you should avoid any special characters (blank spaces, underscores, ...) in the name and the path of the file. As an alternative you can try the grffile package from the oberdiek bundle."