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.
LVL 12
venkateshwarrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

avizitCommented:
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
0
yuzhCommented:
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!

0
venkateshwarrAuthor Commented:
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.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

venkateshwarrAuthor Commented:

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

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

venkat.
0
yuzhCommented:
True!
0
moduloCommented:
Closed, 500 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.