Graphics, Figures & Tables ⇒ subfigure remove captions
-
- Posts: 47
- Joined: Wed Nov 11, 2009 9:30 pm
subfigure remove captions
\begin{figure}[ht]
\centering
\subfigure[]{
\includegraphics[scale=.5]{pic1.png}
}
\subfigure[]{
\includegraphics[scale=.5]{pic2.png}
}
\label{fig:subfigureExample}
\caption{wowzers}
\end{figure}
But if I \usepackage{subfigure}, I get errors due to package conflicts (says subfigure is already defined, while declaring nothing at all results in \subfigure not working). So for now I'm using the above code with \usepackage{subfig}, which runs.
So whatever package I'm using, I'd like to get rid of the (a) and (b) below each image. I tried \renewcommand\thesubfigure{} but that didn't change anything.
Suggestions?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
subfigure remove captions
At least two:CoolnessItself wrote:...Suggestions?
a) Using \captionsetup from the caption package:
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{caption}
\begin{document}
\begin{figure}[!ht]
\captionsetup[subfigure]{labelformat=empty}
\centering
\subfloat[]{\rule{3cm}{2cm}}\quad
\subfloat[]{\rule{3cm}{2cm}}
\caption{wowzers}
\label{fig:subfigureExample}
\end{figure}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[!ht]
\centering
\begin{minipage}{.45\textwidth}
\centering
\rule{3cm}{2cm}
\end{minipage}
\begin{minipage}{.45\textwidth}
\centering
\rule{3cm}{2cm}
\end{minipage}
\caption{wowzers}
\label{fig:subfigureExample}
\end{figure}
\end{document}
2) Inside floating environments (table, figure, etc.) the \label command must always be used after the \caption command.