![图形标题有问题](https://linux22.com/image/406382/%E5%9B%BE%E5%BD%A2%E6%A0%87%E9%A2%98%E6%9C%89%E9%97%AE%E9%A2%98.png)
哈喽,又是我 :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