Graphics, Figures & TablesWant to distinguish Photos from Figures in captions

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
John_FTex
Posts: 10
Joined: Wed Dec 21, 2022 2:32 am

Want to distinguish Photos from Figures in captions

Post by John_FTex »

I use captions with my photos. But it says Figure xx by default, but I want it to say Photo xx. How can I do this?

So it would be for the first photo in the first chapter: Photo 1.1 rather than Figure 1.1. Then if there really was a Figure, I could use Figure.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Bartman
Posts: 367
Joined: Fri Jan 03, 2020 2:39 pm

Want to distinguish Photos from Figures in captions

Post by Bartman »

The answer to the question depends on the document class used. If you're using a standard class, then you could deal with the newfloat package. If you use one of the KOMA-Script classes, read section 15.6. "Everything with Only One Command".
John_FTex
Posts: 10
Joined: Wed Dec 21, 2022 2:32 am

Want to distinguish Photos from Figures in captions

Post by John_FTex »

Bartman wrote:The answer to the question depends on the document class used. If you're using a standard class, then you could deal with the newfloat package. If you use one of the KOMA-Script classes, read section 15.6. "Everything with Only One Command".
Do you know if it's possible to take the original caption macro of Alex Sommerfeldt and simply add the capability to replace the word Figure. It seems like an awfully simple thing - just parameterize the names used in the caption? I guess maybe that's the idea of newfloat?
John_FTex
Posts: 10
Joined: Wed Dec 21, 2022 2:32 am

Want to distinguish Photos from Figures in captions

Post by John_FTex »

Bartman wrote:The answer to the question depends on the document class used. If you're using a standard class, then you could deal with the newfloat package. If you use one of the KOMA-Script classes, read section 15.6. "Everything with Only One Command".
Luckily, I found this post: it IS easier than I thought.

https://tex.stackexchange.com/questions ... e-to-graph
Post Reply