[Tex/LaTex] Justify main caption in figure

captionshorizontal alignment

I have two figures that I am putting vertically in my text. The two figures are located in the same column, on top of each other. I am trying to left justify the main caption of this figure (by default the caption is centered). But I am unsuccessful. Here is the text:




   \captionsetup[subfigure]{justification=justified,singlelinecheck=false}             \caption{This is the main caption that I would like to have it justified and not centered (a) test figure 1 (b) test figure 2 } 

I had two figures with different scales so I had to have them with different sizes and shift (a) and (b) labels differently for each figure. But my problem is the main caption under the two figs. Even including




I wasn't able to fix it.

Best Answer

The revtex4-1 document class isn't really compatible with the caption package. While you don't load caption directly, it is loaded by the subfig package in order to make use of the former package's \captionsetup macro.

The upshot is that the \captionsetup macro doesn't have much of an effect -- if any. revtex4-1 captioning style is to center-set the caption. Assuming you're forced to stick with this document class, it may be a good idea to come to terms with this stylistic setting.