我在\begin{figure*}
环境中,有几个subfigure
没有标题的对象。之后\end{subfigure}
,我目前正在使用
\caption[]{\small\justify blah blah blah}
生成以下图像
然而,如果我去
\caption[]{\small blah blah blah}
首次设定后
\usepackage[justification=justified,singlelinecheck=false]{caption}
\usepackage[justification=justified,labelfont=large]{subcaption}
我明白了
这就是我想要的,除了最后一行居中。我希望最后一行作为第一张图片。我是不是漏了一个非常简单的命令?谢谢。
总代码:
\begin{figure*}
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig1.eps}
\label{fig:1}
\vspace{-12pt}
\end{subfigure}
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig2.eps}
\label{fig:2}
\vspace{-12pt}
\end{subfigure}
% \vskip\baselineskip
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig3.eps}
\label{fig:3}
\end{subfigure}
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig4.eps}
\label{fig:4}
\end{subfigure}
\vspace{-10pt}
\caption[]{\small\justify blah blah blahblah blah}
\label{fig:plot}
\end{figure*}
答案1
您不应该使用caption
和subcaption
,revtex4-1
因为它们不兼容。
如果要继续,请加载不带选项的包subcaption
(加载caption
),然后加载包ragged2e
并定义
\DeclareCaptionJustification{justified}{\justifying}
此时声明此设置
\captionsetup{justification=justified,singlelinecheck=false,labelfont=large}
梅威瑟:
\documentclass{revtex4-1}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\usepackage{ragged2e}
\DeclareCaptionJustification{justified}{\justifying}
\captionsetup{justification=justified,singlelinecheck=false,labelfont=large}
\begin{document}
\begin{figure*}
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig1.eps}
\label{fig:1}
\vspace{-12pt}
\end{subfigure}
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig2.eps}
\label{fig:2}
\vspace{-12pt}
\end{subfigure}
% \vskip\baselineskip
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig3.eps}
\label{fig:3}
\end{subfigure}
\begin{subfigure}[b]{0.485\textwidth}
\centering
\includegraphics[width=\textwidth]{fig4.eps}
\label{fig:4}
\end{subfigure}
\vspace{-10pt}
\caption[]{\small blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah}
\label{fig:plot}
\end{figure*}
\end{document}
输出: