def __init__(self, name, contents=(), args=(), preserve_whitespace=False,<EOL>nobegin=False, begin=False, end=False):
super().__init__(name, contents, args, preserve_whitespace)<EOL>self.nobegin = nobegin<EOL>self.begin = begin if begin else (self.name if self.nobegin else "<STR_LIT>" % self.name)<EOL>self.end = end if end else (self.name if self.nobegin else "<STR_LIT>" % self.name)<EOL>
Initialization for Tex environment.

        :param str name: name of environment
        :param iterable contents: list of contents
        :param iterable args: list of Tex Arguments
        :param bool preserve_whitespace: If false, elements containing only
            whitespace will be removed from contents.
        :param bool nobegin: Disable \begin{...} notation.