Graphics, Figures & TablesInclusion of Graphics Files fails

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Ethel
Posts: 4
Joined: Wed Nov 23, 2011 5:15 pm

Inclusion of Graphics Files fails

Post by Ethel »

Hello,

I'm using MiKTeX 2.8 and I'm having some problem in including EPS files. I wrote the code just like the way it needs to be written, but still when i try to run the code with WinEdt 5.5 it tells me error in method name or sometimes attribute name. and show this error.
! Argument of \Gin@iii has an extra }.
<inserted text>
\par
l.22 ...ng{\includegraphics[width=3.3in]{ocs.eps}}
Please tell me how can i get rid of this problem.

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

Inclusion of Graphics Files fails

Post by Stefan Kottwitz »

Hi Ethel,

welcome to the board!

I guess you are using the graphics package. Use graphicx instead, if you would like to use such optional key=value arguments to \includegraphics:

Code: Select all

\usepackage{graphicx}
Stefan
LaTeX.org admin
Ethel
Posts: 4
Joined: Wed Nov 23, 2011 5:15 pm

Re: Inclusion of Graphics Files fails

Post by Ethel »

i have added the \usepackage(graphics) but still its not working.
do i have to add some other code for activating \usepackage(graphics) command.
thanks for your response
Ethel
Posts: 4
Joined: Wed Nov 23, 2011 5:15 pm

Re: Inclusion of Graphics Files fails

Post by Ethel »

dude
i have solved the problem of including .eps file using your instruction.
thank you

but i guess fate isn't in my favor. new problem arised...now i can't see any kind of contents including my table of contents and reference list.
please help me....
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Inclusion of Graphics Files fails

Post by Stefan Kottwitz »

Perhaps you did not use a command which produces entries for the table of contents.

Just explain or show some code.

Stefan
LaTeX.org admin
Ethel
Posts: 4
Joined: Wed Nov 23, 2011 5:15 pm

Inclusion of Graphics Files fails

Post by Ethel »

thnx for ur response. here is my main code:

Code: Select all

\documentclass[12pt]{report}
\usepackage{graphicx}
\usepackage{acronym}
%\usepackage{here}

\input{cuthesis.sty}
\input{psfig.sty}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

% Cross-reference commands.
\newcommand{\xf}[1]{Figure~\ref{#1}}
\newcommand{\xp}[1]{page~\pageref{#1}}
\newcommand{\xs}[1]{Section~\ref{#1}}
\newcommand{\xt}[1]{Table~\ref{#1}}
\newcommand{\xa}[1]{Appendix~\ref{#1}}

% Commands for class names, method names, attribute names
\newcommand{\cl}[1]{{\sc #1}}
\newcommand{\mt}[1]{{\it #1}}
\newcommand{\at}[1]{{\sf #1}}

% From dept
% \def\setspacing#1{\renewcommand{\baselinestretch}{#1}\small\normalsize}
\def\setspacing#1{\renewcommand{\baselinestretch}{1.0}\small\normalsize}

% Complies with the thesis office
\setlength{\oddsidemargin}{0.40in} \setlength{\topmargin}{-0.50in}
%\setlength{\textwidth}{6.0in}
\textwidth 6.20in \setlength{\textheight}{8.75in}
\setlength{\headsep}{0.50in}
\parskip=0.5cm


% Now go to 1.5 spacing
\renewcommand{\baselinestretch}{1.5}\small\normalsize

% From dept
\newenvironment{shortfigure}%
{\begin{figure}\setspacing{1}}%
{\end{figure}}


{\begin{table}\renewcommand{\baselinestretch}{1.5}\small\normalsize}%
{\end{table}}

\begin{document}

\include{frontmat}

\include{introduction}
\include{pimsm}
\include{ipsec}
\include{pimsec}
\include{verify}
\include{conclusion}
\bibliographystyle{plain}

\bibliography{bib}
\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Inclusion of Graphics Files fails

Post by Stefan Kottwitz »

You need to use the \tableofcontents command, and some \chapter, \section, \caption commands (and \cite or \nocite) ... there's none in your code, as you posted it, so there's not table of contents.

Stefan
LaTeX.org admin
Post Reply