code: def generate(env):
      
  
      env.AppendUnique(LATEXSUFFIXES=SCons.Tool.LaTeXSuffixes)
  
      from . import dvi
      dvi.generate(env)
  
      from . import pdf
      pdf.generate(env)
  
      bld = env['BUILDERS']['DVI']
      bld.add_action('.ltx', LaTeXAuxAction)
      bld.add_action('.latex', LaTeXAuxAction)
      bld.add_emitter('.ltx', SCons.Tool.tex.tex_eps_emitter)
      bld.add_emitter('.latex', SCons.Tool.tex.tex_eps_emitter)
  
      SCons.Tool.tex.generate_common(env)
docs: Add Builders and construction variables for LaTeX to an Environment.