[Tuglist] put an environment in between one row of tabular

David Kastrup tuglist@tug.org.in
28 May 2002 09:41:48 +0200


Baskaran <baskaran@sps.co.in> writes:

> I need to put an environment in between one row of tabular for the
> following example.

It is always frustrating for a doctor if all the patient wants is the
signature on the prescription.  Unfortunately, the medication you have
in mind is not available: environments cannot be spread across table
cells.  So just scrap your prescription and rather tell us what you
want to have typeset instead of how you want to achieve it.

> But it says Error "missing brace". If it is a single column covered
> by an environment, there is no problem. Could you please say a good
> solution
> 
> \documentclass{article}
> \newenvironment{xxxx}{}{}
> \begin{document}
>  \begin{tabular}{llll}
> \begin{xxxx}
> sssssss
> & 1.2   &1x2    &1,2  \end{xxxx} \\

Each cell of a tabular is typeset in its own local group.  You cannot
have one group or environment split across different cells for that
reason.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de