Link to home
Start Free TrialLog in
Avatar of venkateshwarr
venkateshwarr

asked on

Urgent: Latex question

Hi,

I have prepared a latex document in which I inserted a figure as..

\begin{figure}[ht]
\centerline{\psfig{file=figs/test.eps,height=12cm}}
\caption{\small Test.} \label{fig:test}
\end{figure}

But when I compile this, I get the figure, but I also get a small icon like figure on the top left corner of the page.
How can I fix this?

Also how do I cite a picture. I am doing in the following way but I am getting error "! Undefined control sequence."

\begin{figure}[ht]
\centerline{\psfig{file=figs/test.eps,height=8cm}}
\caption{\small test~\cite{test}.}
\label{fig:tes}
\end{figure}

I need this urgently I can increase the point if you give me a good solution

Thanks
venkat.
Avatar of avizit
avizit

can you try this ( I am just pasting from my own latex file )


\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.60]{fig.eps}
\caption{Running time vs. Problem size}
\label{graph}
\end{center}
\end{figure}

later when you need to cite you use  

....This can also be seen from the graph (Fig \ref{graph}).


modify this to suit your needs

abhijit
Avatar of yuzh
I have not used Latex for more than 10 years now.

Do you have to summit your report in Latex format or just use LaTex to produce a postscript
doc?

If your final report is postscript, you can use MS Word to edit the doc, then use Adobe Acrobat
or Ghostscript/Ghostview (Free) to convert the Word DOC into postscript format.

http://www.cs.wisc.edu/~ghost/index.htm

If you have to write the doc in Latex, please read the sample codes in the following pages.

http://www.ucs.ed.ac.uk/usd/scisup/faq/Latex/figures.html
http://www-group.slac.stanford.edu/techpubs/help/figures/latex2efigs.html
http://www.hep.man.ac.uk/u/jenny/jcwdocs/latex/figures.html
http://www.iam.ubc.ca/~newbury/tex/figures.html

Good luck!

Avatar of venkateshwarr

ASKER

Well Thanks lot a guys I found the solution myself. There was some problem with
the figure itself.

abhijit, I tried that way already...
yuzh, thanks for the links, but I want a latex document.

Anyway thanks for ur time.

venkat.

If u guys dont have any problem, I request the moderator to close this question.

venkat.
Please post your Solution and ask CS to PAQ/refund.
The eps files generated on windows is not always compatable with
latex file generated on unix.

venkat.
True!
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial