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

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

Stefan Kottwitz
Site Admin
Posts: 10335
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: 10335
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