Graphics, Figures & TablesWeird text next to picture

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Harry L
Posts: 1
Joined: Wed Apr 18, 2018 1:28 pm

Weird text next to picture

Post by Harry L »

Hi!
I am a latex rookie so please beer with me!

I am trying to import a graph (pdf file) into my document but as you should be able to seethe result is weird.
Errorbild.PNG
Errorbild.PNG (27.71 KiB) Viewed 2055 times
Obviously I do not want "bilder/ttp.pdf" next to my picture.

This is the code I am using:
\begin{figure}
\centering
\includegraphics[width=0.5\textwidth]{../../../Latex Bilder/TTP.pdf}
\label{fig:imageGraph}
\caption{This graph shows the relationship between tests for the TTP variable}
\end{figure}

And I am using TeXmaker if that makes a difference.

Anyone got an idea of what my error is?

Thanks for the help!

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Weird text next to picture

Post by Stefan Kottwitz »

Hello Harry,

welcome to the forum!

Spaces / blanks in the file name or path can cause an issue. It can be fixed by renaming the folder (and doing the same with the \includegraphics argument), or by \usepackage{grffile}.

Stefan
LaTeX.org admin
Post Reply