LyXRemoving captions from LoF

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ChrisK
Posts: 3
Joined: Tue Mar 09, 2010 6:30 pm

Removing captions from LoF

Post by ChrisK »

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.

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Removing captions from LoF

Post by localghost »

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
ChrisK
Posts: 3
Joined: Tue Mar 09, 2010 6:30 pm

Re: Removing captions from LoF

Post by ChrisK »

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?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Removing captions from LoF

Post by gmedina »

If I understood your question correctly, you could try something like the following:

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}
Disclaimer: I have no idea how to implement my idea using LyX.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
ChrisK
Posts: 3
Joined: Tue Mar 09, 2010 6:30 pm

Re: Removing captions from LoF

Post by ChrisK »

But how would this be accomplished using Lyx?
Post Reply