图片标题与小页面重叠

图片标题与小页面重叠

我用来minipage并排定义三幅图像。

但是,这些图片的标题是重叠的,而不是根据每个小页面断行。

在此处输入图片描述

以下是代码:

\begin{figure}[!ht]
\begin{minipage}{0.32\textwidth}
    \includegraphics[width=\textwidth]{images/briefing-structure.png}
    \caption{Overview of each part that compose the briefings structure.}
    \label{fig:briefings_structure}
\end{minipage}%
\hfill
\begin{minipage}{0.32\textwidth}
    \includegraphics[width=\textwidth]{images/briefing-informationdesign.png}
    \caption{Overview of the briefings and the elements of Design Information and Grids \cite{Tondreau2011}}
    \label{fig:information_design}
\end{minipage}%
\hfill
\begin{minipage}{0.32\textwidth}
    \includegraphics[width=\textwidth]{images/briefing-gestalt.png}
    \caption{Overview of the briefings and the elements of gestalt theory \cite{Lupton2015}}
    \label{fig:briefings_gestalt}
\end{minipage}%
\end{figure}    

有人知道该怎么办吗?

更新:

该文档由许多文件组成,但这里是主 tex 文件的部分标题:

\documentclass[en,twoside,onehalfspacing,qual]{risethesis}
\usepackage{bibentry}
\usepackage{subfigure}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{pdfpages}
\usepackage{caption}
\usepackage{lipsum}

\usepackage{float}

\usepackage{textcomp}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.9}

\restylefloat*{figure}

\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\captionsetup[table]{position=top,justification=centering,width=.85\textwidth,labelfont=bf,font=small}
%for code un-comment it
%\captionsetup[lstlisting]{position=top,justification=centering,width=.85\textwidth,labelfont=bf,font=small}
\captionsetup[figure]{position=bottom,justification=centering,width=.85\textwidth,labelfont=bf,font=small}

%% Change the following pdf author attribute name to your name.
\usepackage[linkcolor=black,
            citecolor=blue,
            urlcolor=black,
            colorlinks,
            pdfpagelabels,
            pdftitle={Rise Thesis Template (ABNT)},
            pdfauthor={Rise Thesis Template (ABNT)}]{hyperref}

答案1

请始终发布重现问题的完整文档,该问题是由您未发布的一些代码引起的。默认情况下,您会得到:

在此处输入图片描述

\documentclass{article}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}[!ht]
\begin{minipage}{0.32\textwidth}
    \includegraphics[width=\textwidth]{images/briefing-structure.png}
    \caption{Overview of each part that compose the briefings structure.}
    \label{fig:briefings_structure}
\end{minipage}%
\hfill
\begin{minipage}{0.32\textwidth}
    \includegraphics[width=\textwidth]{images/briefing-informationdesign.png}
    \caption{Overview of the briefings and the elements of Design Information and Grids \cite{Tondreau2011}}
    \label{fig:information_design}
\end{minipage}%
\hfill
\begin{minipage}{0.32\textwidth}
    \includegraphics[width=\textwidth]{images/briefing-gestalt.png}
    \caption{Overview of the briefings and the elements of gestalt theory \cite{Lupton2015}}
    \label{fig:briefings_gestalt}
\end{minipage}%
\end{figure}
\end{document}

答案2

发现问题出在下面这一行:

\captionsetup[figure]{position=bottom,justification=centering,width=.85\textwidth,labelfont=bf,font=small}

它改变了字幕的设置。注释掉那一行之后,一切正常。

相关内容