2

I'm using the caption package.

I want to say

\caption[My short Caption] {My longer longer caption}

and have both show up? How can I do that?

  • 2
    the short one is for the table of contents and the page head, if you want the main caption to start with that text use \caption[My short Caption] {My short Caption. My longer longer caption} – David Carlisle May 15 '14 at 18:23
  • @DavidCarlisle: Got it thanks! It's a shame it's that way though -- it should be easy enough to set a flag somewhere to include both. Thanks though! – user1357015 May 15 '14 at 18:47
  • 1
    \newcommand\mycaption[2]{\caption[#1]{#1. #2}} ... \mycaption{short}{long} – David Carlisle May 15 '14 at 20:20
6

The short one is for the table of contents and the page head, if you want the main caption to start with that text use

\caption[My short Caption] {My short Caption. My longer longer}

If you do this a lot you could define

\newcommand\mycaption[2]{\caption[#1]{#1. #2}}

Then use

 \mycaption{short}{long}
| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.