Changeset f4771596 in sasview for docs/sphinx-docs/source
- Timestamp:
- Jun 19, 2017 12:34:42 PM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 35ddae5
- Parents:
- 8f1bb6f
- Location:
- docs/sphinx-docs/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/sphinx-docs/source/_extensions/mathjax.py
rafca488 rf4771596 105 105 # http://docs.mathjax.org/en/latest/start.html#secure-access-to-the-cdn 106 106 app.add_config_value('mathjax_path', 107 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?' 108 'config=TeX-AMS-MML_HTMLorMML', False) 107 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?' 108 'config=TeX-MML-AM_CHTML', 109 #'config=TeX-AMS-MML_HTMLorMML', 110 False) 109 111 app.add_config_value('mathjax_css', None, 'html') 110 112 app.add_config_value('mathjax_use_katex', False, 'html') -
docs/sphinx-docs/source/conf.py
rdce368f rf4771596 35 35 'sphinx.ext.todo', 36 36 'sphinx.ext.coverage', 37 'mathjax', 37 'sphinx.ext.mathjax', 38 #'mathjax', # replacement mathjax that allows a list of paths 38 39 'dollarmath', 39 40 'sphinx.ext.viewcode'] 40 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 """ 41 48 #STATIC_PATH = '../../_static/' 42 49 STATIC_PATH = '' … … 47 54 ] 48 55 mathjax_css = STATIC_PATH + 'katex/katex.min.css' 56 """ 49 57 50 58 … … 211 219 # -- Options for LaTeX output -------------------------------------------------- 212 220 221 # TODO: seems like angstroms is defined twice. 213 222 LATEX_PREAMBLE=r""" 223 \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 > 214 228 \renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode 215 \usepackage[utf8]{inputenc} % Allow unicode symbols in text 216 \usepackage[T1]{fontenc} % Taking care of underscores 217 \catcode`\_=12 % Moving underscore to category 12 218 \newcommand{\lt}{<} %lower than symbol handling 219 \newcommand{\gt}{>} %greater than symbol handling 229 \DeclareUnicodeCharacter {212B} {\AA} % Angstrom 220 230 \DeclareUnicodeCharacter {00B7} {\ensuremath{\cdot}} % cdot 221 231 \DeclareUnicodeCharacter {00B0} {\ensuremath{^\circ}} % degrees 222 \DeclareUnicodeCharacter {212B} {\AA} % Angstrom223 232 """ 224 233 latex_elements = {
Note: See TracChangeset
for help on using the changeset viewer.