code: def make_env(*args, **kwargs):
      
      ka = ENV_ARGS.copy()
      ka.update(kwargs)
  
      env = Environment(*args, **ka)
      env.filters['e'] = LatexMarkup.escape
      env.filters['escape'] = LatexMarkup.escape
      env.filters['forceescape'] = LatexMarkup.escape  # FIXME: this is a bug
      return env
docs: Creates an :py:class:`~jinja2.Environment` with different defaults.
  
      Per default, ``autoescape`` will be disabled and ``trim_blocks`` enabled.
      All start/end/prefix strings will be changed for a more LaTeX-friendly
      version (see the docs for details).
  
      Any arguments will be passed on to the :py:class:`~jinja2.Environment`
      constructor and override new values.
  
      Finally, the ``|e``, ``|escape`` and ``|forceescape`` filters will be
      replaced with a call to :func:`latex.escape`.