Graphics, Figures & TablesExclude the Source in the Table Caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Tu154
Posts: 5
Joined: Fri Jun 03, 2011 3:58 pm

Exclude the Source in the Table Caption

Post by Tu154 »

Hello,

I write my thesis and have to mention the name of the source in the caption of the pictures and tables. The problem is this one, that it shoes the source of course in the index of tables as well - and that's what I don't want. Is there any possibility to exclude this or to add a 2nd caption just for the source, which doesn't appear in the index?

Thank you for your help in advance.

Kind regards,
Domser

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Exclude the Source in the Table Caption

Post by localghost »

Every basic documentation about LaTeX suggests to use the optional short form for the \caption command.

Code: Select all

\caption[List Entry]{Full Caption with Citation\cite{key}}

Thorsten
Tu154
Posts: 5
Joined: Fri Jun 03, 2011 3:58 pm

Re: Exclude the Source in the Table Caption

Post by Tu154 »

Thank you!

I didn't know... I just started with Lyx.
The code you gave me works! But now I have a further problem. In the describtion part the command for a break doesn't work: "\\". Also not this one: "\newline".

\caption[Preisabweichung (negative Minutenreserve)]{Preisabweichung (negative Minutenreserve)\\Quelle: xxxxx}

Did I haven't consider something?

Thanks for help!
Domser
Tu154
Posts: 5
Joined: Fri Jun 03, 2011 3:58 pm

Re: Exclude the Source in the Table Caption

Post by Tu154 »

Ok, I got it.

I just added \usepackage{caption}.
Post Reply