Graphics, Figures & Tablesshort, long figure caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
carol
Posts: 105
Joined: Wed Dec 24, 2008 7:25 pm

short, long figure caption

Post by carol »

Hi,
using a caption by caption[short]{long}, I would like to use a short and long version in a figure caption. However, the short version is only used for list of figures and doesn't get displayed in figure caption. How can I get it displayed or what else instead? I use kile

thanks

carol

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: short, long figure caption

Post by phi »

I'm not sure if I've understood you correctly, but all text inside the second (required) argument is used for the figure caption, so include everything you want there.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

short, long figure caption

Post by Stefan Kottwitz »

Hi Carol,

the caption package provides many additional features for customizing captions, perhaps it's useful for you, have a look at its documentation.

Stefan
LaTeX.org admin
carol
Posts: 105
Joined: Wed Dec 24, 2008 7:25 pm

short, long figure caption

Post by carol »

Thanks Phi for your reply but the problem is that I don't want display every thing in the list of figures by putting in the second argument and I don't want to repeat what i put in the first argument in the second argument. Here is the scenario

caption[short_version]{long_version}

I want that only short version be displayed in the list of figure but both, short and long versions be displayed in the figure caption
phi wrote:I'm not sure if I've understood you correctly, but all text inside the second (required) argument is used for the figure caption, so include everything you want there.
carol
Posts: 105
Joined: Wed Dec 24, 2008 7:25 pm

Re: short, long figure caption

Post by carol »

Ignore my message. the solution is that to repeat what is the short version in the long version as well.

cheers
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

short, long figure caption

Post by phi »

If you don't want to repeat the short version, you can easily create your personal version of \caption:

Code: Select all

\newcommand*\mycaption[2]{\caption[#1]{#1#2}}
Post Reply