GeneralCreating multiple captions (e.g. description and source)

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
chr4004
Posts: 4
Joined: Sun Sep 21, 2008 6:16 pm

Creating multiple captions (e.g. description and source)

Post by chr4004 »

I'm trying to create a table that contains a title caption and a source caption. Is there any way of doing this? Searching this forum for "source caption" leads to all kinds of "source code" results. So I'm having kind of a problem to find what I'm looking for. Wouldn't it be a common problem as every table needs a additional source caption? Thx

Recommended reading 2024:

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

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

chr4004
Posts: 4
Joined: Sun Sep 21, 2008 6:16 pm

Creating multiple captions (e.g. description and source)

Post by chr4004 »

I found the caption package (nice description here [PDF]) that pretty much does the job for me now.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Creating multiple captions (e.g. description and source)

Post by localghost »

I'm not sure what you mean with a "source caption"? I guess this should be a reference to an entry in the bibliography. This could be done with the usual \caption command.

Code: Select all

\caption[ToC entry without source]{Caption of the table with given source \cite{key}}\label{tab:table}
Not every table needs such a source reference as not every table is taken from another source. Some of them are self made.
chr4004 wrote:I found the caption package (nice description here [PDF]) that pretty much does the job for me now.
It would be very kind if you present your solution here in case somebody else faces a similar problem.


Best regards
Thorsten¹
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Creating multiple captions (e.g. description and source)

Post by gmedina »

Hi,

some days ago a similar question was posted in this thread from CQF.info. The idea of the proposed solution was to use \caption and \caption* (described in the documentation of the caption package) For completeness' sake I will reproduce here a variation of the example that was given there:

Code: Select all

\documentclass{report}
\usepackage{caption}

\begin{document}
\listoftables
\clearpage

\begin{table}
  \centering
  \caption{A test table}
  \label{tab:testtab}
  \begin{tabular}{cc}\hline
    column1 & column 2\\ \hline
  \end{tabular}
  \caption*{Source: some text}
\end{table}

As you can see in \ref{tab:testtab}...
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply