add tag
निरंजन
I want to use a floating entity as in some material which can be printed with positioning parameters irrespective of where it appears in the code, I know the `float` package, but the approach it uses is a bit over the top for me as I don't want the counting mechanism, `\listof{x}` command, generating auxiliary files and so on. Is there any standard LaTeX method for developing such custom floats and positioning them? If there isn't any, what could be the lightest way of developing such a float which essentially does nothing but positioning of material? Note that I don't want to tinker with `table` and `figure`. I want to keep it separate.
Top Answer
Joseph Wright
You just have to follow the model in _e.g._ `article.cls` for figures or tables:
```
\documentclass{article}
\makeatletter
\newcounter{scheme}
\renewcommand\thescheme{\@arabic\c@scheme}
\def\fps@scheme{htbp}
\def\ftype@scheme{4}
\def\ext@scheme{los}
\def\fnum@scheme{\schemename\nobreakspace\thescheme}
\newenvironment{scheme}
  {\@float{scheme}}
  {\end@float}
\def\schemename{Scheme}
\makeatother
\begin{document}
\begin{scheme}
  Some context
  \caption{Oooh a scheme!}
\end{scheme}
\end{document}
```
Note that this is basically what `float` does, it just makes it easier to set up. Notice we do need to set up various things to make sure that mechanisms still work: we have for example to have a file extension for recording the new float type, even if you don't want to use it.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.