답변1
하위 캡션에 레이블을 지정할 필요가 없는 것 같으므로 간단한 전략이 작동합니다. 하위 캡션에 번호를 매겨야 하는 경우 특정 명령을 사용하면 해당 동작을 쉽게 수정할 수 있습니다.
\documentclass{article}
\usepackage{graphicx}
\newcommand{\column}[2]{%
% #1 = column of images
% #2 = caption
\begin{tabular}[b]{@{}c@{}}#1\\#2\end{tabular}%
}
\begin{document}
\begin{figure}[htp]
\centering
\begin{tabular}{
@{}
*{6}{c@{\hspace{4pt}}} % adjust to your needs (one less than the total)s
c
@{}
}
\column{
\includegraphics[width=1.5cm]{example-image-a}\\
\includegraphics[width=1.5cm]{example-image-b}\\
\includegraphics[width=1.5cm]{example-image-c}
}{GS04}
&
\column{
\includegraphics[width=1.5cm]{example-image-a}\\
\includegraphics[width=1.5cm]{example-image-b}\\
\includegraphics[width=1.5cm]{example-image-c}
}{NC05}
&
\column{
\includegraphics[width=1.5cm]{example-image-a}\\
\includegraphics[width=1.5cm]{example-image-b}\\
\includegraphics[width=1.5cm]{example-image-c}
}{TP09}
&
\column{
\includegraphics[width=1.5cm]{example-image-a}\\
\includegraphics[width=1.5cm]{example-image-b}\\
\includegraphics[width=1.5cm]{example-image-c}
}{QS09}
&
\column{
\includegraphics[width=1.5cm]{example-image-a}\\
\includegraphics[width=1.5cm]{example-image-b}\\
\includegraphics[width=1.5cm]{example-image-c}
}{GCa10}
&
\column{
\includegraphics[width=1.5cm]{example-image-a}\\
\includegraphics[width=1.5cm]{example-image-b}\\
\includegraphics[width=1.5cm]{example-image-c}
}{GCb10}
&
\column{
\includegraphics[width=1.5cm]{example-image-a}\\
\includegraphics[width=1.5cm]{example-image-b}\\
\includegraphics[width=1.5cm]{example-image-c}
}{SLIC}
\end{tabular}
\caption{Some images}
\end{figure}
답변2
tikz-matrix를 사용하여 여기에 6개의 이미지를 연속으로 표시했지만 10개의 이미지로 확장할 수 있습니다.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning}
\begin{document}
\begin{center}
\begin{tikzpicture}
\matrix (M)[matrix of math nodes,left delimiter={(},right delimiter={)}]
{
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
};
\end{tikzpicture}
\end{center}
\end{document}
구분 기호 없이 left delimiter={.},right delimiter={.}
연속 10개의 이미지로 확장되는 이 명령을 사용하세요.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning}
\begin{document}
\begin{center}
\begin{tikzpicture}
\matrix (M)[matrix of math nodes,left delimiter={.},right delimiter={.}]
{
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}};&\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}};&\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}};&\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}};&\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}};&\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}};&\node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; & \node[]{\includegraphics[scale=0.1]{logo.jpg}}; \\
};
\end{tikzpicture}
\end{center}
\end{document}
답변3
floatrow
, 및 해당 환경을 사용하면 쉽습니다 (sub)floatrow
.
\documentclass[11pt]{article}
\usepackage{geometry}
\usepackage{caption, subcaption}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{floatrow}
\DeclareFloatVCode{rowvsep}{\leavevmode} \renewcommand\captionskip{6pt}
\begin{document}
\lipsum[1]
\begin{figure}[!htb]
\setlength\columnsep{0pt}
\captionsetup{belowskip = 20pt}
\floatsetup[table]{rowpostcode =rowvsep, midcode = captionskip}
\ffigbox
{\begin{subfloatrow}[10]
\centering
\ffigbox[0.1\textwidth]{\caption{SN1}\label{sn1}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN2}\label{sn2}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN3}\label{sn3}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN4}\label{sn4}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN5}\label{sn5}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN6}\label{sn6}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN7}\label{sn7}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN8}\label{sn8}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN9}\label{sn9}}{\includegraphics[scale=0.18]{snark}}
\ffigbox[0.1\textwidth]{\caption{SN10}\label{sn10}}{\includegraphics[scale=0.18]{snark}}
\end{subfloatrow}
\bigskip
\begin{subfloatrow}[8]
\centering
\ffigbox[0.125\textwidth]{\caption{SN1}\label{h-b1}}{\includegraphics[scale=0.18]{hare-blazon}}
\ffigbox[0.125\textwidth]{\caption{SN2}\label{h-b2}}{\includegraphics[scale=0.18]{hare-blazon}}
\ffigbox[0.125\textwidth]{\caption{SN3}\label{h-b3}}{\includegraphics[scale=0.18]{hare-blazon}}
\ffigbox[0.125\textwidth]{\caption{SN4}\label{h-b4}}{\includegraphics[scale=0.18]{hare-blazon}}
\ffigbox[0.125\textwidth]{\caption{SN5}\label{h-b5}}{\includegraphics[scale=0.18]{hare-blazon}}
\ffigbox[0.125\textwidth]{\caption{SN6}\label{h-b6}}{\includegraphics[scale=0.18]{hare-blazon}}
\ffigbox[0.125\textwidth]{\caption{SN7}\label{h-b7}}{\includegraphics[scale=0.18]{hare-blazon}}
\ffigbox[0.125\textwidth]{\caption{SN8}\label{h-b8}}{\includegraphics[scale=0.18]{hare-blazon}}
\end{subfloatrow}}{\caption{The Hunting of the Snark, and a Blazon}\label{hunt}}
\end{figure}
\end{document}