def process_mathjax_script(mathjax_settings):
 with open((os.path.dirname(os.path.realpath(__file__)) + '/mathjax_script_template'), 'r') as mathjax_script_template:
  mathjax_template = mathjax_script_template.read()
 return mathjax_template.format(**mathjax_settings)

def process_mathjax_script ( mathjax_settings ) : with open ( ( os . path . dirname ( os . path . realpath ( __file__ ) ) + '/mathjax_script_template' ) , 'r' ) as mathjax_script_template : mathjax_template = mathjax_script_template . read ( ) return mathjax_template . format ( ** mathjax_settings )
load the mathjax script template from file .