removed obsolete issues (many of them fixed with AE)
[docutils.git] / sandbox / cben / rolehack / mathhack.py
blob0a02f231c9eb75b3213669b584010906c91ee35d
1 #!/usr/bin/env python
2 """
3 .. epigraph::
5 Using ``raw`` is almost always evidence of a hack in progress. It's not a
6 clean solution.
8 -- David Goodger.
10 Convert the default and ``texmath`` role to raw latex inline math and the
11 ``texmath`` directive to display math.
12 """
14 from rolehack import *
16 texmath = template('''\
17 raw:: latex
19 $''', '$\n')
21 texdisplay = template('''\
22 raw:: latex
24 \[ ''', ' \]\n')
26 main({'texmath': texmath}, texmath,
27 {'texmath': texdisplay})