같은 페이지의 텍스트 위와 텍스트 아래에 두 개의 그림 환경을 어떻게 배치합니까?

같은 페이지의 텍스트 위와 텍스트 아래에 두 개의 그림 환경을 어떻게 배치합니까?

이 라텍스 코드는 두 페이지에 걸쳐 있지만 한 페이지에 표시하고 싶습니다.

\documentclass[a4paper]{scrbook}
\usepackage[right = 12mm, left=12mm, top=0.5in, bottom=5in]{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[section]{placeins}


\begin{document}

\begin{equation}
 y = ac + b
\end{equation}

\begin{equation}
 y = mc + c
\end{equation}

\section{text}


\begin{figure}[h]
    \centering
    \includegraphics[width=10cm,height=5cm]{ONE.jpg}
    \caption{}
\end{figure}


\section{text}

\begin{figure}[h]
    \centering
    \includegraphics[width=10cm,height=5cm]{TWO.jpg}
    \caption{}
\end{figure}

\end{document}

두 페이지에 걸쳐 있는 이미지 사진

답변1

지정한 영역에 해당 크기의 이미지를 넣을 공간이 없습니다. 나는 그것들을 더 작게 만들었고 딱 맞았습니다.

여기에 이미지 설명을 입력하세요

\documentclass[a4paper]{scrbook}
\usepackage[right = 12mm, left=12mm, top=0.5in, bottom=5in]{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
%\usepackage[section]{placeins}


\begin{document}

\begin{gather}
 y = ac + b\\
 y = mc + c
\end{gather}

\section{text}


\begin{figure}[!htbp]
    \centering
    \includegraphics[width=10cm,height=3.7cm]{example-image-a}
    \caption{}
\end{figure}


\section{text}

\begin{figure}[!htbp]
    \centering
    \includegraphics[width=10cm,height=3.7cm]{example-image-b}
    \caption{}
\end{figure}

\end{document}

답변2

이 문제가 발생하면 변경할 수도 있습니다.

\usepackage[right = 12mm, left=12mm, top=0.5in, bottom=5in]{geometry}

에게

\usepackage[right = 12mm, left=12mm, top=0.5in]{geometry}

풀이

bottom=5in

이렇게 하면 페이지에 항목을 추가할 수 있는 더 많은 공간이 제공됩니다.

관련 정보