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've searched the web, but I didn't have any luck with this. I have two pictures in a document, and I would like for one to have a caption, and for the other not to have one.

So far I've only found how to remove the caption, but the 'Figure 1' part will still stay, and I want that to be gone as well, but still to be able to have a caption on the second figure.

Is this possible?

share|improve this question
    
Well just remove the \caption command entirely. If yo don't have such a command in your document you might consider to provide a MWE –  bloodworks Jan 14 '13 at 11:24
    
Oh! I was getting the error due to hypcap package! I didn't noticed that : It works now. Thanks. –  dingo_d Jan 14 '13 at 11:29
1  
Otherwise you could use \usepackage[labelformat=empty]{caption} –  Rico Jan 14 '13 at 11:32
1  
Package hypcap gives an example for a figure without caption using \capstartfalse ...\capstarttrue. –  Heiko Oberdiek Jan 14 '13 at 11:58
add comment

closed as too localized by Harish Kumar, lockstep, bloodworks, Stefan Kottwitz Jan 14 '13 at 11:56

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 1 down vote accepted

You get a caption only if you define one. But maybe I'm missing something. In the following example I used the figure-environment, but you can include graphics without using figure, when you want to place the figure exactly 'here'.

\documentclass[11pt]{article}
\usepackage{graphicx}
\begin{document}
Some Text

% Figure without caption
\begin{figure}[t]
  \centering
  \includegraphics[height=4cm]{example-image-a}
\end{figure}

More Text

%Figure with caption 
\begin{figure}[b]
  \centering
  \includegraphics[height=4cm]{example-image-b}
  \caption{My caption}
  \label{fig:1}
\end{figure}
\end{document}
share|improve this answer
add comment

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