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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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