GeneralSuppressing caption within Figure environment only

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pmlboy
Posts: 2
Joined: Wed Dec 12, 2007 10:49 pm

Suppressing caption within Figure environment only

Post by pmlboy »

I am looking for ways, in which I can suppress the caption within the Figure environment only and print something else as a caption. So that, next to the figure I can print a different caption (Fig. number + names of authors). However, the original caption is needed in the List of Figures.

For example:

\begin{figure}
\caption{Schematic of experimental setup}
\end{figure}

Next to the figure (where it appears in the text), I want "Fig. 1 Names of Authors". However, in the List of Figures, I want "Schematic of Experimental Setup" to appear.

Please let me know how this can be done. These are requirements for a Journal submission.

Many thanks for your help.

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Suppressing caption within Figure environment only

Post by gmedina »

You can use the optional argument of the \caption command, as the following example suggests:

Code: Select all

\documentclass{article}

\begin{document}
\listoffigures

\begin{figure}
 \centering
 \fbox{Test figure}
 \caption[Schematic of Experimental Setup]{Names of Authors}
\end{figure}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pmlboy
Posts: 2
Joined: Wed Dec 12, 2007 10:49 pm

Re: Suppressing caption within Figure environment only

Post by pmlboy »

Great. It works. Many thanks for the tip.
Post Reply