Graphics, Figures & TablesParagraph ended before ...

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mdrapk
Posts: 13
Joined: Mon Mar 11, 2013 6:31 pm

Paragraph ended before ...

Post by mdrapk »

Using TxC 2.0 Beta under Windows. Here's the code:

Code: Select all

\documentclass{book}%
\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{graphicx}
\usepackage{cool}
\begin{document}
\includegraphics[bb=5,8,10,15,width=5cm,height=7cm]{Pics/Fermat.png}
\end{document}
Here's the compile error, flagged after \includegraphics line:

Code: Select all

Paragraph ended before \Gread@parse@bb ...
An earlier version with the graphic in a figure worked.
BTW, if you know a graphics converter so I can generate EPS graphics and don't have to worry about the BB, that would be nice, but not the focus.
Last edited by Stefan Kottwitz on Sat Nov 08, 2014 4:05 pm, edited 1 time 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
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Paragraph ended before ...

Post by Stefan Kottwitz »

You could simply use pdfLaTeX, which is commonly used today. It directly supports PNG images.

Stefan
LaTeX.org admin
mdrapk
Posts: 13
Joined: Mon Mar 11, 2013 6:31 pm

Re: Paragraph ended before ...

Post by mdrapk »

Thanks for the tip about pdfLatex.

What I did wrong to get the 'paragraph ended' error. Any thoughts?
Tony
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Paragraph ended before ...

Post by Stefan Kottwitz »

Hi Tony,

with pdfLaTeX you don't need to worry about the bounding box.

If you use LaTeX, however, you need to separate the dimensions by spaces, as commas separate arguments:

Code: Select all

\includegraphics[bb=5 8 10 15,width=5cm,height=7cm,keepaspectratio]{Pics/Fermat.png}
Stefan
LaTeX.org admin
Post Reply