
사진이 한 장 있는데 사실은 두 인물이 합쳐진 사진이에요. 그러므로 \includegraphics
한 번만 사용할 수 있습니다 . 그래도 왼쪽과 오른쪽에 두 개의 레이블을 사용하고 싶습니다. 답변을 검색했지만 찾을 수 없었습니다. 예상되는 결과의 사진을 보내드립니다. 저 좀 도와 주 시겠어요?
답변1
minipage
섹션 2에 표시된 것과 유사하게 빈 에 하위 캡션을 추가할 수 있습니다.문서subcaption
.
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.5\textwidth]{example-image-a}
\begin{minipage}{0.25\textwidth}
\subcaption{\label{left} Left half}
\end{minipage}
\begin{minipage}{0.25\textwidth}
\subcaption{\label{right} Right half}
\end{minipage}
\caption{\label{figure} Overall caption}
\end{figure}
Figure~\ref{figure} has \ref{left} on the left, and \ref{right} on the right,
also known as \subref{left} and \subref{right}.
\end{document}