图片内容太大,溢出页面

图片内容太大,溢出页面

我想让文本和图形并排显示,为此,我设法获得了以下代码:

\begin{figure}[]
\subsubsection{\large Helpmate}
    \centering
    \makebox[0pt][c]{

        \begin{minipage}[c]{0.47\textwidth}
            Used in over 70 hospitals across US [11]. They are used to deliver medications, meals, X-rays, lab samples, supplies, equipment and patients records around the healthcare facility's departments. Has 6 ft$^{3} $ cargo space and 200 lb payload. Up to 12 hours of continuous operation. \par

            \vspace{0.4cm}
            \textbf{Mechanical and electronical}
            \vspace{0.4cm}
            \begin{itemize}[topsep=0pt]
                \item Infrared
                \item Forward and sideways sonar
                \item Touch-sensitive bumpers at the bottom
                \item Wheel encoders
                \item Ceiling-facing camera to extract orientation and position information from ceiling lights. [12]
                \item Two alternate structured light beams to detect objects in a 60 deg sweep in front of the robot. [12]
            \end{itemize}
        \end{minipage}
        \hspace{0.3cm}
        \begin{minipage}[c]{0.5\textwidth}
            \includegraphics[width=\textwidth]{helpmate}
            \caption{HelpMate} \label{helpmate}
        \end{minipage}
    }


\subsubsection{\large Helpmate}
    \centering
    \makebox[0pt][c]{

        \begin{minipage}[c]{0.47\textwidth}
            Used in over 70 hospitals across US [11]. They are used to deliver medications, meals, X-rays, lab samples, supplies, equipment and patients records around the healthcare facility's departments. Has 6 ft$^{3} $ cargo space and 200 lb payload. Up to 12 hours of continuous operation. \par

            \vspace{0.4cm}
            \textbf{Mechanical and electronical}
            \vspace{0.4cm}
            \begin{itemize}[topsep=0pt]
                \item Infrared
                \item Forward and sideways sonar
                \item Touch-sensitive bumpers at the bottom
                \item Wheel encoders
                \item Ceiling-facing camera to extract orientation and position information from ceiling lights. [12]
                \item Two alternate structured light beams to detect objects in a 60 deg sweep in front of the robot. [12]
            \end{itemize}
        \end{minipage}
        \hspace{0.3cm}
        \begin{minipage}[c]{0.5\textwidth}
            \includegraphics[width=\textwidth]{helpmate}
            \caption{HelpMate} \label{helpmate}
        \end{minipage}
    }
\end{figure}

但是下图的问题很明显,内容超出了页面高度。我该如何解决这个问题?

在此处输入图片描述

答案1

在我看来,文本及其子小节似乎属于文档流,而不是浮动。因此,我建议不要将其包装在图形环境中,而只是将小页面彼此相邻放置。

要为图像创建标题,您可以使用\captionof标题包。

\documentclass{article}

\usepackage{caption}
\usepackage{graphicx}
\usepackage{geometry}

\begin{document}

\subsubsection{Helpmate}

\begin{minipage}[c]{0.54\textwidth}
   Used in over 70 hospitals across US [11]. They are used to deliver medications, meals, X-rays, lab samples, supplies, equipment and patients records around the healthcare facility's departments. Has 6 ft$^{3} $ cargo space and 200 lb payload. Up to 12 hours of continuous operation.

   \bigskip
   \textbf{Mechanical and electronical}
    \begin{itemize}
        \item Infrared
        \item Forward and sideways sonar
        \item Touch-sensitive bumpers at the bottom
        \item Wheel encoders
        \item Ceiling-facing camera to extract orientation and position information from ceiling lights. [12]
        \item Two alternate structured light beams to detect objects in a 60 deg sweep in front of the robot. [12]
    \end{itemize}
\end{minipage}
\hfill
\begin{minipage}[c]{0.44\textwidth}
    \includegraphics[width=\textwidth]{example-image}
  \captionof{figure}{HelpMate}
  \label{helpmate1}
\end{minipage}

\subsubsection{Helpmate}

\begin{minipage}[c]{0.54\textwidth}
   Used in over 70 hospitals across US [11]. They are used to deliver medications, meals, X-rays, lab samples, supplies, equipment and patients records around the healthcare facility's departments. Has 6 ft$^{3} $ cargo space and 200 lb payload. Up to 12 hours of continuous operation.

   \bigskip
   \textbf{Mechanical and electronical}
    \begin{itemize}
        \item Infrared
        \item Forward and sideways sonar
        \item Touch-sensitive bumpers at the bottom
        \item Wheel encoders
        \item Ceiling-facing camera to extract orientation and position information from ceiling lights. [12]
        \item Two alternate structured light beams to detect objects in a 60 deg sweep in front of the robot. [12]
    \end{itemize}
\end{minipage}
\hfill
\begin{minipage}[c]{0.44\textwidth}
    \includegraphics[width=\textwidth]{example-image}
  \captionof{figure}{HelpMate}
  \label{helpmate2}
\end{minipage}


\end{document}

在此处输入图片描述

相关内容