[texhax] using \newenvironment

Ulrike Fischer news2 at nililand.de
Wed Nov 19 16:28:36 CET 2008


Am Wed, 19 Nov 2008 09:38:45 -0500 schrieb Anielkis Herrera Gonzalez:

> Greetings, I have a problem using \newenvironment for example with
> tabbulary o tabbularx (packages used with \usepackage{})
> 
> I have this:
> 
> \newenvironment{command}
> {\begin{tabulary}{420px}{|>{\columncolor[rgb]{0.8,0.9,0.8}}L|
>>{\columncolor[rgb]{0.8,0.9,0.8}}L|}
> \hline}
> {
> \hline
> \end{tabulary}}
> 
> and when use it:
> 
> \begin{command}
> a&b\tabularnewline
> \end{command}
> 
> 
> got this error:
> 
> ! File ended while scanning use of \TY at get@body.

Use \tabulary instead of \begin{tabulary} and \endtabulary instead of
\end{tabulary}.


-- 
Ulrike Fischer 



More information about the texhax mailing list