Graphics, Figures & TablesMake an environment float

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
woltan
Posts: 19
Joined: Mon Mar 09, 2009 2:08 pm

Make an environment float

Post by woltan »

Hey folks,
I made myself a new envirnment to pass some arguments and make everything look shiny. However the environment is not a floating one. Meaning, sentences before receive some white space infront of them.

Example:
This is a first sentence. This is a second sentence.
\begin{myEnv}{Param1}{Param2}{Param3}
Do stuff
\end{myEnv}
This is a third sentence.

In the compiled version it looks like this:
This is a first sentence. ______This is a

Do stuff

second sentence. This is a third sentence.

Only that ____ are in fact white spaces. Inside the environment itself is a floating picture. If I do not make use of my environment, everything is how it is supposed to be and there are no whit spaces.

Is there a way to make my envornment a floating one? So that the white spaces disappear? Maybe there is a way to define a new float along with passing some arguments? If there is no solution i would have to get rid of my shiny environment, so any suggestions/help/link is welcome!!

Thx in advance
cherio Woltan

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Make an environment float

Post by kaiserkarl13 »

It's difficult to find the problem with how you've defined your environment when you don't tell us how you've defined your environment. Please provide a minimum working example (see forum rules) if you want more help.
Post Reply