I want to insert some pictures in my thesis (using book class). Everything seems OK until I resize my picture using scale=0.8 option. Suddenly four errors occur as follows.
- Line 33: ! Paragraph ended before \Gin@iii was complete.
- Line 34: ! LaTeX Error: \begin{figure} on input line 29 ended by \end{remark}.
- Line 34: ! Missing } inserted.
- Line 36: ! LaTeX Error: \begin{remark} on input line 25 ended by \end{document}.
Here is my code. Why did this happen, please? Is there an easy fix, please? I can resize my pictures before inserting them, but it is not so convenient, is it? Thank you!
\documentclass[a4paper, twoside, openright]{book}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amsmath}
\newtheorem{theorem}{Theorem}[chapter]
\theoremstyle{definition}
\newtheorem{remark}[theorem]{Remark}
\usepackage{graphics}
\begin{document}
% set page numbers to roman and suppress chapter numbers
\frontmatter
\mainmatter
\chapter{Introduction and Motivation}
\begin{remark}
Here is a picture.
\begin{figure}
\centering
\includegraphics[scale=0.5]{head}
\end{figure}
\end{remark}
\end{document}
graphicxpackage, notgraphics. Note thexat the end. – Jan 28 '15 at 07:17width=\linewidth,width=.6\linewidthorheight=.2\textheightinstead ofscale=.8. – Fran Jan 28 '15 at 08:07graphicxis older (probably, by a day or so:-) but anyway the rest of your comment is correct – David Carlisle Jan 28 '15 at 08:25