Ticket #11632: trac_11632-thematic-conf.v2.patch

File trac_11632-thematic-conf.v2.patch, 1.0 KB (added by John Palmieri, 11 years ago)
  • doc/en/thematic_tutorials/conf.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1311717696 25200
    # Node ID 0231449ee46baaade1574647c04cf7ad137db2ed
    # Parent  55b4dda7ac8e04781532c34faf69f0fd45200545
    #11632: append to, don't overwrite, jsmath macros in thematics_tutorials/conf.py
    
    diff --git a/doc/en/thematic_tutorials/conf.py b/doc/en/thematic_tutorials/conf.py
    a b htmlhelp_basename = "thematic_tutorials" 
    3232# following line turns it into bold face only when using jsMath, thus
    3333# avoiding the errors, while keeping the nice mathfrak fonts when not
    3434# using jsMath.
    35 html_theme_options['jsmath_macros'] = ["mathfrak : ['\\\\mathbf{#1}', 1]"]
     35try:
     36    html_theme_options['jsmath_macros'].append("mathfrak : ['\\\\mathbf{#1}', 1]")
     37except KeyError:
     38    html_theme_options['jsmath_macros'] = ["mathfrak : ['\\\\mathbf{#1}', 1]"]
    3639
    3740# Grouping the document tree into LaTeX files. List of tuples
    3841# (source start file, target name, title, author,