You can save the argument of the environment into a command and use it in the 2nd part of the \newenvironment definition, e.g.:
Code: Select all
\documentclass[twocolumn]{article}
\usepackage{float}
\floatstyle{boxed}
\newfloat{ColumnFigure}{h}{cf1}
\floatname{ColumnFigure}{Figure}
\newenvironment{ColumnEnv}[1]
{%
\begin{ColumnFigure}%
\newcommand\ColumnFigureCaption{#1}%
}
{%
\caption{\textbf{\ColumnFigureCaption}}%
\end{ColumnFigure}%
}
\begin{document}
\begin{ColumnEnv}{Argument 1}
Text inside the ColumnFigure.
\end{ColumnEnv}
\end{document}
But since the float package don't care where the \caption command will be placed, you can simply place the \caption command inside the 1st half of the \newenviroment definition:
Code: Select all
\documentclass[twocolumn]{article}
\usepackage{float}
\floatstyle{boxed}
\newfloat{ColumnFigure}{h}{cf1}
\floatname{ColumnFigure}{Figure}
\newenvironment{ColumnEnv}[1]
{%
\begin{ColumnFigure}%
\caption{\textbf{#1}}%
}
{%
\end{ColumnFigure}%
}
\begin{document}
\begin{ColumnEnv}{Argument 1}
Text inside the ColumnFigure.
\end{ColumnEnv}
\end{document}