I'd like to suppress the text in all captions (ie. make all the captions empty, but leave the figure numbers) in in a document that uses the memoir class. I can do this if I use the caption package by including the line: \captionsetup{textformat=empty} But in this document I can't use the caption package.

Is there a way to do this with memoir commands? I could not find it in the memoir documentation, but that it not not to say it is not there. The captions in my document come in various shapes and sizes, some of them just using \caption{}, some of them using \begin{sidecaption}, should that be relevant. Thanks.

  • 1
    The caption package works just fine with the memoir class, so what is the problem. – daleif Dec 1 '18 at 15:25
  • The problem is that my document (a book) is now written. I just need a version with empty figure captions. If I now add the caption package I obtain error messages such as ! Extra }, or forgotten \endgroup. \sbox ...hbox {\color@setgroup #2\color@endgroup } l.227 \end{sidecaption} Perhaps my implementation is at fault? However, I do have a workaround by redefining the makecaption command using: \renewcommand{\@makecaption}[2]{% \vskip\abovecaptionskip \hbox to \hsize{\hfil #1\hfil}% \vskip\belowcaptionskip}` and this seem to have the desired effect. – GeoffV Dec 1 '18 at 15:59
  • Which error do you get – daleif Dec 1 '18 at 16:00
  • My error is posted in my previous comment. Unfortunately it is poorly formatted and it seems I can no longer edit it. – GeoffV Dec 1 '18 at 16:10
  • Provide full code that generates an error like that. With no code we can't do much. Have you tried \let\normalcaption\caption\renewcommand\caption[1]{\normalcaption{}} – daleif Dec 1 '18 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.