哈喽,又是我 :D
我对图形标题有疑问。
我想让两个图和标题相邻,这样它们就不会重叠。但一切都失败了。
\documentclass[a4paper, 12pt, twoside]{mwrep}
\linespread{1,3}
\usepackage[cp1250]{inputenc}
\usepackage{polski}
\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage[font=small,labelfont=bf,labelsep=period,justification=centerlast]{caption}\usepackage{floatrow}
\begin{document}[h]
\begin{figure}
\ffigbox[\FBwidth]
\caption{Text}\label{...}
\includegraphics[width=0.4\textwidth]{2}
\end{figure}
\end{document}
答案1
它应该是
\begin{document} \begin{figure}[h]
代替
\begin{document}[h] \begin{figure}
它应该是
\ffigbox[\FBwidth] {\caption{Text}\label{...}} {\includegraphics[width=0.4\textwidth]{2}}
代替
\ffigbox[\FBwidth] \caption{Text}\label{...} \includegraphics[width=0.4\textwidth]{2}
{}
注意周围额外caption
的括号includegraphics