
Ich bin in der \begin{figure*}
Umgebung mit ein paar subfigure
Objekten, die keine Beschriftungen haben. Nach \end{subfigure}
verwende ich derzeit
\caption[]{\small\justify blah blah blah}
was das folgende Bild erzeugt
Wenn ich jedoch zu
\caption[]{\small blah blah blah}
nach der ersten Einstellung
\usepackage[justification=justified,singlelinecheck=false]{caption}
\usepackage[justification=justified,labelfont=large]{subcaption}
Ich bekomme
das ist, was ich will, außer dass die letzte Zeile zentriert ist. Ich möchte, dass die letzte Zeile wie das erste Bild ist. Übersehe ich einen wirklich einfachen Befehl? Danke.
Gesamtcode:
\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*}
Antwort1
caption
Sie sollten und nicht subcaption
mit verwenden, revtex4-1
da es zu Inkompatibilitäten kommt.
Wenn Sie damit fortfahren möchten, laden Sie das Paket subcaption
(das geladen wird caption
) ohne Optionen und laden Sie dann das Paket ragged2e
und definieren Sie
\DeclareCaptionJustification{justified}{\justifying}
An dieser Stelle deklarieren Sie dieses Setup
\captionsetup{justification=justified,singlelinecheck=false,labelfont=large}
MWE:
\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}
Ausgabe: