Graphics, Figures & TablesInclusion of external Graphics File fails

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
yperionas
Posts: 8
Joined: Fri Dec 03, 2010 6:56 pm

Inclusion of external Graphics File fails

Post by yperionas »

Dear all,
I am trying to add a .pdf image in a pdf page output with no success. Iam using the following commands:

Code: Select all

\documentclass[11pt,b5paper,twoside]{article}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\includegraphics[width=1.5cm\textwidth][height=1.5cm\textheight]{./bla.pdf}
\end{document}
and I get the error:

Code: Select all

! Paragraph ended before \Gin@iii was complete.
As you can see I am using the graphicx package. I have tried converting an eps to a pdf and compiling with Latex with no success and I have also tried compiling with a .pdf image and PDFlatex as you you can see above, again with no success.

I have run out of ideas... Any help would be much appreciated!
Last edited by yperionas on Thu Aug 04, 2011 5:54 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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Inclusion of external Graphics File fails

Post by frabjous »

The part:

Code: Select all

[width=1.5cm\textwidth][height=1.5cm\textheight]
uses the wrong syntax. I can't really understand what 1.5cm\textwidth is even supposed to mean, but the correct syntax would be something like:

Code: Select all

\includegraphics[width=1.5cm,height=1.5cm]{bla.pdf}
or perhaps:

Code: Select all

\includegraphics[width=0.5\textwidth,height=0.5\textwidth]{bla.pdf}
yperionas
Posts: 8
Joined: Fri Dec 03, 2010 6:56 pm

Re: Inclusion of external Graphics File fails

Post by yperionas »

frabjous thank you very much for the tip. You are right the syntax you have proposed fixed the error. Thankfully there are people like you around having more experience to help.
Post Reply