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

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

User avatar
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