2

I'm trying give the reference to the subfigure, but I want that instead of figure number as, 1a and 1b, I want them to be 1, 2 etc. and in sync with normal figure number. Can anyone give any insight to that?

5

The floatrow package is done for that. It has an eponymous environment that takes an argument, the number of figures in a row (default is 2) and figures are inserted in the form: \ffigbox{image}{caption title+label}. Similarly there is a \ttabbox command for tables. If you want subfigures, there is a subfloatrow environment. The package cooperates with the caption package, and it supports sideways captions.

Here is a simple example:

\documentclass[a4paper, 11pt]{article}
\usepackage[utf8]{inputenc}

\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{floatrow}

\begin{document}

\lipsum[1]
\begin{figure}[!htbp]
\begin{floatrow}
\ffigbox[\FBwidth]
{\includegraphics[scale = 0.8]{sendak}}
{\caption{Where Wild Things are}
\label{fig:Maurice}}

\ffigbox[\FBwidth]
{\includegraphics[scale = 0.5]{AliceSteadman}}
{\caption{Ralph}
\label{fig:Wabbit}}
\end{floatrow}
\end{figure}%
\lipsum[1]

\end{document} 

enter image description here

|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.