1

How to remove a caption when using figure. I need to have a figure with no captions or the word Fig

\Figure[!t]()[width=1\textwidth]{figures/loc.pdf} {certain caption. } enter image description here

8
  • Don't use \caption, then no caption will appear.
    – user156344
    Commented Apr 13, 2019 at 4:54
  • 1
    Do you want to remove the entire caption or just the word "Figure" as suggested in the title (which would presumably leave a lone number)? It would help us greatly if you could show us a short example document of your use of \Figure instead of a single line of code. I don't think \Figure is a standard command and the usage shown in the code does not quite seem to be the same as the \Figure command from easyfig, so it is not clear what \Figure does. The short example document would show us where or how \Figure is defined (which package you load for it).
    – moewe
    Commented Apr 13, 2019 at 4:56
  • 1
    That all said, usually you would probably use something like \begin{figure}[t] \includegraphics[width=1\textwidth]{figures/loc.pdf}\end{figure} to get a floating figure without caption (that is, you simply don't use \caption in the normal setup). If you just say \includegraphics[width=1\textwidth]{figures/loc.pdf} without the \begin{figure}...\end{figure} the image will not float (which might be useful for title pages or other situations where the image position is fixed.) If and how something like this is possible with \Figure depends on its definition.
    – moewe
    Commented Apr 13, 2019 at 5:00
  • This is figure command is for ` \documentclass{ieeeaccess}`. I remove caption but I still have the word "Figure" below the map
    – Mohamed
    Commented Apr 13, 2019 at 5:21
  • 2
    Please add the crucial information about your document class directly to your question. It is too easy to overlook that in the comments. Please let me re-iterate my request for a full example document, that makes it much easier for people to help you. It would also help greatly if you could add a link to the place where we can obtain ieeeaccess.cls.
    – moewe
    Commented Apr 13, 2019 at 5:55

2 Answers 2

2

You can locally redefine \caption to ignore its argument.

\documentclass{ieeeaccess}
\usepackage{graphicx}

\begin{document}

\begingroup\renewcommand{\caption}[1]{}%
\Figure[!t]()[width=1\textwidth]{example-image}{}
\endgroup

\EOD

\end{document}

enter image description here

1

in preamble

%set empty label
\usepackage[labelformat=empty]{caption}

enter image description here

in env

\begin{figure}[h]
\centering
\includegraphics[scale=0.2]{vipers-fradi.jpg}
% set caption here
\captionsetup{labelformat=simple,name=MyFig,labelfont=bf,textfont=it}
\caption{"Vipers Kristiansand - Ferencvaros"}
\end{figure}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .