如何將標題置於圖下方並同時與圖左側對齊?
答案1
像這個?
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\captionsetup[figure]{slc=off} % "slc" is an abbreviation for "singlelinecheck"
\begin{document}
\begin{figure}
\centering
\captionbox
{Blah... \label{fig:test}}
{\includegraphics{test}}
\end{figure}
\end{document}
\ffigbox
PS:同樣的效果可以使用包提供的方式存檔floatrow
,例如:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{floatrow,caption}
\captionsetup[figure]{slc=off}
\begin{document}
\begin{figure}
\centering
\ffigbox[\FBwidth]
{\caption{Blah...}\label{test}}
{\includegraphics{test}}
\end{figure}
\end{document}
(為了進行\captionsetup[figure]{slc=off}
工作,caption
這裡還需要該包。)