开发者

Removing prefix from figure captions in LaTeX

I'd like to m开发者_如何转开发ake my own caption inside \caption{} in figures of LaTeX. How can I turn off the "Figure " prefix from the captions that appear?


First use the caption package and then use the command \caption* in this way

\usepackage{caption}
...
\caption*{some text}

instead of \caption{some text}

Logic is the same in avoiding numbering of sections and subsections and many other objects

\subsection*{Name of unnumbered subsection}


You can use the caption package and do this:

\usepackage[labelformat=empty]{caption}


Instead of defining the caption style when loading the caption package, set it up afterwards:

\usepackage{caption}% http://ctan.org/pkg/caption
...
\captionsetup[figure]{labelformat=empty}%

These changes will now only pertain to figure environments.


You can use

\captionsetup[figure]{labelformat=empty}

to turn the caption text off and then use

\captionsetup[figure]{labelformat=default}

to turn the caption text on again if you want it to be different in different sections.


If you don't want to use additional packages, here is a work-around to put a caption (text) below the figures:

\includegraphics[width=1\linewidth]{figurename}\\[1mm]
  {---your caption---}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜