Graphics, Figures & Tablesalign left in subfigure captions

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jbdreamworksnv
Posts: 4
Joined: Thu Jul 29, 2010 11:04 am

align left in subfigure captions

Post by jbdreamworksnv »

Hi, does anyone know how you can align a subfigure caption to the left? As default, the subfigure captions are justified.

I tried \raggedright in the square brackets but this didn't help.

My code

Code: Select all

\begin{figure}[p]
\begin{center}
\subfigure[non-collimated projection and observation with crossed optical axes]
{\label{1a}\includegraphics[scale=0.1625]{fig1a.png}}
\subfigure[non-collimated projection and observation with crossed optical axes2]
{\label{1b}\includegraphics[scale=0.1625]{fig1b.png}}
\subfigure[non-collimated projection and observation with crossed optical axes3]
{\label{1c}\includegraphics[scale=0.1625]{fig1c.png}}
\end{center}
\caption{general caption}
\label{1}
\end{figure}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

align left in subfigure captions

Post by localghost »

It would be very helpful if you tell us which package you use for your sub-figures. This is best done by providing a minimal example that clearly shows what you are doing. In case you use the obsolete subfigure package, think about using another one like floatrow or »subcaption« (shipped with caption).


Thorsten
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Re: align left in subfigure captions

Post by sommerfee »

AFAIK the subfigure has a package option called "nooneline" or similar to suppress the horizontal centering of short captions. Take a peek at the package documentation.
jbdreamworksnv
Posts: 4
Joined: Thu Jul 29, 2010 11:04 am

Re: align left in subfigure captions

Post by jbdreamworksnv »

Thanks for your reactions.

LocalGost: I indeed use the 'obsolete' SUBFIGURE package. I am preparing a paper for publication in a journal, and the template and guidelines explicitly request to only use this package.

SommerFee: I browsed the package documentation before. However, now I found near the NOONELINE explanation that I need to use RAGGEDRIGHT, but not in the caption itself but as option/declaration in the header. It is solved.

Thx
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

align left in subfigure captions

Post by localghost »

jbdreamworksnv wrote:[…] I am preparing a paper for publication in a journal, and the template and guidelines explicitly request to only use this package. […]
These guidelines have to be strongly revised. And somebody should tell the persons in charge at the journal about that.
Post Reply