Graphics, Figures & TablesFigures with not Figer name and it's own couner

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
vmk
Posts: 1
Joined: Wed Jul 01, 2015 1:35 pm

Figures with not Figer name and it's own couner

Post by vmk »

In the article some images must have under them:

Figure N. This beautiful image

and other must have:

Scheme N. The nice scheme

with it's own counter.

I do not know how to do this.
I work in LYX and do the article in 2 columns, so I use caption package and do caption as \captionof{figure}{General synthetic route} as Tex code
But I do not know what to do with Scheme and it's own counter.
Can somebody help?
Thanks.
Last edited by cgnieder on Tue Jul 07, 2015 11:38 am, edited 1 time in total.

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Figures with not Figer name and it's own couner

Post by cgnieder »

If you're using the caption package already I'd load the newfloat package in addition and define a {scheme} environment which behaves the same as the {figure} environment:

Code: Select all

\usepackage{newfloat}

\DeclareFloatingEnvironment[
  fileext   = los, % file extension for the list of schemes
  listname  = {List of schemes}, % heading for the list
  name      = Scheme, % name in captions
  placement = htp % default floating paramaters
]{scheme}
This also defines \listofschemes and enables the usage of \captionof{scheme}{…}.

With the above definition in the preamble you can use

Code: Select all

\begin{scheme}
  Here goes the actual scheme…
  \caption{Caption of the scheme.}
\end{scheme}
Regards
site moderator & package author
Post Reply