Suppose I'm making a beamer
presentation and I want to have a figure with some subfigures (each of which shows an image).
Is it more standard/popular to use the subfig
package or the caption
and subcaption
packages for this purpose?
What are the exact include statements I should use to include the appropriate packages? I want to make sure I get the optional parameters correct.
Best Answer
Update
From version
caption.sty 2015/09/17 v3.3-111 Customizing captions (AR)
subcaption
andcaption
are compatible withbeamer
, so you can use eithersubcaption
orsubfig
. For older versions ofcaption
, read below.Initial answer (old versions of
caption
)If you really need subfigures in a presentation, with
beamer
you should usesubfig
.subcaption
andbeamer
are not compatible.This
gives the error
which forces you to load caption with compatibility=false:
and the
caption
package author says about this option:Load
subfig
with thecaption=false
option:Since internally
subfig
requires thecaption
package; using thecaption=false
option preventscaption
from taking (ot attempting to take) control over captions inbeamer
.