Graphics, Figures & TablesGraphics Inclusion with unwanted Side Effect

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Msonic
Posts: 5
Joined: Sun Apr 15, 2012 12:11 am

Graphics Inclusion with unwanted Side Effect

Post by Msonic »

Hi, I am using TeXniccenter to load a JPG graph in my latex file, the result is attached.

Note that there is a 'line.jpg' on the lower left corner in the picture, which is a part of the picture's name on my computer. I tried many ways to get rid of it, but failed. The code I use is

Code: Select all

\begin{figure}[htbp]
	\centering
	\includegraphics[width=0.70\textwidth]{perturbing line.jpg}
	\caption{Perturbing line}
	\label{fig:perturbing_line}
\end{figure}
Would anyone tell, why there is my pic's name on it, and how to get rid of it? The only solution so far is that I use [width=1.00\textwidth],but I don't need such a huge picture.
Attachments
graph-side-effect.jpg
graph-side-effect.jpg (17.4 KiB) Viewed 1555 times
Last edited by localghost on Sat Jun 02, 2012 6:48 pm, edited 2 times in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphics Inclusion with unwanted Side Effect

Post by localghost »

Avoid special characters (blank spaces, underscores, …) in the path and the name of the external file. Alternatively use the grffile package from the oberdiek bundle for enhanced file processing.


Thorsten
Post Reply