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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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