Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/source/conf.py

    r96f00a0 r6394851  
    3636              'sphinx.ext.coverage', 
    3737              'sphinx.ext.mathjax', 
    38               #'mathjax',  # replacement mathjax that allows a list of paths 
    3938              'dollarmath', 
    4039              'sphinx.ext.viewcode'] 
    4140 
    42 mathjax_path = ( 
    43     'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?' 
    44     'config=TeX-MML-AM_CHTML') 
    45  
    46 # For katex uncomment the following 
    47 """ 
    48 #STATIC_PATH = '../../_static/' 
    49 STATIC_PATH = '' 
    50 mathjax_path = [ 
    51     STATIC_PATH + 'katex/katex.min.js', 
    52     STATIC_PATH + 'katex/contrib/auto-render.min.js', 
    53     STATIC_PATH + 'rendermath.js' 
    54 ] 
    55 mathjax_css = STATIC_PATH + 'katex/katex.min.css' 
    56 """ 
    57  
     41#set mathjax path 
     42mathjax_path="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML" 
    5843 
    5944# Add any paths that contain templates here, relative to this directory. 
     
    8065version = '4.1' 
    8166# The full version, including alpha/beta/rc tags. 
    82 release = '4.1.0' 
     67release = '4.1.2' 
    8368 
    8469# The language for content autogenerated by Sphinx. Refer to documentation 
     
    219204# -- Options for LaTeX output -------------------------------------------------- 
    220205 
    221 # TODO: seems like angstroms is defined twice. 
    222206LATEX_PREAMBLE=r""" 
     207\renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode 
    223208\usepackage[utf8]{inputenc}      % Allow unicode symbols in text 
    224 \newcommand{\lt}{<}              % HTML needs \lt rather than < 
    225 \newcommand{\gt}{>}              % HTML needs \gt rather than > 
    226 \renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode 
    227 \DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom 
    228209\DeclareUnicodeCharacter {00B7} {\ensuremath{\cdot}}   % cdot 
    229210\DeclareUnicodeCharacter {00B0} {\ensuremath{^\circ}}  % degrees 
     211\DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom 
    230212""" 
    231213latex_elements = { 
Note: See TracChangeset for help on using the changeset viewer.