(role, rawtext, text, lineno, inliner,
options={}, content=[])
| 93 | |
| 94 | |
| 95 | def math_role(role, rawtext, text, lineno, inliner, |
| 96 | options={}, content=[]): |
| 97 | i = rawtext.find('`') |
| 98 | latex = rawtext[i+1:-1] |
| 99 | node = latex_math(rawtext) |
| 100 | node['latex'] = latex |
| 101 | node['fontset'] = options.get('fontset', 'cm') |
| 102 | node['fontsize'] = options.get('fontsize', |
| 103 | setup.app.config.mathmpl_fontsize) |
| 104 | return [node], [] |
| 105 | math_role.options = {'fontset': fontset_choice, |
| 106 | 'fontsize': validate_float_or_None} |
| 107 |
nothing calls this directly
no test coverage detected
searching dependent graphs…