I try to create my own envrionement in LaTeX2e, where it want to have a envrionment inside environemnt (see the example).
Code: Select all
\documentclass{article}
\title{title}
\author{author}
\date{}
\newenvironment{Inside}[2]{%
#1 & #2 &%
}{%
\\%
}
\newenvironment{Outside}{
\begin{tabular}[t]{lll}
\textbf{1} & \textbf{2} & \textbf{3} \\
}{
\end{tabular}
}
\begin{document}
\begin{Outside}
\begin{Inside}{AAA}{BBB}
descriptive text...
\end{Inside}
\end{Outside}
\end{document}
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
(test.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\size10.clo")) (test.aux)
! Extra }, or forgotten \endgroup.
<template> \unskip \hfil }
\hskip \tabcolsep \endtemplate
l.23 \begin{Inside}{AAA}{BBB}
Does some one know how I can fix this problem?
Thanks in advance.