I have a problem with \listoftables
command.
\listoftables
gets data from \captions
and displays it in the table list. Is it possible for \listoftables
to retrieve text from another command?
Example:
\documentclass[a4paper,12pt, twoside]{article}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{table}
\caption{Very long caption.} \label{tab:sometab}
\centering
\begin{tabular}{|c|c|}
\hline
Hi & I \\
Need & Help \\
\hline
\end{tabular}
\end{table}
\end{document}
In \listoftables
I don't want "Very long caption" but I want to have something else, for example: "Short caption".
\caption[short caption]{Very long caption.}
? – Mensch Mar 17 at 16:42\addtocontents{lot}{text}
. This is used, for example, to add extra space between chapters. – John Kormylo Mar 18 at 16:42