Поведение субтитров RevTex4-1 для последней строки изменилось после настройки. Как вернуть все обратно?

Поведение субтитров RevTex4-1 для последней строки изменилось после настройки. Как вернуть все обратно?

Я в \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} 

Выход:

введите описание изображения здесь

Связанный контент