1

When I insert a figure in latex, i see under the caption the term "figure". The editor is Gummi on Ubuntu.

enter image description here

The code that I inserted this code:

\usepackage{caption}
\begin{figure}[htp]
\centering
\includegraphics[scale=0.5]{Plot.jpg}
\caption{Input used to produce this paper.}
\end{figure}
1

Reducing the code leads to the following minimal working example

\documentclass{ieee}
\usepackage{caption}
\begin{document}
\begin{figure}[htb]
\caption{Input used to produce this paper.}
\label{fig-example}
\end{figure}
\end{document}

You get a warning, that package caption does not work with the class, commenting (prohibiting) the package loading solves the issue.

Disclaimer: The class is pretty old and IEEE has replacements.

| improve this answer | |
  • Thanks, but if i want center the caption text of the figure, how can i do this ? – Ellipticat Mar 27 '15 at 20:21
  • This is a class for submission to a journal. Ask the journal editors, they might point you to the new replacement classes. If you don't want to submit to IEEE, use class article to get your work done. – Johannes_B Mar 27 '15 at 20:24
0

This is a my guide to solve this problem on Ubuntu systems.

1) Install the recommended fonts

sudo apt-get install texlive-fonts-recommended

2) Install Gummi from Ubuntu Software Center

3) Install these packets for Latex

sudo apt-get install texlive texlive-latex-extra texlive-math-extra texlive-pstricks texlive-science latex-beamer

4) Download the model IEEEtran from: http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/

5) After you can open the model and use:

\usepackage{caption}

In the figure, type caption in this mode:

\begin{figure}[htb]
\centering
\caption{Input used to produce this paper.}
\label{fig-example}
\end{figure}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.