[Tugindia] using subfig.sty

David Owen twychicky at gmail.com
Thu Dec 3 16:28:55 CET 2009


Hi, Everyone,
I would like some help with the following:
I want to use subfig.sty to create side-bysi8de graphics. I have used the
following code:

\documentclass[12pt]{article}
\usepackage{amsmath,amsthm,amssymb}
\usepackage[dvips]{graphics}
\usepackage{graphicx,caption}
\usepackage{float}
\usepackage{subfloat}
\usepackage{psfrag}
\usepackage{subfig}

\begin{document}

\begin{figure}
\centering
\subfloat[]{\includegraphics[width=0.3\textwidth]{ch3_fig1.eps}} \qquad
\subfloat[]{\includegraphics[width=0.3\textwidth]{ch3_fig1.eps}}
\caption{Fig title}
\label{}
\end{figure}
\end{document}

In looking at the DVI file I get the message:
MiKTeX Problem Report
Message: The page could not be rendered.
Data: %%[ Error: syntaxerror; OffendingCommand: %ztokenexec_continue ]%%
MiKTeX GPL Ghostscript 8.60: Unrecoverable error, exit code 1

Source: C:\work3\miktex-2.8\Libraries\MiKTeX\Dvi\DviPage.cpp
Line: 1045
MiKTeX: 2.8
OS: Microsoft Windows Vista Home Premium Edition, 32-bit Service Pack 2
(build 6002)
SystemAdmin: no
PowerUser: no
Root0: C:\Users\David\AppData\Roaming\MiKTeX\2.8
Root1: C:\Users\David\AppData\Local\MiKTeX\2.8
Root2: C:\ProgramData\MiKTeX\2.8
Root3: C:\Program Files\MiKTeX 2.8
UserInstall: C:\Users\David\AppData\Roaming\MiKTeX\2.8
UserConfig: C:\Users\David\AppData\Roaming\MiKTeX\2.8
UserData: C:\Users\David\AppData\Local\MiKTeX\2.8
CommonInstall: C:\Program Files\MiKTeX 2.8
CommonConfig: C:\ProgramData\MiKTeX\2.8
CommonData: C:\ProgramData\MiKTeX\2.8

Can someone tell me what the correct syntax is? Or what I have done wrong?
I am using Miktex 2.8 on a Vista system.
Any help will be appreciated.
Thanks,
D.O.


More information about the tugindia mailing list