I'm recently writing an APS paper with REVTeX and encountered a problem. The captions in all figure and table floats are automatically centered instead of being fully justified. I tried \captionsetup
but there are only options like raggedright
or raggedleft
. Can anyone tell me what I was missing? The following is the header of my document:
\documentclass[aps,prl,reprint,twocolumn,amsmath,amssymb,groupedaddress]{revtex4-1}
\usepackage[dvipdfm]{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{epstopdf}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
A typical figure environment is as follows:
\begin{figure}[h]
\begin{subfigure}{0.24\textwidth}
\includegraphics[width=\textwidth]{FIG11.eps}
\label{fig:FIG11}
\end{subfigure}~
\begin{subfigure}{0.24\textwidth}
\includegraphics[width=\textwidth]{FIG12.eps}
\label{fig:FIG12}
\end{subfigure}
\caption{Gate control when large magnitude control is allowed. (a) Z-gate control in Lorentzian-like environment. (b) Identity-gate control in Ohmic environment. Here $\epsilon(t)\leq20\omega_{0}$. }
\label{fig: large control}
\end{figure}
The strange thing is that there is a sample "apssamp.tex" in the REVTeX zip file provided by APS. I copy my figure environment and paste it into the sample file and the caption is fully justified. But if I copy a figure environment in the sample and paste it to my own tex file, I always get centered caption. That's why I suspect that the problem should be due to the header.
figure
environment as well. I can confirm that it doesn't do that for me.caption
is not compatible withrevtex4-1
. For subfloats, I think\usepackage[caption=false]{subfig}
is better.