LyXFigure-like custom inset with own "Float" and "List of ..."

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
khairul23
Posts: 1
Joined: Sat Apr 06, 2013 5:28 am

Figure-like custom inset with own "Float" and "List of ..."

Post by khairul23 »

The format of thesis in my university requires distinction between figures and photographs. Hence in the thesis there would be for example:

Figure 1:..

Photo 1:..

Photo 2:..

Figure 2:..

And these two need to be listed separately, for example:

List of Figures
Figure 1.
Figure 2.

List of Photographs
Photo 1.
Photo 2.

The two list will then be included in the TOC.

Lyx already provides for inserting Figures, Figure Floats and List of Figures. How would I create a new inset called Photographs that can be used like the Figures with its own Float and List of?

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

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Figure-like custom inset with own "Float" and "List of ..."

Post by sommerfee »

There exist mainly two packages for this purpose: The float and the newfloat package. While the float package allows the definition of a new floating environment with a given layout/style, the newfloat package defines floating environment which behave like figure and table regarding layout and \caption.

But if you use either the memoir or a koma-script document class there is (usually) no need for using an extra package since there are already build-in capabilities for defining new floating environments.

P.S.: I have absolutely no experience with Lyx, so unfortunately I can't help you with integrating these packages into your Lyx document.
Post Reply