Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to put a figure with a subtitle but without the name "figure".

For example:

triangle

'This is a triangle'

and not put the name "Figure":

enter image description here

'Figure: This is a triangle'

I tried:

1.

\begin{figure}
\begin{center}
\includegraphics[scale=*]{fig.jpg}
\caption{*}
\end{center}
\end{figure}

2.

\begin{frame}
\includegraphics[scale=*]{fig.jpg}
\caption{*}
\end{frame}

And neither have worked.

share|improve this question
    
please indent your code examples with 4 spaces –  Thruston May 17 at 16:52
2  
Just don't use \caption and add the text as a normal paragraph. –  David Carlisle May 17 at 16:58
    
it is not working... –  Poli Tolstov May 17 at 17:06
1  
@PoliTolstov: You need to include the caption package in your preamble. Did you do that? –  Werner May 17 at 17:58
    
yes, it already has this package, but nothing has changed. –  Poli Tolstov May 17 at 20:20

3 Answers 3

Use the \caption* command from caption package.

\documentclass{article}

\usepackage{graphicx}

\usepackage{caption}

\begin{document}

\begin{figure}
  \centering
  \includegraphics{fig.jpg}
  \caption{This is a triangle.}
  \label{fig:tr1}
\end{figure}


\begin{figure}
  \centering
  \includegraphics{fig.jpg}
  \caption*{This is also a triangle.}
  \label{fig:tr2}
\end{figure}

\end{document}

enter image description here

enter image description here

share|improve this answer

Within a presentation (like beamer) there is very little need to have enumerated captions for images. Regardless, there is no need to always use a (floating) figure environment for including graphics, nor is it necessary to use \caption inside figure.

I would suggest merely using the center environment to center the object and add a piece of text below it to act like the caption:

enter image description here

\documentclass{beamer}
\let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764
\usepackage{graphicx}
\begin{document}

\begin{frame}
  This is text.

  \begin{center}
    \includegraphics[width=.5\linewidth]{example-image}

    This is a rectangle
  \end{center}

  Here is some more text.
\end{frame}

\end{document}
share|improve this answer

Another possibility is to customise the caption itself. Like this you can keep your syntax.

\documentclass{beamer}
\usepackage{graphicx}

\setbeamertemplate{caption}{\insertcaption}

\begin{document}

    \begin{frame}
        This is text.

        \begin{figure}
            \includegraphics[width=.5\linewidth]{example-image}
            \caption{This is a rectangle}
        \end{figure}

        Here is some more text.
    \end{frame}

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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