I need to create a new environment completely the same as the old one. Here is what I mean: I need two different quote environments one which I would use with \begin{quote} and another that would be the same but I would use \begin{source} command instead.
Does anyone know how to include the old environment in the \newenvironment command?
Thanks!
Last edited by cgnieder on Fri May 03, 2013 9:56 am, edited 1 time in total.
What the command \begin{env} does apart from opening a group and setting the current environment name is issuing the command \env. The \end{env} checks if the currently open environment matches, calls \endenv and closes the group (roughly speaking). So the standard way to create a wrapper environment is to call the commands \env and \endenv in the \newenvironment statement:
Thank you very much for the fast answer! This solved my problem and its so simple! Sometimes the simplest things are so hard to find (and I did a thorough search before posting here). Thanks again!