[英]How to remove the caption label and number (say, "Figure #" ) from one specific figure in revtex4 document of Latex?
I am preparing a report in revtex4 document of Latex.我正在准备 Latex 的 revtex4 文档中的报告。 Can someone please help me to remove the Figure label and number of one specific figure in my document.
有人可以帮我删除我文档中的图形 label 和一个特定图形的编号。 I tried and successfully did using the \usepackage{caption}, but it then led all my figure captions to center hanging indentation.
我尝试并成功地使用了 \usepackage{caption},但它导致我所有的图形标题都居中悬挂缩进。 Therefore, I need an alternative to do the same.
因此,我需要一个替代方案来做同样的事情。
My code goes as,我的代码如下,
\documentclass[preprint,aps,prb,floatfix]{revtex4}
\usepackage[dvips]{epsfig}
\usepackage[dvips]{graphics}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{bm}
\usepackage[mathscr]{eucal}
%\usepackage{caption}
\makeatletter
\renewcommand{\fnum@figure}{Figure \thefigure}
\makeatother
\begin{document}
\begin{figure}
\begin{centering}
%\captionsetup{labelformat=empty,labelsep=none}
\includegraphics[width=8.5cm, height=4.75cm, keepaspectratio]{xxx.ps}
\caption{xxxx}
\label{xxx}
\end{centering}
\end{figure}
\end{document}
Thank you in advance.先感谢您。
If you only want the caption text without the prefix "Figure #", simply don't use a caption.如果您只想要没有前缀“Figure #”的标题文本,请不要使用标题。 You can add the text as normal text below the image.
您可以将文本添加为图像下方的普通文本。
Unrelated to your question, but \centering
is a macro and not an environment.与您的问题无关,但
\centering
是一个宏而不是一个环境。
\documentclass[preprint,aps,prb,floatfix]{revtex4}
\usepackage{epsfig}
\usepackage{graphics}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{bm}
\usepackage[mathscr]{eucal}
%\usepackage{caption}
\makeatletter
\renewcommand{\fnum@figure}{Figure \thefigure}
\makeatother
\begin{document}
\begin{figure}
\centering
\includegraphics[width=8.5cm, height=4.75cm, keepaspectratio]{example-image}
xxxx
\end{figure}
\end{document}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.