Changeset 1fbadb2 in sasmodels


Ignore:
Timestamp:
Apr 17, 2018 8:51:56 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f, d533590
Parents:
7c3fb15
Message:

fix math rendering for rst2html: now need mathjax URL

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r5770493 r1fbadb2  
    13761376    path = os.path.dirname(info.filename) 
    13771377    url = "file://" + path.replace("\\", "/")[2:] + "/" 
    1378     rst2html.view_html_qtapp(html, url) 
     1378    rst2html.view_html_wxapp(html, url) 
    13791379 
    13801380def explore(opts): 
  • sasmodels/rst2html.py

    r2d81cfe r1fbadb2  
    5656    # others don't work properly with math_output! 
    5757    if math_output == "mathjax": 
    58         settings = {"math_output": math_output} 
     58        # TODO: this is copied from docs/conf.py; there should be only one 
     59        mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML" 
     60        settings = {"math_output": math_output + " " + mathjax_path} 
    5961    else: 
    6062        settings = {"math-output": math_output} 
Note: See TracChangeset for help on using the changeset viewer.