
저는 캡션이 없는 \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
and 를 사용 subcaption
하면 안 됩니다 .revtex4-1
계속 진행하려면 옵션 없이 패키지 subcaption
( 를 로드함 caption
)를 로드한 다음 패키지를 로드 ragged2e
하고 정의하십시오.
\DeclareCaptionJustification{justified}{\justifying}
이 시점에서 이 설정을 선언합니다.
\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}
산출: