Thank you for your reply.
You are totally right. Latex doesnot permet the use of parameters in its ending part of definition. Maybe it's a designing issue who knows.
Thank you.
Search found 3 matches
- Tue Aug 18, 2009 7:41 am
- Forum: General
- Topic: why my newenvironment doesnot accept more than 1 parameters?
- Replies: 4
- Views: 4738
- Mon Aug 17, 2009 8:30 am
- Forum: General
- Topic: why my newenvironment doesnot accept more than 1 parameters?
- Replies: 4
- Views: 4738
Re: why my newenvironment doesnot accept more than 1 parameters?
Sorry I had forgotten posting error messages:
ERROR: Illegal parameter number in definition of \endadd_head_tail.
--- TeX said ---
<to be read again>
2
l.10 ...}[2]{Head of \emph{#1}}{Head of \emph{#2}}
--- HELP ---
This is probably caused by a \newcommand, \renewcommand,
\newenvironment, or ...
ERROR: Illegal parameter number in definition of \endadd_head_tail.
--- TeX said ---
<to be read again>
2
l.10 ...}[2]{Head of \emph{#1}}{Head of \emph{#2}}
--- HELP ---
This is probably caused by a \newcommand, \renewcommand,
\newenvironment, or ...
- Mon Aug 17, 2009 8:26 am
- Forum: General
- Topic: why my newenvironment doesnot accept more than 1 parameters?
- Replies: 4
- Views: 4738
why my newenvironment doesnot accept more than 1 parameters?
Hello everyone,
Here is my first question. I am a newbie and trying out the newenvironment.
The following newenvironment does not compile. Anyone can explain me why? Thanks a lot.
Here is my first question. I am a newbie and trying out the newenvironment.
The following newenvironment does not compile. Anyone can explain me why? Thanks a lot.
Code: Select all
\newenvironment{add_head_tail}[2]{Head of \emph{#1}}{Head of \emph{#2}}