0

First at all, sorry for my english, im colombian.

Im a Chemistry student, in my thesis I need put in that two types of images, "figures" and "schemes", and their respect \listof... when i tried to change the figurename i always change the figurename of both. I tried to make a \newcommand[] to make schemes but its based in \begin{figure} so, change the figurename of all the document.

  • Welcome! There is a package for this --- https://www.ctan.org/pkg/newfloat . It has exactly your example in the manual, with diagrams instead of schemes ;-) – Rmano Nov 02 '22 at 18:21
  • Could be https://tex.stackexchange.com/questions/95631/defining-a-new-type-of-floating-environment a duplicate of this? – Rmano Nov 02 '22 at 18:22

1 Answers1

1

Have a look at float package with its macro \newfloat to create a custom float. Alternatively, you could try toclotf but the latter is more complex. In both cases, you might also consider cleveref, which helps to customise references to your new and existing counters.

Here's one possible solution:

enter image description here

PS. I am not sure if Schema/Schemata is what you are up to as well as which of the form of Schemas/Schemata is correct but I think you should take on from here.

\documentclass{article}
\usepackage{graphicx}
\usepackage{float}

\newfloat{schema}{tbh}{sch} \floatname{schema}{Schema} \floatplacement{figure}{tbh}

\begin{document} \listoffigures

\listof{schema}{List of Schemata}

\clearpage Figure \ref{fig:label1}

\begin{figure} \centering \includegraphics[width=3cm]{example-image-a} \caption[Short figure caption]{Very long long caption under the figure} \label{fig:label1} \end{figure}

Schema \ref{sch:label1}

\begin{schema} \centering \rule{3cm}{1.2cm} \caption[Short schema caption]{Very very long caption under the schema} \label{sch:label1} \end{schema}

Figure \ref{fig:label2}

\begin{figure} \centering \includegraphics[width=3cm]{example-image-a} \caption[Short figure caption]{Very long long caption under the figure} \label{fig:label2} \end{figure}

Schema \ref{sch:label2}

\begin{schema}[!tbh] \centering \rule{3cm}{1.2cm} \caption[Short schema caption]{Very very long caption under the schema} \label{sch:label2} \end{schema} \end{document}

Celdor
  • 9,058