Commits

Yung-Yu Chen  committed f469ae4

Use mathjax to replace pngmath.

  • Participants
  • Parent commits 377f9a2

Comments (0)

Files changed (2)

File document/source/conf.py

 extensions = [
     'sphinx.ext.autodoc',
     'sphinx.ext.intersphinx',
-    'sphinx.ext.pngmath',
+    'sphinx.ext.mathjax',
     'sphinx.ext.doctest',
     'sphinx.ext.graphviz',
 ]
 #'pointsize': '10pt',
 
 # Additional stuff for the LaTeX preamble.
-    'preamble': r'''\usepackage{amsmath}
-\usepackage{amssymb}
-\usepackage{vector}
-\usepackage{commath}
-\newcommand{\defeq}{\ensuremath{\buildrel {\text{def}}\over{=}}}'''
+#    'preamble': r'''\usepackage{amsmath}
+#\usepackage{amssymb}
+#\usepackage{vector}
+#\usepackage{commath}
+#\newcommand{\defeq}{\ensuremath{\buildrel {\text{def}}\over{=}}}'''
 }
 
-pngmath_latex_preamble = latex_elements['preamble']
+#pngmath_latex_preamble = latex_elements['preamble']
 
 # Grouping the document tree into LaTeX files. List of tuples
 # (source start file, target name, title, author, documentclass [howto/manual]).

File document/source/num_trans.rst

 .. math::
   :label: e:trans:forward
 
+  \newcommand{\defeq}{\buildrel {\text{def}}\over{=}}
+
   F(\omega) = \mathcal{F}\left\{f(t)\right\}\defeq
     \int_{-\infty}^{\infty} f(x) e^{-i2\pi\omega x} dx \\