pydocmaker.backend.mdx_latex
Attributes
Classes
Convert html tables to Latex. |
|
Functions
|
|
|
|
|
Escape latex reserved characters. |
|
Limit ourselves as this is only used for maths stuff. |
|
|
|
|
|
Module Contents
- pydocmaker.backend.mdx_latex.start_single_quote_re
- pydocmaker.backend.mdx_latex.start_double_quote_re
- pydocmaker.backend.mdx_latex.end_double_quote_re
- pydocmaker.backend.mdx_latex.replace_underscores(s)
- pydocmaker.backend.mdx_latex.inline_html_latex(text)
- pydocmaker.backend.mdx_latex.unescape_html_entities(text)
- pydocmaker.backend.mdx_latex.escape_latex_entities(text)
Escape latex reserved characters.
- pydocmaker.backend.mdx_latex.unescape_latex_entities(text)
Limit ourselves as this is only used for maths stuff.
- pydocmaker.backend.mdx_latex.makeExtension(configs=None)
- class pydocmaker.backend.mdx_latex.LaTeXExtension(configs=None)
Bases:
markdown.Extension- extendMarkdown(md)
- reset()
- class pydocmaker.backend.mdx_latex.LaTeXTreeProcessor
Bases:
markdown.treeprocessors.Treeprocessor- run(doc)
Walk the dom converting relevant nodes to text nodes with relevant content.
- tolatex(ournode)
- class pydocmaker.backend.mdx_latex.UnescapeHtmlTextPostProcessor
Bases:
markdown.postprocessors.Postprocessor- run(text)
- class pydocmaker.backend.mdx_latex.MathTextPostProcessor
Bases:
markdown.postprocessors.Postprocessor- run(instr)
Convert all math sections in {text} whether latex, asciimathml or latexmathml formatted to latex.
This assumes you are using $ for inline math and $$ for blocks as your mathematics delimiter (not the standard asciimathml or latexmathml delimiter).
- class pydocmaker.backend.mdx_latex.TableTextPostProcessor
Bases:
markdown.postprocessors.Postprocessor- run(instr)
This is not very sophisticated and for it to work it is expected that:
1. tables to be in a section on their own (that is at least one blank line above and below) 2. no nesting of tables
- class pydocmaker.backend.mdx_latex.Table2Latex
Convert html tables to Latex.
TODO: escape latex entities.
- colformat()
- get_text(element)
- process_cell(element)
- tolatex(element)
- convert(instr)
- class pydocmaker.backend.mdx_latex.ImageTextPostProcessor
Bases:
markdown.postprocessors.Postprocessor- run(instr)
Process all img tags
Similar to process_tables this is not very sophisticated and for it to work it is expected that img tags are put in a section of their own (that is separated by at least one blank line above and below).
- class pydocmaker.backend.mdx_latex.LinkTextPostProcessor
Bases:
markdown.postprocessors.Postprocessor- run(instr)
- class pydocmaker.backend.mdx_latex.FootnoteExtension(configs=None)
Bases:
markdown.Extension- DEF_RE
- SHORT_USE_RE
- extendMarkdown(md)
- reset()
- setFootnote(id, text)
- pydocmaker.backend.mdx_latex.template(template_fo, latex_to_insert)
- pydocmaker.backend.mdx_latex.main()