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.

Is it possible to caption the two figures as Figure x.a, Figure x.b?

share|improve this question
    
You need to be more specific. Why not post an minimal working example (MWE) to explain what you have at the moment, and what you would like to get? –  Jubobs Feb 14 at 13:36

3 Answers 3

up vote 1 down vote accepted

I think the subcaption package does what you are looking for. Here's a MWE:

\documentclass{article}
\usepackage{subcaption}

\DeclareCaptionSubType*{figure}
\captionsetup[subfigure]{labelformat=simple}

\begin{document}
\begin{figure}
\centering
\subcaptionbox{First letter}
[.4\linewidth]{\Huge A}
\subcaptionbox{Second letter}
[.4\linewidth]{\Huge B}
\caption{Two letters}\label{fig:letters}
\end{figure}
\end{document}

which produces the following output:

output

You can include a "graphic" (picture, etc.) by use of the graphicx package and then replacing \Huge A and \Huge B with the command \includegraphics{<filename>}.

share|improve this answer

If you mean can you alter the format of how you can change a reference to "Figure 1.x" from "Figure 1x" you might like to check out the answer to a question I asked a while back (note the example shows how you do it both with the standard ref and cleveref

Is it possible to make a reference to a subfigure to appear Figure 2(a) with cleveref?

share|improve this answer

You can use subfig package.

\begin{figure}
\centering
\subfloat[][\emph{Text one}.]
   {\includegraphics[width=.45\textwidth]{file1}} \quad
\subfloat[][\emph{Text 2}.]
   {\includegraphics[width=.45\textwidth]{file2}} \\
\subfloat[][\emph{Text 3}.]
   {\includegraphics[width=.45\textwidth]{file3}} \quad
\subfloat[][\emph{Text4}.]
   {\includegraphics[width=.45\textwidth]{file4}}
\caption{Textr.}
\label{fig:subfig}
\end{figure}
share|improve this answer
    
An alternative would be subcaption. –  Johannes_B Feb 14 at 14:36

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.