你好
如何在表格或图形开始的位置开始标题?
\captionsetup{justification=justified, singlelinecheck=false}
对我来说不起作用,因为它将标题放在段落的开头而不是表格的开头。
谢谢!!
答案1
\documentclass[a4paper]{article}
\usepackage[demo]{graphicx}
\usepackage{floatrow,blindtext}
\begin{document}
\blindtext
\begin{figure}[!htb]
\ffigbox[\FBwidth]
{\caption{\blindtext}\label{foo}}
{\includegraphics{bar}}
\end{figure}
\blindtext
\begin{table}[!htb]
\ttabbox{\caption{A not so long caption.}\label{bar}}
{\begin{tabular}{ccc} \hline
foo & bar & baz \\\hline
\end{tabular}}
\end{table}
\end{document}