
「captionof」の後の段落は適切にインデントされていません。コメントアウトするか\usepackage{caption}
、\captionof{figure}{figure}
インデントを元に戻してください。
しかし、「labelsep」をコロン以外のスペースに再定義するには、capt-of パッケージと caption パッケージが必要です。これを行う別の方法はありますか。
次に例を示します。
\documentclass{article}
\usepackage{capt-of}
\usepackage{caption}
\begin{document}
before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption before caption
\captionof{figure}{figure}
after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption
after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption after caption
\end{document}
答え1
この質問に対する回答は既にここにあります:\captionof は段落のインデントを乱すしかし、少し説明を加えたいと思います。
のドキュメンテーションof \captionof
in caption
package (18 ページ) には、「... したがって、両方ともボックスまたは環境内でのみ使用する必要があります」と書かれています
\captionof
。\captionof*
したがって、コマンドをそれ自体のグループ内に配置するのは{\captionof{figure}{figure}}
正当な方法であるはずです。
また、パッケージも提供している\usepackage{capt-of}
ので必要ありません。caption
\captionof