LyX ⇒ Removing captions from LoF
Removing captions from LoF
How do I remove the figure captions from the list of figures? I have searched endlessly for the answer and am at my wits end! Thanks.
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Removing captions from LoF
I'm not sure what you mean. So I'd say that you just should prevent the LoF from printing by removing it. Since I'm not familiar with LyX, I can't tell you how to do that. But perhaps the LyX Wiki can do so.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Removing captions from LoF
Just to clarify, I do want the list of figure titles to appear in the Table of Figures. I just want the figure captions underneath these titles to disappear from the same Table of Figures. How do I do this?
Removing captions from LoF
If I understood your question correctly, you could try something like the following:
Disclaimer: I have no idea how to implement my idea using LyX.
Code: Select all
\documentclass{book}
\usepackage{caption}
\newcommand\mycaption[1]{%
\caption[\figurename\ \thefigure]{#1}}
\begin{document}
\listoffigures
\begin{figure}[!ht]
\centering
\rule{4cm}{2cm}
\mycaption{Test figure 1.}
\label{fig:test1}
\end{figure}
\begin{figure}[!ht]
\centering
\rule{4cm}{2cm}
\mycaption{Test figure 2.}
\label{fig:test2}
\end{figure}
\begin{figure}[!ht]
\centering
\rule{4cm}{2cm}
\mycaption{Test figure 3.}
\label{fig:test3}
\end{figure}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Removing captions from LoF
But how would this be accomplished using Lyx?