Ignore:
File:
1 edited

Legend:

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

    rf4771596 r959eb01  
    3636              'sphinx.ext.coverage', 
    3737              'sphinx.ext.mathjax', 
    38               #'mathjax',  # replacement mathjax that allows a list of paths 
    3938              'dollarmath', 
    4039              'sphinx.ext.viewcode'] 
    41  
    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  
    5840 
    5941# Add any paths that contain templates here, relative to this directory. 
     
    219201# -- Options for LaTeX output -------------------------------------------------- 
    220202 
    221 # TODO: seems like angstroms is defined twice. 
    222203LATEX_PREAMBLE=r""" 
     204\renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode 
    223205\usepackage[utf8]{inputenc}      % Allow unicode symbols in text 
    224 \usepackage{underscore}          % Allow underscore outside math mode 
    225 \usepackage[T1]{fontenc}         % Use underscore character from font 
    226 \newcommand{\lt}{<}              % HTML needs \lt rather than < 
    227 \newcommand{\gt}{>}              % HTML needs \gt rather than > 
    228 \renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode 
    229 \DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom 
    230206\DeclareUnicodeCharacter {00B7} {\ensuremath{\cdot}}   % cdot 
    231207\DeclareUnicodeCharacter {00B0} {\ensuremath{^\circ}}  % degrees 
     208\DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom 
    232209""" 
    233210latex_elements = { 
Note: See TracChangeset for help on using the changeset viewer.