13

I am making a beamer presentation of someone else's research paper (so I don't have the original tex code). I am using pdfs of tables in the presentation but wanted to cut out all of the original captions, which can be a bit wordy for a slideshow, and simply label them with either "Table X" or "Figure X" along with the title.

So I'd like to suppress automatically inserted caption label (otherwise it would say "Figure: Table I", and so on). If I put the title/label without the \caption{} function, then I have to fight with word wrapping.

5

Unless each member of the audience is expected to have a printed copy of the paper to follow while you do your presentation, I think it doesn't make a lot of sense to number your Figures/Tables in the presentation. How about just keeping something like "Figure: Some short title" with the standard captioning facilities from beamer?

If for some reason you really, really want to include the number of each figure/table as it appeared on the original document, you could manually redefine \figurename before issuing each \caption command to include the appropriate number. For example:

\begin{figure}
% your figure goes here

\def\figurename{Figure 1}
\caption{Some short title}
\end{figure}
1
  • Thanks, Juan! Works like a charm! The audience will have the paper, so I'd like for the audience (really seminar participants) to be able to follow along easily. Thanks! Sep 22 '10 at 11:27
6

According to Section 11.6 in the beamer user guide, you can add the following lines to the preambles of your latex code to meet the requirements:

\setbeamertemplate{caption}[numbered]

Then, you'll see the figures and tables are numbered with prefix like "Figure X: " or "Table Y: ". And I think it is the most elegant way in satisfying the original requirements in this post.

5

This to me seems a better/cleaner solution:

\usepackage{caption}
\captionsetup{labelformat=empty,labelsep=none}
8
  • 6
    It's not necessary to load the caption package to do this in beamer; the beamer way of doing this is to set the appropriate templates: \setbeamertemplate{caption}{\insertcaption} \setbeamertemplate{caption label separator}{}. Jun 19 '12 at 2:05
  • 1
    @GonzaloMedina you are completely right, thanks for pointing that out! Jun 20 '12 at 12:56
  • @GonzaloMedina it seems once e.g. the subcaption package is loaded, the way through \setbeamertemplate no longer works but the one through \captionsetup still does.
    – anonymous
    Oct 31 '12 at 14:26
  • @anonymous but why use subcaption with beamer? Oct 31 '12 at 18:04
  • @GonzaloMedina For subfigures likes commons.wikimedia.org/wiki/File:Latex_example_subfig.png. According to en.wikibooks.org/wiki/LaTeX/… that's what one should use these days instead of the packages subfigure and subfig.
    – anonymous
    Nov 1 '12 at 15:23

This site is temporarily in read only mode and not accepting new answers.

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