def latex():
 check_build()
 if (sys.platform != 'win32'):
  if os.system('sphinx-build -b latex -d build/doctrees . build/latex'):
   raise SystemExit('Building LaTeX failed.')
  os.chdir('build/latex')
  if os.system('make'):
   raise SystemExit('Rendering LaTeX failed.')
  os.chdir('../..')
 else:
  print('latex build has not been tested on windows')

def latex ( ) : check_build ( ) if ( sys . platform != 'win32' ) : if os . system ( 'sphinx-build -b latex -d build/doctrees . build/latex' ) : raise SystemExit ( 'Building LaTeX failed.' ) os . chdir ( 'build/latex' ) if os . system ( 'make' ) : raise SystemExit ( 'Rendering LaTeX failed.' ) os . chdir ( '../..' ) else : print ( 'latex build has not been tested on windows' )
convert the given expression to latex representation .