8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LaTeX で図を並べて挿入する

Last updated at Posted at 2023-09-04

はじめに

LaTeX で図を並べて挿入する方法について書く。\coclumnwidthの前の数字は足して最大でも 0.98 くらいにするのが良い。minipage 環境を並べると水平に並べることができる。中央揃えの際は center 環境に入るのではなく \centering を宣言する。

横に二つ並べる

スクリーンショット 2023-09-04 224132.png

\begin{figure}[h]
\centering
\begin{minipage}[b]{0.49\columnwidth}
    \centering
    \includegraphics[width=0.9\columnwidth]{a.png}
    \caption{}
    \label{fig:a}
\end{minipage}
\begin{minipage}[b]{0.49\columnwidth}
    \centering
    \includegraphics[width=0.9\columnwidth]{b.png}
    \caption{}
    \label{fig:b}
\end{minipage}
\end{figure}

横に三つ並べる

スクリーンショット 2023-09-04 224146.png

\begin{figure}[h]
\centering
\begin{minipage}[b]{0.32\columnwidth}
    \centering
    \includegraphics[width=0.9\columnwidth]{a.png}
    \caption{}
    \label{fig:a}
\end{minipage}
\begin{minipage}[b]{0.32\columnwidth}
    \centering
    \includegraphics[width=0.9\columnwidth]{b.png}
    \caption{}
    \label{fig:b}
\end{minipage}
\begin{minipage}[b]{0.32\columnwidth}
    \centering
    \includegraphics[width=0.9\columnwidth]{c.png}
    \caption{}
    \label{fig:c}
\end{minipage}
\end{figure}

縦長い図を横にいれる

スクリーンショット 2023-09-04 224158.png

\begin{figure}[h]
\centering
\begin{minipage}[b]{0.47\columnwidth}
    \centering
    \includegraphics[width=0.9\columnwidth]{a.png}
    \caption{左上}
    \label{fig:a}
    \vfill
    \includegraphics[width=0.9\columnwidth]{b.png}
    \caption{左下}
    \label{fig:b}
\end{minipage}
\begin{minipage}[b]{0.51\columnwidth}
    \centering
    \includegraphics[width=0.9\columnwidth]{c.png}
    \caption{}
    \label{fig:c}
\end{minipage}
\end{figure}
8
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?