## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Problem with reading image name in LaTeX Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
ciema7
Posts: 10
Joined: Sat Nov 10, 2018 2:31 am

### Problem with reading image name in LaTeX

Hello Friends,

I have really simple question. Can You advise me why I cannot type to this code (which insert picture) full name or any numbers in the file name and I can only insert the one letter to provide inserting picture? I mean when I name my picture for example "graphics" or "g1" it won't work, but when I insert "g" as a name it will ! Is there any solution or do i have to name each of my pictures as "a", "b", "c", "d".... etc ? Here is my code:

\begin{figure}[ht]	\centering	\includegraphics[width=12cm, height=8cm]graphics	\caption{This is the picture description}	\label{fig:graphics}\end{figure}

Thank You in advance for help.
Last edited by Stefan Kottwitz on Sat Nov 17, 2018 12:58 pm, edited 1 time in total.
Reason: code marked

Stefan Kottwitz
Posts: 9242
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

the image name is an argument (parameter) for the \includegraphics command. Such mandatory arguments have to be in curly braces. So this would work:

\includegraphics[width=12cm, height=8cm]{graphics}

Stefan

ciema7
Posts: 10
Joined: Sat Nov 10, 2018 2:31 am
Stefan Kottwitz wrote:Hi,

the image name is an argument (parameter) for the \includegraphics command. Such mandatory arguments have to be in curly braces. So this would work:

\includegraphics[width=12cm, height=8cm]{graphics}

Stefan

Of course. Thank You very much

### Who is online

Users browsing this forum: No registered users and 8 guests