docutils.utils.math.math2html module
- class Trace[source]
Bases:
objectA tracing class
- debugmode = False
- quietmode = False
- showlinesmode = False
- prefix = None
- class ContainerConfig[source]
Bases:
objectConfiguration class from elyxer.config file
- extracttext = {'allowed': ['FormulaConstant'], 'extracted': ['AlphaCommand', 'Bracket', 'BracketCommand', 'CombiningFunction', 'EmptyCommand', 'FontFunction', 'Formula', 'FormulaNumber', 'FormulaSymbol', 'OneParamFunction', 'OversetFunction', 'RawText', 'SpacedCommand', 'SymbolFunction', 'TextFunction', 'UndersetFunction']}
- class EscapeConfig[source]
Bases:
objectConfiguration class from elyxer.config file
- chars = {'\n': '', "'": '’', '`': '‘'}
- entities = {'&': '&', '<': '<', '>': '>'}
- class FormulaConfig[source]
Bases:
objectConfiguration class from elyxer.config file
- alphacommands = {'\\AA': 'Å', '\\AE': 'Æ', '\\AmS': '<span class="textsc">AmS</span>', '\\Bbbk': '𝕜', '\\DH': 'Ð', '\\Delta': 'Δ', '\\Gamma': 'Γ', '\\Im': 'ℑ', '\\L': 'Ł', '\\Lambda': 'Λ', '\\O': 'Ø', '\\OE': 'Œ', '\\Omega': 'Ω', '\\Phi': 'Φ', '\\Pi': 'Π', '\\Psi': 'Ψ', '\\Re': 'ℜ', '\\Sigma': 'Σ', '\\TH': 'Þ', '\\Theta': 'Θ', '\\Upsilon': 'Υ', '\\Xi': 'Ξ', '\\aa': 'å', '\\ae': 'æ', '\\aleph': 'ℵ', '\\alpha': 'α', '\\beta': 'β', '\\beth': 'ℶ', '\\chi': 'χ', '\\daleth': 'ℸ', '\\delta': 'δ', '\\dh': 'ð', '\\digamma': 'ϝ', '\\ell': 'ℓ', '\\epsilon': 'ϵ', '\\eta': 'η', '\\eth': 'ð', '\\gamma': 'γ', '\\gimel': 'ℷ', '\\hslash': 'ℏ', '\\i': 'ı', '\\imath': 'ı', '\\iota': 'ι', '\\j': 'ȷ', '\\jmath': 'ȷ', '\\kappa': 'κ', '\\l': 'ł', '\\lambda': 'λ', '\\mu': 'μ', '\\nu': 'ν', '\\o': 'ø', '\\oe': 'œ', '\\omega': 'ω', '\\phi': 'ϕ', '\\pi': 'π', '\\psi': 'ψ', '\\rho': 'ρ', '\\sigma': 'σ', '\\ss': 'ß', '\\tau': 'τ', '\\th': 'þ', '\\theta': 'θ', '\\upsilon': 'υ', '\\varDelta': '𝛥', '\\varGamma': '𝛤', '\\varLambda': '𝛬', '\\varOmega': '𝛺', '\\varPhi': '𝛷', '\\varPi': '𝛱', '\\varPsi': '𝛹', '\\varSigma': '𝛴', '\\varTheta': '𝛩', '\\varUpsilon': '𝛶', '\\varXi': '𝛯', '\\varepsilon': 'ε', '\\varkappa': 'ϰ', '\\varphi': 'φ', '\\varpi': 'ϖ', '\\varrho': 'ϱ', '\\varsigma': 'ς', '\\vartheta': 'ϑ', '\\wp': '℘', '\\xi': 'ξ', '\\zeta': 'ζ'}
- array = {'begin': '\\begin', 'cellseparator': '&', 'end': '\\end', 'rowseparator': '\\\\'}
- bigbrackets = {'(': ['⎛', '⎜', '⎝'], ')': ['⎞', '⎟', '⎠'], '[': ['⎡', '⎢', '⎣'], ']': ['⎤', '⎥', '⎦'], '{': ['⎧', '⎪', '⎨', '⎩'], '|': ['|'], '}': ['⎫', '⎪', '⎬', '⎭'], '‖': ['‖']}
- bracketcommands = {'\\left': 'span class="stretchy"', '\\left.': '<span class="leftdot"></span>', '\\middle': 'span class="stretchy"', '\\right': 'span class="stretchy"', '\\right.': '<span class="rightdot"></span>'}
- combiningfunctions = {'\\"': '̈', "\\'": '́', '\\^': '̂', '\\`': '̀', '\\acute': '́', '\\bar': '̄', '\\breve': '̆', '\\c': '̧', '\\check': '̌', '\\ddddot': '⃜', '\\dddot': '⃛', '\\ddot': '̈', '\\dot': '̇', '\\grave': '̀', '\\hat': '̂', '\\mathring': '̊', '\\not': '̸', '\\overleftrightarrow': '⃡', '\\overline': '̅', '\\r': '̊', '\\s': '̩', '\\textcircled': '⃝', '\\textsubring': '̥', '\\tilde': '̃', '\\underbar': '̱', '\\underleftarrow': '⃮', '\\underline': '̲', '\\underrightarrow': '⃯', '\\v': '̌', '\\vec': '⃗', '\\~': '̃'}
- commands = {'\\\t': ' ', '\\\n': ' ', '\\ ': ' ', '\\#': '#', '\\$': '$', '\\%': '%', '\\&': '&', '\\,': '\u2006', '\\:': '\u205f', '\\;': '<span class="thickspace"> </span>', '\\AC': '∿', '\\APLcomment': '⍝', '\\APLdownarrowbox': '⍗', '\\APLinput': '⍞', '\\APLinv': '⌹', '\\APLleftarrowbox': '⍇', '\\APLlog': '⍟', '\\APLrightarrowbox': '⍈', '\\APLuparrowbox': '⍐', '\\Aries': '♈', '\\Arrowvert': '‖', '\\Box': '⬜', '\\CIRCLE': '●', '\\Cap': '⋒', '\\CheckedBox': '☑', '\\Circle': '○', '\\Cup': '⋓', '\\Diamond': '◇', '\\Diamondblack': '◆', '\\Diamonddot': '⟐', '\\Finv': 'Ⅎ', '\\Game': '⅁', '\\Gemini': '♊', '\\Jupiter': '♃', '\\LEFTCIRCLE': '◖', '\\LEFTcircle': '◐', '\\LHD': '◀', '\\Lbag': '⟅', '\\Leo': '♌', '\\Libra': '♎', '\\Mars': '♂', '\\Mercury': '☿', '\\Neptune': '♆', '\\P': '¶', '\\Pluto': '♇', '\\Pr': 'Pr', '\\RHD': '▶', '\\RIGHTCIRCLE': '◗', '\\RIGHTcircle': '◑', '\\Rbag': '⟆', '\\S': '§', '\\Saturn': '♄', '\\Scorpio': '♏', '\\Square': '☐', '\\Sun': '☉', '\\Taurus': '♉', '\\Uranus': '♅', '\\Venus': '♀', '\\Vert': '‖', '\\XBox': '☒', '\\Yup': '⅄', '\\\\': '<br/>', '\\_': '_', '\\amalg': '⨿', '\\angle': '∠', '\\aquarius': '♒', '\\arccos': 'arccos', '\\arcsin': 'arcsin', '\\arctan': 'arctan', '\\arg': 'arg', '\\aries': '♈', '\\arrowvert': '⏐', '\\ast': '∗', '\\backprime': '‵', '\\backslash': '\\', '\\barwedge': '⊼', '\\bigcirc': '◯', '\\bigstar': '★', '\\bigtriangledown': '▽', '\\bigtriangleup': '△', '\\bindnasrepma': '⅋', '\\blacklozenge': '⧫', '\\blacksmiley': '☻', '\\blacksquare': '◼', '\\blacktriangle': '▴', '\\blacktriangledown': '▾', '\\blacktriangleup': '▴', '\\bot': '⊥', '\\boxast': '⧆', '\\boxbar': '◫', '\\boxbox': '⧈', '\\boxbslash': '⧅', '\\boxcircle': '⧇', '\\boxdot': '⊡', '\\boxminus': '⊟', '\\boxplus': '⊞', '\\boxslash': '⧄', '\\boxtimes': '⊠', '\\boy': '♂', '\\bracevert': '⎪', '\\bullet': '•', '\\cancer': '♋', '\\cap': '∩', '\\capricornus': '♑', '\\cdot': '⋅', '\\cdots': '⋯', '\\cent': '¢', '\\centerdot': '⬝', '\\checkmark': '✓', '\\circ': '∘', '\\circledR': 'Ⓡ', '\\circledS': 'Ⓢ', '\\circledast': '⊛', '\\circledbslash': '⦸', '\\circledcirc': '⊚', '\\circleddash': '⊝', '\\circledgtr': '⧁', '\\circledless': '⧀', '\\clubsuit': '♣', '\\colon': ': ', '\\complement': '∁', '\\copyright': '©', '\\cos': 'cos', '\\cosh': 'cosh', '\\cot': 'cot', '\\coth': 'coth', '\\csc': 'csc', '\\cup': '∪', '\\curlyvee': '⋎', '\\curlywedge': '⋏', '\\dagger': '†', '\\ddagger': '‡', '\\ddots': '⋱', '\\deg': 'deg', '\\det': 'det', '\\diagdown': '⟍', '\\diagup': '⟋', '\\diameter': '⌀', '\\diamond': '⋄', '\\diamondsuit': '♢', '\\dim': 'dim', '\\div': '÷', '\\divideontimes': '⋇', '\\dotminus': '∸', '\\dotplus': '∔', '\\dots': '…', '\\dotsb': '⋯', '\\dotsc': '…', '\\dotsi': '⋯', '\\dotsm': '⋯', '\\dotso': '…', '\\doublebarwedge': '⩞', '\\earth': '♁', '\\emptyset': '∅', '\\euro': '€', '\\exists': '∃', '\\exp': 'exp', '\\female': '♀', '\\flat': '♭', '\\forall': '∀', '\\fourth': '⁗', '\\frownie': '☹', '\\gcd': 'gcd', '\\gemini': '♊', '\\girl': '♀', '\\gtrdot': '⋗', '\\guillemotleft': '«', '\\guillemotright': '»', '\\hbar': '<i>ħ</i>', '\\heartsuit': '♡', '\\hom': 'hom', '\\infty': '∞', '\\injlim': 'inj\u202flim', '\\intercal': '⊺', '\\interleave': '⫴', '\\invamp': '⅋', '\\invdiameter': '⍉', '\\invneg': '⌐', '\\jupiter': '♃', '\\ker': 'ker', '\\lVert': '‖', '\\land': '∧', '\\langle': '⟨', '\\lbag': '⟅', '\\lbrace': '{', '\\lbrack': '[', '\\lceil': '⌈', '\\ldots': '…', '\\leftmoon': '☾', '\\leftthreetimes': '⋋', '\\leo': '♌', '\\lessdot': '⋖', '\\lfloor': '⌊', '\\lg': 'lg', '\\lgroup': '⟮', '\\libra': '♎', '\\liminf': 'lim\u202finf', '\\limsup': 'lim\u202fsup', '\\llbracket': '⟦', '\\llcorner': '⌞', '\\llparenthesis': '⦇', '\\lmoustache': '⎰', '\\ln': 'ln', '\\lnot': '¬', '\\log': 'log', '\\lor': '∨', '\\lozenge': '◊', '\\lrcorner': '⌟', '\\ltimes': '⋉', '\\lvert': '|', '\\male': '♂', '\\maltese': '✠', '\\mathcent': '¢', '\\mathdollar': '$', '\\mathsterling': '£', '\\measuredangle': '∡', '\\medbullet': '⚫', '\\medcirc': '⚪', '\\medspace': '\u205f', '\\mercury': '☿', '\\mho': '℧', '\\mp': '∓', '\\nabla': '∇', '\\natural': '♮', '\\neg': '¬', '\\neptune': '♆', '\\newline': '<br/>', '\\nexists': '∄', '\\nobreakspace': '\xa0', '\\nolimits': '', '\\nonumber': '', '\\notbackslash': '⍀', '\\odot': '⊙', '\\ominus': '⊖', '\\oplus': '⊕', '\\oslash': '⊘', '\\otimes': '⊗', '\\partial': '∂', '\\pisces': '♓', '\\pluto': '♇', '\\pm': '±', '\\pounds': '£', '\\prime': '′', '\\projlim': 'proj\u202flim', '\\qquad': '\u2001\u2001', '\\quad': '\u2001', '\\quarternote': '♩', '\\rVert': '‖', '\\rangle': '⟩', '\\rbag': '⟆', '\\rbrace': '}', '\\rbrack': ']', '\\rceil': '⌉', '\\rfloor': '⌋', '\\rgroup': '⟯', '\\rightmoon': '☽', '\\rightthreetimes': '⋌', '\\rmoustache': '⎱', '\\rrbracket': '⟧', '\\rrparenthesis': '⦈', '\\rtimes': '⋊', '\\rvert': '|', '\\sagittarius': '♐', '\\saturn': '♄', '\\scorpio': '♏', '\\sec': 'sec', '\\second': '″', '\\setminus': '⧵', '\\sharp': '♯', '\\sin': 'sin', '\\sinh': 'sinh', '\\slash': '∕', '\\smallsetminus': '∖', '\\smalltriangledown': '▿', '\\smalltriangleleft': '◃', '\\smalltriangleright': '▹', '\\smiley': '☺', '\\spadesuit': '♠', '\\spddot': '¨', '\\sphat': '^', '\\sphericalangle': '∢', '\\sptilde': '~', '\\sqcap': '⊓', '\\sqcup': '⊔', '\\square': '◻', '\\sslash': '⫽', '\\star': '⋆', '\\sun': '☼', '\\surd': '√', '\\talloblong': '⫾', '\\tan': 'tan', '\\tanh': 'tanh', '\\taurus': '♉', '\\textasciicircum': '^', '\\textasciitilde': '~', '\\textbackslash': '\\', '\\textcopyright': '©', '\\textdegree': '°', '\\textellipsis': '…', '\\textemdash': '—', '\\textendash': '—', '\\texteuro': '€', '\\textgreater': '>', '\\textless': '<', '\\textordfeminine': 'ª', '\\textordmasculine': 'º', '\\textquotedblleft': '“', '\\textquotedblright': '”', '\\textquoteright': '’', '\\textregistered': '®', '\\textrightarrow': '→', '\\textsection': '§', '\\texttrademark': '™', '\\texttwosuperior': '²', '\\textvisiblespace': ' ', '\\thickspace': '<span class="thickspace"> </span>', '\\thinspace': '\u2006', '\\third': '‴', '\\times': '×', '\\top': '⊤', '\\triangle': '△', '\\triangledown': '▽', '\\triangleleft': '◃', '\\triangleright': '▹', '\\twonotes': '♫', '\\ulcorner': '⌜', '\\uplus': '⊎', '\\uranus': '♅', '\\urcorner': '⌝', '\\varEarth': '♁', '\\varclubsuit': '♧', '\\vardiamondsuit': '♦', '\\varheartsuit': '♥', '\\varnothing': '⌀', '\\varspadesuit': '♤', '\\vdots': '⋮', '\\vee': '∨', '\\veebar': '⊻', '\\vert': '|', '\\virgo': '♍', '\\wasylozenge': '⌑', '\\wedge': '∧', '\\wr': '≀', '\\yen': '¥', '\\{': '{', '\\|': '‖', '\\}': '}'}
- cmddict = {' ': ' ', '#': '#', '$': '$', '%': '%', '&': '&', ',': '\u2006', ':': '\u205f', 'AC': '∿', 'APLcomment': '⍝', 'APLdownarrowbox': '⍗', 'APLinput': '⍞', 'APLinv': '⌹', 'APLleftarrowbox': '⍇', 'APLlog': '⍟', 'APLrightarrowbox': '⍈', 'APLuparrowbox': '⍐', 'Aries': '♈', 'Box': '⬜', 'CIRCLE': '●', 'Cap': '⋒', 'CheckedBox': '☑', 'Circle': '○', 'Cup': '⋓', 'Diamond': '◇', 'Diamondblack': '◆', 'Diamonddot': '⟐', 'Finv': 'Ⅎ', 'Game': '⅁', 'Gemini': '♊', 'Jupiter': '♃', 'LEFTCIRCLE': '◖', 'LEFTcircle': '◐', 'LHD': '◀', 'Lbag': '⟅', 'Leo': '♌', 'Libra': '♎', 'Mars': '♂', 'Mercury': '☿', 'Neptune': '♆', 'P': '¶', 'Pluto': '♇', 'RHD': '▶', 'RIGHTCIRCLE': '◗', 'RIGHTcircle': '◑', 'Rbag': '⟆', 'S': '§', 'Saturn': '♄', 'Scorpio': '♏', 'Square': '☐', 'Sun': '☉', 'Taurus': '♉', 'Uranus': '♅', 'Venus': '♀', 'Vert': '‖', 'XBox': '☒', 'Yup': '⅄', '_': '_', 'amalg': '⨿', 'angle': '∠', 'aquarius': '♒', 'aries': '♈', 'arrowvert': '⏐', 'ast': '∗', 'backprime': '‵', 'backslash': '\\', 'barwedge': '⊼', 'bigcirc': '◯', 'bigstar': '★', 'bigtriangledown': '▽', 'bigtriangleup': '△', 'bindnasrepma': '⅋', 'blacklozenge': '⧫', 'blacksmiley': '☻', 'blacksquare': '◼', 'blacktriangle': '▴', 'blacktriangledown': '▾', 'blacktriangleup': '▴', 'bot': '⊥', 'boxast': '⧆', 'boxbar': '◫', 'boxbox': '⧈', 'boxbslash': '⧅', 'boxcircle': '⧇', 'boxdot': '⊡', 'boxminus': '⊟', 'boxplus': '⊞', 'boxslash': '⧄', 'boxtimes': '⊠', 'boy': '♂', 'bracevert': '⎪', 'bullet': '•', 'cancer': '♋', 'cap': '∩', 'capricornus': '♑', 'cdot': '⋅', 'cdots': '⋯', 'cent': '¢', 'checkmark': '✓', 'circ': '∘', 'circledR': 'Ⓡ', 'circledS': 'Ⓢ', 'circledast': '⊛', 'circledbslash': '⦸', 'circledcirc': '⊚', 'circleddash': '⊝', 'circledgtr': '⧁', 'circledless': '⧀', 'clubsuit': '♣', 'complement': '∁', 'cup': '∪', 'curlyvee': '⋎', 'curlywedge': '⋏', 'dagger': '†', 'ddagger': '‡', 'ddots': '⋱', 'diagdown': '⟍', 'diagup': '⟋', 'diameter': '⌀', 'diamond': '⋄', 'diamondsuit': '♢', 'div': '÷', 'divideontimes': '⋇', 'dotplus': '∔', 'doublebarwedge': '⩞', 'earth': '♁', 'emptyset': '∅', 'exists': '∃', 'female': '♀', 'flat': '♭', 'forall': '∀', 'fourth': '⁗', 'frownie': '☹', 'gemini': '♊', 'girl': '♀', 'gtrdot': '⋗', 'heartsuit': '♡', 'infty': '∞', 'intercal': '⊺', 'interleave': '⫴', 'invamp': '⅋', 'invdiameter': '⍉', 'invneg': '⌐', 'jupiter': '♃', 'land': '∧', 'langle': '⟨', 'lbag': '⟅', 'lbrace': '{', 'lbrack': '[', 'lceil': '⌈', 'ldots': '…', 'leftmoon': '☾', 'leftthreetimes': '⋋', 'leo': '♌', 'lessdot': '⋖', 'lfloor': '⌊', 'lgroup': '⟮', 'libra': '♎', 'llbracket': '⟦', 'llcorner': '⌞', 'llparenthesis': '⦇', 'lmoustache': '⎰', 'lnot': '¬', 'lor': '∨', 'lozenge': '◊', 'lrcorner': '⌟', 'ltimes': '⋉', 'male': '♂', 'maltese': '✠', 'mathcent': '¢', 'mathdollar': '$', 'mathsterling': '£', 'measuredangle': '∡', 'medbullet': '⚫', 'medcirc': '⚪', 'medspace': '\u205f', 'mercury': '☿', 'mho': '℧', 'mp': '∓', 'nabla': '∇', 'natural': '♮', 'neg': '¬', 'neptune': '♆', 'nexists': '∄', 'notbackslash': '⍀', 'odot': '⊙', 'ominus': '⊖', 'oplus': '⊕', 'oslash': '⊘', 'otimes': '⊗', 'partial': '∂', 'pisces': '♓', 'pluto': '♇', 'pm': '±', 'pounds': '£', 'prime': '′', 'quad': '\u2001', 'quarternote': '♩', 'rangle': '⟩', 'rbag': '⟆', 'rbrace': '}', 'rbrack': ']', 'rceil': '⌉', 'rfloor': '⌋', 'rgroup': '⟯', 'rightmoon': '☽', 'rightthreetimes': '⋌', 'rmoustache': '⎱', 'rrbracket': '⟧', 'rrparenthesis': '⦈', 'rtimes': '⋊', 'sagittarius': '♐', 'saturn': '♄', 'scorpio': '♏', 'second': '″', 'setminus': '⧵', 'sharp': '♯', 'slash': '∕', 'smallsetminus': '∖', 'smalltriangledown': '▿', 'smalltriangleleft': '◃', 'smalltriangleright': '▹', 'smiley': '☺', 'spadesuit': '♠', 'spddot': '¨', 'sphat': '^', 'sphericalangle': '∢', 'sptilde': '~', 'sqcap': '⊓', 'sqcup': '⊔', 'square': '◻', 'sslash': '⫽', 'star': '⋆', 'sun': '☼', 'surd': '√', 'talloblong': '⫾', 'taurus': '♉', 'thinspace': '\u2006', 'third': '‴', 'times': '×', 'top': '⊤', 'triangleleft': '◃', 'triangleright': '▹', 'twonotes': '♫', 'ulcorner': '⌜', 'uplus': '⊎', 'uranus': '♅', 'urcorner': '⌝', 'varEarth': '♁', 'varclubsuit': '♧', 'vardiamondsuit': '♦', 'varheartsuit': '♥', 'varspadesuit': '♤', 'vdots': '⋮', 'vee': '∨', 'veebar': '⊻', 'vert': '|', 'virgo': '♍', 'wasylozenge': '⌑', 'wedge': '∧', 'wr': '≀', 'yen': '¥', '{': '{', '|': '‖', '}': '}'}
- oversetfunctions = {'\\bar': '‒', '\\dddot': '<span class="smallsymbol">⋯</span>', '\\overleftarrow': '⟵', '\\overleftrightarrow': '⟷', '\\overrightarrow': '⟶', '\\vec': '<span class="smallsymbol">→</span>', '\\widehat': '^', '\\widetilde': '~'}
- undersetfunctions = {'\\underleftarrow': '⟵', '\\underleftrightarrow': '⟷', '\\underrightarrow': '⟶'}
- endings = {'bracket': '}', 'complex': '\\]', 'endafter': '}', 'endbefore': '\\end{', 'squarebracket': ']'}
- environments = {'align': ['r', 'l'], 'eqnarray': ['r', 'c', 'l'], 'gathered': ['l', 'l'], 'smallmatrix': ['c', 'c']}
- fontfunctions = {'\\boldsymbol': 'b', '\\mathbb': 'span class="blackboard"', '\\mathbb{A}': '𝔸', '\\mathbb{B}': '𝔹', '\\mathbb{C}': 'ℂ', '\\mathbb{D}': '𝔻', '\\mathbb{E}': '𝔼', '\\mathbb{F}': '𝔽', '\\mathbb{G}': '𝔾', '\\mathbb{H}': 'ℍ', '\\mathbb{J}': '𝕁', '\\mathbb{K}': '𝕂', '\\mathbb{L}': '𝕃', '\\mathbb{N}': 'ℕ', '\\mathbb{O}': '𝕆', '\\mathbb{P}': 'ℙ', '\\mathbb{Q}': 'ℚ', '\\mathbb{R}': 'ℝ', '\\mathbb{S}': '𝕊', '\\mathbb{T}': '𝕋', '\\mathbb{W}': '𝕎', '\\mathbb{Z}': 'ℤ', '\\mathbf': 'b', '\\mathcal': 'span class="scriptfont"', '\\mathcal{B}': 'ℬ', '\\mathcal{E}': 'ℰ', '\\mathcal{F}': 'ℱ', '\\mathcal{H}': 'ℋ', '\\mathcal{I}': 'ℐ', '\\mathcal{L}': 'ℒ', '\\mathcal{M}': 'ℳ', '\\mathcal{R}': 'ℛ', '\\mathfrak': 'span class="fraktur"', '\\mathfrak{C}': 'ℭ', '\\mathfrak{F}': '𝔉', '\\mathfrak{H}': 'ℌ', '\\mathfrak{I}': 'ℑ', '\\mathfrak{R}': 'ℜ', '\\mathfrak{Z}': 'ℨ', '\\mathit': 'i', '\\mathring{A}': 'Å', '\\mathring{U}': 'Ů', '\\mathring{a}': 'å', '\\mathring{u}': 'ů', '\\mathring{w}': 'ẘ', '\\mathring{y}': 'ẙ', '\\mathrm': 'span class="mathrm"', '\\mathscr': 'span class="mathscr"', '\\mathscr{B}': 'ℬ', '\\mathscr{E}': 'ℰ', '\\mathscr{F}': 'ℱ', '\\mathscr{H}': 'ℋ', '\\mathscr{I}': 'ℐ', '\\mathscr{L}': 'ℒ', '\\mathscr{M}': 'ℳ', '\\mathscr{R}': 'ℛ', '\\mathsf': 'span class="mathsf"', '\\mathtt': 'span class="mathtt"', '\\operatorname': 'span class="mathrm"'}
- hybridfunctions = {'\\addcontentsline': ['{$p!}{$q!}{$r!}', 'f0{}', 'ignored'], '\\addtocontents': ['{$p!}{$q!}', 'f0{}', 'ignored'], '\\backmatter': ['', 'f0{}', 'ignored'], '\\binom': ['{$1}{$2}', 'f2{(}f0{f1{$1}f1{$2}}f2{)}', 'span class="binom"', 'span class="binomstack"', 'span class="bigdelimiter size2"'], '\\boxed': ['{$1}', 'f0{$1}', 'span class="boxed"'], '\\cfrac': ['[$p!]{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="fullfraction"', 'span class="numerator align-$p"', 'span class="denominator"', 'span class="ignored"'], '\\color': ['{$p!}{$1}', 'f0{$1}', 'span style="color: $p;"'], '\\colorbox': ['{$p!}{$1}', 'f0{$1}', 'span class="colorbox" style="background: $p;"'], '\\dbinom': ['{$1}{$2}', '(f0{f1{f2{$1}}f1{f2{\u2005}}f1{f2{$2}}})', 'span class="binomial"', 'span class="binomrow"', 'span class="binomcell"'], '\\dfrac': ['{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="fullfraction"', 'span class="numerator"', 'span class="denominator"', 'span class="ignored"'], '\\displaystyle': ['{$1}', 'f0{$1}', 'span class="displaystyle"'], '\\fancyfoot': ['[$p!]{$q!}', 'f0{}', 'ignored'], '\\fancyhead': ['[$p!]{$q!}', 'f0{}', 'ignored'], '\\fbox': ['{$1}', 'f0{$1}', 'span class="fbox"'], '\\fboxrule': ['{$p!}', 'f0{}', 'ignored'], '\\fboxsep': ['{$p!}', 'f0{}', 'ignored'], '\\fcolorbox': ['{$p!}{$q!}{$1}', 'f0{$1}', 'span class="boxed" style="border-color: $p; background: $q;"'], '\\frac': ['{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="fraction"', 'span class="numerator"', 'span class="denominator"', 'span class="ignored"'], '\\framebox': ['[$p!][$q!]{$1}', 'f0{$1}', 'span class="framebox align-$q" style="width: $p;"'], '\\frontmatter': ['', 'f0{}', 'ignored'], '\\href': ['[$o]{$u!}{$t!}', 'f0{$t}', 'a href="$u"'], '\\hspace': ['{$p!}', 'f0{ }', 'span class="hspace" style="width: $p;"'], '\\leftroot': ['{$p!}', 'f0{ }', 'span class="leftroot" style="width: $p;px"'], '\\nicefrac': ['{$1}{$2}', 'f0{f1{$1}⁄f2{$2}}', 'span class="fraction"', 'sup class="numerator"', 'sub class="denominator"', 'span class="ignored"'], '\\parbox': ['[$p!]{$w!}{$1}', 'f0{1}', 'div class="Boxed" style="width: $w;"'], '\\raisebox': ['{$p!}{$1}', 'f0{$1.font}', 'span class="raisebox" style="vertical-align: $p;"'], '\\renewenvironment': ['{$1!}{$2!}{$3!}', ''], '\\rule': ['[$v!]{$w!}{$h!}', 'f0/', 'hr class="line" style="width: $w; height: $h;"'], '\\scriptscriptstyle': ['{$1}', 'f0{$1}', 'span class="scriptscriptstyle"'], '\\scriptstyle': ['{$1}', 'f0{$1}', 'span class="scriptstyle"'], '\\sqrt': ['[$0]{$1}', 'f0{f1{$0}f2{√}f4{(}f3{$1}f4{)}}', 'span class="sqrt"', 'sup class="root"', 'span class="radical"', 'span class="root"', 'span class="ignored"'], '\\stackrel': ['{$1}{$2}', 'f0{f1{$1}f2{$2}}', 'span class="stackrel"', 'span class="upstackrel"', 'span class="downstackrel"'], '\\tbinom': ['{$1}{$2}', '(f0{f1{f2{$1}}f1{f2{\u2005}}f1{f2{$2}}})', 'span class="binomial"', 'span class="binomrow"', 'span class="binomcell"'], '\\textcolor': ['{$p!}{$1}', 'f0{$1}', 'span style="color: $p;"'], '\\textstyle': ['{$1}', 'f0{$1}', 'span class="textstyle"'], '\\tfrac': ['{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="textfraction"', 'span class="numerator"', 'span class="denominator"', 'span class="ignored"'], '\\thispagestyle': ['{$p!}', 'f0{}', 'ignored'], '\\unit': ['[$0]{$1}', '$0f0{$1.font}', 'span class="unit"'], '\\unitfrac': ['[$0]{$1}{$2}', '$0f0{f1{$1.font}⁄f2{$2.font}}', 'span class="fraction"', 'sup class="unit"', 'sub class="unit"'], '\\uproot': ['{$p!}', 'f0{ }', 'span class="uproot" style="width: $p;px"'], '\\url': ['{$u!}', 'f0{$u}', 'a href="$u"'], '\\vspace': ['{$p!}', 'f0{ }', 'span class="vspace" style="height: $p;"']}
- hybridsizes = {'\\binom': '$1+$2', '\\cfrac': '$1+$2', '\\dbinom': '$1+$2+1', '\\dfrac': '$1+$2', '\\frac': '$1+$2', '\\tbinom': '$1+$2+1'}
- labelfunctions = {'\\label': 'a name="#"'}
- limitcommands = {'\\bigcap': '<span class="bigoperator">⋂</span>', '\\bigcup': '<span class="bigoperator">⋃</span>', '\\biginterleave': '⫼', '\\bigodot': '<span class="bigoperator">⨀</span>', '\\bigoplus': '<span class="bigoperator">⨁</span>', '\\bigotimes': '<span class="bigoperator">⨂</span>', '\\bigsqcap': '<span class="bigoperator">⨅</span>', '\\bigsqcup': '<span class="bigoperator">⨆</span>', '\\biguplus': '<span class="bigoperator">⨄</span>', '\\bigvee': '<span class="bigoperator">⋁</span>', '\\bigwedge': '<span class="bigoperator">⋀</span>', '\\coprod': '<span class="bigoperator">∐</span>', '\\fint': '<span class="bigoperator integral">⨏</span>', '\\idotsint': '<span class="bigoperator integral">∫⋯∫</span>', '\\iiiint': '<span class="bigoperator integral">⨌</span>', '\\iiint': '<span class="bigoperator integral">∭</span>', '\\iint': '<span class="bigoperator integral">∬</span>', '\\inf': 'inf', '\\int': '<span class="bigoperator integral">∫</span>', '\\intop': '<span class="bigoperator integral">∫</span>', '\\lim': 'lim', '\\max': 'max', '\\min': 'min', '\\oiiint': '<span class="bigoperator integral">∰</span>', '\\oiint': '<span class="bigoperator integral">∯</span>', '\\oint': '<span class="bigoperator integral">∮</span>', '\\ointclockwise': '<span class="bigoperator integral">∲</span>', '\\ointctrclockwise': '<span class="bigoperator integral">∳</span>', '\\ointop': '<span class="bigoperator integral">∮</span>', '\\prod': '<span class="bigoperator">∏</span>', '\\smallint': '<span class="smallsymbol integral">∫</span>', '\\sqint': '<span class="bigoperator integral">⨖</span>', '\\sum': '<span class="bigoperator">∑</span>', '\\sup': 'sup', '\\varointclockwise': '<span class="bigoperator integral">∲</span>', '\\varprod': '<span class="bigoperator">⨉</span>', '\\zcmp': '⨟', '\\zhide': '⧹', '\\zpipe': '⨠', '\\zproject': '⨡'}
- modified = {'\n': '', ' ': '', '$': '', '&': '\t', "'": '’', '+': '\u2009+\u2009', ',': ',\u2009', '-': '\u2009−\u2009', '/': '\u2009⁄\u2009', ':': ' : ', '<': '\u2009<\u2009', '=': '\u2009=\u2009', '>': '\u2009>\u2009', '@': '', '~': '\xa0'}
- onefunctions = {'\\Big': 'span class="bigdelimiter size2"', '\\Bigg': 'span class="bigdelimiter size4"', '\\Biggl': 'span class="bigdelimiter size4"', '\\Biggr': 'span class="bigdelimiter size4"', '\\Bigl': 'span class="bigdelimiter size2"', '\\Bigr': 'span class="bigdelimiter size2"', '\\begin{array}': 'span class="arraydef"', '\\big': 'span class="bigdelimiter size1"', '\\bigg': 'span class="bigdelimiter size3"', '\\biggl': 'span class="bigdelimiter size3"', '\\biggr': 'span class="bigdelimiter size3"', '\\bigl': 'span class="bigdelimiter size1"', '\\bigr': 'span class="bigdelimiter size1"', '\\centering': 'span class="align-center"', '\\ensuremath': 'span class="ensuremath"', '\\hphantom': 'span class="phantom"', '\\noindent': 'span class="noindent"', '\\overbrace': 'span class="overbrace"', '\\overline': 'span class="overline"', '\\phantom': 'span class="phantom"', '\\underbrace': 'span class="underbrace"', '\\underline': '', '\\vphantom': 'span class="phantom"'}
- spacedcommands = {'\\Bot': '⫫', '\\Bumpeq': '≎', '\\Coloneqq': '⩴', '\\Doteq': '≑', '\\Downarrow': '⇓', '\\Leftarrow': '⇐', '\\Leftrightarrow': '⇔', '\\Lleftarrow': '⇚', '\\Longleftarrow': '⟸', '\\Longleftrightarrow': '⟺', '\\Longmapsfrom': '⟽', '\\Longmapsto': '⟾', '\\Longrightarrow': '⟹', '\\Lsh': '↰', '\\Mapsfrom': '⤆', '\\Mapsto': '⤇', '\\Nearrow': '⇗', '\\Nwarrow': '⇖', '\\Perp': '⫫', '\\Rightarrow': '⇒', '\\Rrightarrow': '⇛', '\\Rsh': '↱', '\\Searrow': '⇘', '\\Subset': '⋐', '\\Supset': '⋑', '\\Swarrow': '⇙', '\\Top': '⫪', '\\Uparrow': '⇑', '\\Updownarrow': '⇕', '\\VDash': '⊫', '\\Vdash': '⊩', '\\Vvdash': '⊪', '\\apprge': '≳', '\\apprle': '≲', '\\approx': '≈', '\\approxeq': '≊', '\\asymp': '≍', '\\backepsilon': '∍', '\\backsim': '∽', '\\backsimeq': '⋍', '\\barin': '⋶', '\\barleftharpoon': '⥫', '\\barrightharpoon': '⥭', '\\because': '∵', '\\between': '≬', '\\blacktriangleleft': '◂', '\\blacktriangleright': '▸', '\\bowtie': '⋈', '\\bumpeq': '≏', '\\circeq': '≗', '\\circlearrowleft': '↺', '\\circlearrowright': '↻', '\\coloneq': '≔', '\\coloneqq': '≔', '\\cong': '≅', '\\corresponds': '≙', '\\curlyeqprec': '⋞', '\\curlyeqsucc': '⋟', '\\curvearrowleft': '↶', '\\curvearrowright': '↷', '\\dasharrow': '⇢', '\\dashleftarrow': '⇠', '\\dashrightarrow': '⇢', '\\dashv': '⊣', '\\dlsh': '↲', '\\doteq': '≐', '\\doteqdot': '≑', '\\downarrow': '↓', '\\downdownarrows': '⇊', '\\downdownharpoons': '⥥', '\\downharpoonleft': '⇃', '\\downharpoonright': '⇂', '\\downuparrows': '⇵', '\\downupharpoons': '⥯', '\\drsh': '↳', '\\eqcirc': '≖', '\\eqcolon': '≕', '\\eqqcolon': '≕', '\\eqsim': '≂', '\\eqslantgtr': '⪖', '\\eqslantless': '⪕', '\\equiv': '≡', '\\fallingdotseq': '≒', '\\frown': '⌢', '\\ge': '≥', '\\geq': '≥', '\\geqq': '≧', '\\geqslant': '⩾', '\\gets': '←', '\\gg': '≫', '\\ggcurly': '⪼', '\\ggg': '⋙', '\\gggtr': '⋙', '\\gnapprox': '⪊', '\\gneq': '⪈', '\\gneqq': '≩', '\\gnsim': '⋧', '\\gtrapprox': '⪆', '\\gtreqless': '⋛', '\\gtreqqless': '⪌', '\\gtrless': '≷', '\\gtrsim': '≳', '\\hash': '⋕', '\\hookleftarrow': '↩', '\\hookrightarrow': '↪', '\\iddots': '⋰', '\\impliedby': '⟸', '\\implies': '⟹', '\\in': '∈', '\\le': '≤', '\\leadsto': '⤳', '\\leftarrow': '←', '\\leftarrowtail': '↢', '\\leftarrowtriangle': '⇽', '\\leftbarharpoon': '⥪', '\\leftharpoondown': '↽', '\\leftharpoonup': '↼', '\\leftleftarrows': '⇇', '\\leftleftharpoons': '⥢', '\\leftrightarrow': '↔', '\\leftrightarrows': '⇆', '\\leftrightarrowtriangle': '⇿', '\\leftrightharpoon': '⥊', '\\leftrightharpoons': '⇋', '\\leftrightsquigarrow': '↭', '\\leftslice': '⪦', '\\leftsquigarrow': '⇜', '\\leftturn': '↺', '\\leq': '≤', '\\leqq': '≦', '\\leqslant': '⩽', '\\lessapprox': '⪅', '\\lesseqgtr': '⋚', '\\lesseqqgtr': '⪋', '\\lessgtr': '≶', '\\lesssim': '≲', '\\lhd': '⊲', '\\lightning': '↯', '\\ll': '≪', '\\llcurly': '⪻', '\\lll': '⋘', '\\llless': '⋘', '\\lnapprox': '⪉', '\\lneq': '⪇', '\\lneqq': '≨', '\\lnsim': '⋦', '\\longleftarrow': '⟵', '\\longleftrightarrow': '⟷', '\\longmapsfrom': '⟻', '\\longmapsto': '⟼', '\\longrightarrow': '⟶', '\\looparrowleft': '↫', '\\looparrowright': '↬', '\\lrtimes': '⋈', '\\mapsfrom': '↤', '\\mapsto': '↦', '\\mid': '∣', '\\models': '⊧', '\\multimap': '⊸', '\\multimapboth': '⧟', '\\multimapdotbothA': '⊶', '\\multimapdotbothB': '⊷', '\\multimapinv': '⟜', '\\nLeftarrow': '⇍', '\\nLeftrightarrow': '⇎', '\\nRightarrow': '⇏', '\\nVDash': '⊯', '\\nVdash': '⊮', '\\ncong': '≇', '\\ne': '≠', '\\nearrow': '↗', '\\neq': '≠', '\\ngeq': '≱', '\\ngeqq': '≧̸', '\\ngeqslant': '⩾̸', '\\ngtr': '≯', '\\ngtrless': '≹', '\\ni': '∋', '\\nleftarrow': '↚', '\\nleftrightarrow': '↮', '\\nleq': '≰', '\\nleqq': '≦̸', '\\nleqslant': '⩽̸', '\\nless': '≮', '\\nlessgtr': '≸', '\\nmid': '∤', '\\notasymp': '≭', '\\notin': '∉', '\\notni': '∌', '\\notowner': '∌', '\\notslash': '⌿', '\\nparallel': '∦', '\\nprec': '⊀', '\\npreceq': '⋠', '\\nrightarrow': '↛', '\\nshortmid': '<span class="smallsymbol">∤</span>', '\\nshortparallel': '<span class="smallsymbol">∦</span>', '\\nsim': '≁', '\\nsimeq': '≄', '\\nsqsubset': '≶⊏', '\\nsubseteq': '⊈', '\\nsubseteqq': '⫅̸', '\\nsucc': '⊁', '\\nsucceq': '⋡', '\\nsupseteq': '⊉', '\\nsupseteqq': '⫆̸', '\\ntriangleleft': '⋪', '\\ntrianglelefteq': '⋬', '\\ntriangleright': '⋫', '\\ntrianglerighteq': '⋭', '\\nvDash': '⊭', '\\nvdash': '⊬', '\\nwarrow': '↖', '\\owns': '∋', '\\parallel': '∥', '\\perp': '⟂', '\\pitchfork': '⋔', '\\prec': '≺', '\\precapprox': '⪷', '\\preccurlyeq': '≼', '\\preceq': '⪯', '\\preceqq': '⪳', '\\precnapprox': '⪹', '\\precneqq': '⪵', '\\precnsim': '⋨', '\\precsim': '≾', '\\propto': '∝', '\\restriction': '↾', '\\rhd': '⊳', '\\rightarrow': '→', '\\rightarrowtail': '↣', '\\rightarrowtriangle': '⇾', '\\rightbarharpoon': '⥬', '\\rightharpoondown': '⇁', '\\rightharpoonup': '⇀', '\\rightleftarrows': '⇄', '\\rightleftharpoon': '⥋', '\\rightleftharpoons': '⇌', '\\rightrightarrows': '⇉', '\\rightrightharpoons': '⥤', '\\rightslice': '⪧', '\\rightsquigarrow': '⇝', '\\rightturn': '↻', '\\risingdotseq': '≓', '\\searrow': '↘', '\\shortmid': '<span class="smallsymbol">∣</span>', '\\shortparallel': '<span class="smallsymbol">∥</span>', '\\sim': '∼', '\\simeq': '≃', '\\smallfrown': '<span class="smallsymbol">⌢</span>', '\\smallsmile': '<span class="smallsymbol">⌣</span>', '\\smile': '⌣', '\\sqsubset': '⊏', '\\sqsubseteq': '⊑', '\\sqsupset': '⊐', '\\sqsupseteq': '⊒', '\\strictfi': '⥼', '\\strictif': '⥽', '\\subset': '⊂', '\\subseteq': '⊆', '\\subseteqq': '⫅', '\\subsetneq': '⊊', '\\subsetneqq': '⫋', '\\succ': '≻', '\\succapprox': '⪸', '\\succcurlyeq': '≽', '\\succeq': '⪰', '\\succeqq': '⪴', '\\succnapprox': '⪺', '\\succneqq': '⪶', '\\succnsim': '⋩', '\\succsim': '≿', '\\supset': '⊃', '\\supseteq': '⊇', '\\supseteqq': '⫆', '\\supsetneq': '⊋', '\\supsetneqq': '⫌', '\\swarrow': '↙', '\\therefore': '∴', '\\thickapprox': '<span class="boldsymbol">≈</span>', '\\thicksim': '<span class="boldsymbol">∼</span>', '\\to': '→', '\\trianglelefteq': '⊴', '\\triangleq': '≜', '\\trianglerighteq': '⊵', '\\twoheadleftarrow': '↞', '\\twoheadrightarrow': '↠', '\\uparrow': '↑', '\\updownarrow': '↕', '\\updownarrows': '⇅', '\\updownharpoons': '⥮', '\\upharpoonleft': '↿', '\\upharpoonright': '↾', '\\upuparrows': '⇈', '\\upupharpoons': '⥣', '\\vDash': '⊨', '\\varpropto': '<span class="mathsf">∝</span>', '\\vartriangle': '▵', '\\vartriangleleft': '⊲', '\\vartriangleright': '⊳', '\\vdash': '⊢', '\\wasytherefore': '∴'}
- starts = {'beginafter': '}', 'beginbefore': '\\begin{', 'bracket': '{', 'command': '\\', 'comment': '%', 'complex': '\\[', 'simple': '$', 'squarebracket': '[', 'unnumbered': '*'}
- symbolfunctions = {'^': 'sup', '_': 'sub'}
- textfunctions = {'\\mbox': 'span class="mbox"', '\\text': 'span class="text"', '\\textbf': 'span class="textbf"', '\\textit': 'span class="textit"', '\\textnormal': 'span class="textnormal"', '\\textrm': 'span class="textrm"', '\\textsc': 'span class="textsc"', '\\textsf': 'span class="textsf"', '\\textsl': 'span class="textsl"', '\\texttt': 'span class="texttt"', '\\textup': 'span class="normal"'}
- unmodified = {'characters': ['.', '*', '€', '(', ')', '[', ']', '·', '!', ';', '|', '§', '"', '?']}
- key = 'wasytherefore'
- value = '∴'
- class Options[source]
Bases:
objectA set of runtime options
- location = None
- debug = False
- quiet = False
- version = False
- help = False
- simplemath = False
- showlines = True
- branches = {}
- class ContainerExtractor(config)[source]
Bases:
objectA class to extract certain containers.
The config parameter is a map containing three lists: allowed, copied and extracted. Each of the three is a list of class names for containers. Allowed containers are included as is into the result. Cloned containers are cloned and placed into the result. Extracted containers are looked into. All other containers are silently ignored.
- class TextParser(container)[source]
Bases:
ParserA parser for a command and a bit of text
- stack = []
- class BoundedParser[source]
Bases:
ExcludingParserA parser bound by a final line
- class EmptyOutput[source]
Bases:
ContainerOutput
- class FixedOutput[source]
Bases:
ContainerOutputFixed output
- class ContentsOutput[source]
Bases:
ContainerOutputOutputs the contents converted to HTML
- class TaggedOutput[source]
Bases:
ContentsOutputOutputs an HTML tag surrounding the contents.
- tag = None
- breaklines = False
- empty = False
- class FilteredOutput[source]
Bases:
ContentsOutputReturns the output in the contents, but filtered:
- class StringOutput[source]
Bases:
ContainerOutputReturns a bare string as output
- class Globable[source]
Bases:
objectA bit of text which can be globbed (lumped together in bits). Methods current(), skipcurrent(), checkfor() and isout() have to be implemented by subclasses.
- leavepending = False
- class Position[source]
Bases:
GlobableA position in a text to parse. Including those in Globable, functions to implement by subclasses are: skip(), identifier(), extract(), isout() and current().
- class Container[source]
Bases:
objectA container for text and objects in a lyx file
- partkey = None
- parent = None
- begin = None
- class Constant(text)[source]
Bases:
StringContainerA constant string
- class DocumentParameters[source]
Bases:
objectGlobal parameters for the document.
- displaymode = False
- class TaggedBit[source]
Bases:
FormulaBitA tagged string in a formula
- class RawText[source]
Bases:
FormulaBitA bit of text inside a formula
- class FormulaSymbol[source]
Bases:
FormulaBitA symbol inside a formula
- modified = {'\n': '', ' ': '', '$': '', '&': '\t', "'": '’', '+': '\u2009+\u2009', ',': ',\u2009', '-': '\u2009−\u2009', '/': '\u2009⁄\u2009', ':': ' : ', '<': '\u2009<\u2009', '=': '\u2009=\u2009', '>': '\u2009>\u2009', '@': '', '~': '\xa0'}
- unmodified = ['.', '*', '€', '(', ')', '[', ']', '·', '!', ';', '|', '§', '"', '?']
- class FormulaNumber[source]
Bases:
FormulaBitA string of digits in a formula
- class Comment[source]
Bases:
FormulaBitA LaTeX comment: % to the end of the line.
- start = '%'
- class WhiteSpace[source]
Bases:
FormulaBitSome white space inside a formula.
- class Bracket[source]
Bases:
FormulaBitA {} bracket inside a formula
- start = '{'
- ending = '}'
- class SquareBracket[source]
Bases:
BracketA [] bracket inside a formula
- start = '['
- ending = ']'
- class MathsProcessor[source]
Bases:
objectA processor for a maths construction inside the FormulaProcessor.
- class FormulaProcessor[source]
Bases:
objectA processor specifically for formulas.
- processors = [<docutils.utils.math.math2html.LimitsProcessor object>, <docutils.utils.math.math2html.BracketProcessor object>]
- class WholeFormula[source]
Bases:
FormulaBitParse a whole formula
- class FormulaFactory[source]
Bases:
objectConstruct bits of formula
- types = [<class 'docutils.utils.math.math2html.FormulaSymbol'>, <class 'docutils.utils.math.math2html.RawText'>, <class 'docutils.utils.math.math2html.FormulaNumber'>, <class 'docutils.utils.math.math2html.Bracket'>, <class 'docutils.utils.math.math2html.Comment'>, <class 'docutils.utils.math.math2html.WhiteSpace'>, <class 'docutils.utils.math.math2html.FormulaCommand'>, <class 'docutils.utils.math.math2html.SymbolFunction'>]
- skippedtypes = [<class 'docutils.utils.math.math2html.Comment'>, <class 'docutils.utils.math.math2html.WhiteSpace'>]
- defining = False
- class FormulaCommand[source]
Bases:
FormulaBitA LaTeX command inside a formula
- types = [<class 'docutils.utils.math.math2html.AlphaCommand'>, <class 'docutils.utils.math.math2html.EmptyCommand'>, <class 'docutils.utils.math.math2html.OneParamFunction'>, <class 'docutils.utils.math.math2html.FontFunction'>, <class 'docutils.utils.math.math2html.TextFunction'>, <class 'docutils.utils.math.math2html.SpacedCommand'>, <class 'docutils.utils.math.math2html.BeginCommand'>, <class 'docutils.utils.math.math2html.OversetFunction'>, <class 'docutils.utils.math.math2html.UndersetFunction'>, <class 'docutils.utils.math.math2html.CombiningFunction'>, <class 'docutils.utils.math.math2html.LimitCommand'>, <class 'docutils.utils.math.math2html.BracketCommand'>, <class 'docutils.utils.math.math2html.HybridFunction'>]
- start = '\\'
- commandmap = None
- class CommandBit[source]
Bases:
FormulaCommandA formula bit that includes a command
- class EmptyCommand[source]
Bases:
CommandBitAn empty command (without parameters)
- commandmap = {'\\\t': ' ', '\\\n': ' ', '\\ ': ' ', '\\#': '#', '\\$': '$', '\\%': '%', '\\&': '&', '\\,': '\u2006', '\\:': '\u205f', '\\;': '<span class="thickspace"> </span>', '\\AC': '∿', '\\APLcomment': '⍝', '\\APLdownarrowbox': '⍗', '\\APLinput': '⍞', '\\APLinv': '⌹', '\\APLleftarrowbox': '⍇', '\\APLlog': '⍟', '\\APLrightarrowbox': '⍈', '\\APLuparrowbox': '⍐', '\\Aries': '♈', '\\Arrowvert': '‖', '\\Box': '⬜', '\\CIRCLE': '●', '\\Cap': '⋒', '\\CheckedBox': '☑', '\\Circle': '○', '\\Cup': '⋓', '\\Diamond': '◇', '\\Diamondblack': '◆', '\\Diamonddot': '⟐', '\\Finv': 'Ⅎ', '\\Game': '⅁', '\\Gemini': '♊', '\\Jupiter': '♃', '\\LEFTCIRCLE': '◖', '\\LEFTcircle': '◐', '\\LHD': '◀', '\\Lbag': '⟅', '\\Leo': '♌', '\\Libra': '♎', '\\Mars': '♂', '\\Mercury': '☿', '\\Neptune': '♆', '\\P': '¶', '\\Pluto': '♇', '\\Pr': 'Pr', '\\RHD': '▶', '\\RIGHTCIRCLE': '◗', '\\RIGHTcircle': '◑', '\\Rbag': '⟆', '\\S': '§', '\\Saturn': '♄', '\\Scorpio': '♏', '\\Square': '☐', '\\Sun': '☉', '\\Taurus': '♉', '\\Uranus': '♅', '\\Venus': '♀', '\\Vert': '‖', '\\XBox': '☒', '\\Yup': '⅄', '\\\\': '<br/>', '\\_': '_', '\\amalg': '⨿', '\\angle': '∠', '\\aquarius': '♒', '\\arccos': 'arccos', '\\arcsin': 'arcsin', '\\arctan': 'arctan', '\\arg': 'arg', '\\aries': '♈', '\\arrowvert': '⏐', '\\ast': '∗', '\\backprime': '‵', '\\backslash': '\\', '\\barwedge': '⊼', '\\bigcirc': '◯', '\\bigstar': '★', '\\bigtriangledown': '▽', '\\bigtriangleup': '△', '\\bindnasrepma': '⅋', '\\blacklozenge': '⧫', '\\blacksmiley': '☻', '\\blacksquare': '◼', '\\blacktriangle': '▴', '\\blacktriangledown': '▾', '\\blacktriangleup': '▴', '\\bot': '⊥', '\\boxast': '⧆', '\\boxbar': '◫', '\\boxbox': '⧈', '\\boxbslash': '⧅', '\\boxcircle': '⧇', '\\boxdot': '⊡', '\\boxminus': '⊟', '\\boxplus': '⊞', '\\boxslash': '⧄', '\\boxtimes': '⊠', '\\boy': '♂', '\\bracevert': '⎪', '\\bullet': '•', '\\cancer': '♋', '\\cap': '∩', '\\capricornus': '♑', '\\cdot': '⋅', '\\cdots': '⋯', '\\cent': '¢', '\\centerdot': '⬝', '\\checkmark': '✓', '\\circ': '∘', '\\circledR': 'Ⓡ', '\\circledS': 'Ⓢ', '\\circledast': '⊛', '\\circledbslash': '⦸', '\\circledcirc': '⊚', '\\circleddash': '⊝', '\\circledgtr': '⧁', '\\circledless': '⧀', '\\clubsuit': '♣', '\\colon': ': ', '\\complement': '∁', '\\copyright': '©', '\\cos': 'cos', '\\cosh': 'cosh', '\\cot': 'cot', '\\coth': 'coth', '\\csc': 'csc', '\\cup': '∪', '\\curlyvee': '⋎', '\\curlywedge': '⋏', '\\dagger': '†', '\\ddagger': '‡', '\\ddots': '⋱', '\\deg': 'deg', '\\det': 'det', '\\diagdown': '⟍', '\\diagup': '⟋', '\\diameter': '⌀', '\\diamond': '⋄', '\\diamondsuit': '♢', '\\dim': 'dim', '\\div': '÷', '\\divideontimes': '⋇', '\\dotminus': '∸', '\\dotplus': '∔', '\\dots': '…', '\\dotsb': '⋯', '\\dotsc': '…', '\\dotsi': '⋯', '\\dotsm': '⋯', '\\dotso': '…', '\\doublebarwedge': '⩞', '\\earth': '♁', '\\emptyset': '∅', '\\euro': '€', '\\exists': '∃', '\\exp': 'exp', '\\female': '♀', '\\flat': '♭', '\\forall': '∀', '\\fourth': '⁗', '\\frownie': '☹', '\\gcd': 'gcd', '\\gemini': '♊', '\\girl': '♀', '\\gtrdot': '⋗', '\\guillemotleft': '«', '\\guillemotright': '»', '\\hbar': '<i>ħ</i>', '\\heartsuit': '♡', '\\hom': 'hom', '\\infty': '∞', '\\injlim': 'inj\u202flim', '\\intercal': '⊺', '\\interleave': '⫴', '\\invamp': '⅋', '\\invdiameter': '⍉', '\\invneg': '⌐', '\\jupiter': '♃', '\\ker': 'ker', '\\lVert': '‖', '\\land': '∧', '\\langle': '⟨', '\\lbag': '⟅', '\\lbrace': '{', '\\lbrack': '[', '\\lceil': '⌈', '\\ldots': '…', '\\leftmoon': '☾', '\\leftthreetimes': '⋋', '\\leo': '♌', '\\lessdot': '⋖', '\\lfloor': '⌊', '\\lg': 'lg', '\\lgroup': '⟮', '\\libra': '♎', '\\liminf': 'lim\u202finf', '\\limsup': 'lim\u202fsup', '\\llbracket': '⟦', '\\llcorner': '⌞', '\\llparenthesis': '⦇', '\\lmoustache': '⎰', '\\ln': 'ln', '\\lnot': '¬', '\\log': 'log', '\\lor': '∨', '\\lozenge': '◊', '\\lrcorner': '⌟', '\\ltimes': '⋉', '\\lvert': '|', '\\male': '♂', '\\maltese': '✠', '\\mathcent': '¢', '\\mathdollar': '$', '\\mathsterling': '£', '\\measuredangle': '∡', '\\medbullet': '⚫', '\\medcirc': '⚪', '\\medspace': '\u205f', '\\mercury': '☿', '\\mho': '℧', '\\mp': '∓', '\\nabla': '∇', '\\natural': '♮', '\\neg': '¬', '\\neptune': '♆', '\\newline': '<br/>', '\\nexists': '∄', '\\nobreakspace': '\xa0', '\\nolimits': '', '\\nonumber': '', '\\notbackslash': '⍀', '\\odot': '⊙', '\\ominus': '⊖', '\\oplus': '⊕', '\\oslash': '⊘', '\\otimes': '⊗', '\\partial': '∂', '\\pisces': '♓', '\\pluto': '♇', '\\pm': '±', '\\pounds': '£', '\\prime': '′', '\\projlim': 'proj\u202flim', '\\qquad': '\u2001\u2001', '\\quad': '\u2001', '\\quarternote': '♩', '\\rVert': '‖', '\\rangle': '⟩', '\\rbag': '⟆', '\\rbrace': '}', '\\rbrack': ']', '\\rceil': '⌉', '\\rfloor': '⌋', '\\rgroup': '⟯', '\\rightmoon': '☽', '\\rightthreetimes': '⋌', '\\rmoustache': '⎱', '\\rrbracket': '⟧', '\\rrparenthesis': '⦈', '\\rtimes': '⋊', '\\rvert': '|', '\\sagittarius': '♐', '\\saturn': '♄', '\\scorpio': '♏', '\\sec': 'sec', '\\second': '″', '\\setminus': '⧵', '\\sharp': '♯', '\\sin': 'sin', '\\sinh': 'sinh', '\\slash': '∕', '\\smallsetminus': '∖', '\\smalltriangledown': '▿', '\\smalltriangleleft': '◃', '\\smalltriangleright': '▹', '\\smiley': '☺', '\\spadesuit': '♠', '\\spddot': '¨', '\\sphat': '^', '\\sphericalangle': '∢', '\\sptilde': '~', '\\sqcap': '⊓', '\\sqcup': '⊔', '\\square': '◻', '\\sslash': '⫽', '\\star': '⋆', '\\sun': '☼', '\\surd': '√', '\\talloblong': '⫾', '\\tan': 'tan', '\\tanh': 'tanh', '\\taurus': '♉', '\\textasciicircum': '^', '\\textasciitilde': '~', '\\textbackslash': '\\', '\\textcopyright': '©', '\\textdegree': '°', '\\textellipsis': '…', '\\textemdash': '—', '\\textendash': '—', '\\texteuro': '€', '\\textgreater': '>', '\\textless': '<', '\\textordfeminine': 'ª', '\\textordmasculine': 'º', '\\textquotedblleft': '“', '\\textquotedblright': '”', '\\textquoteright': '’', '\\textregistered': '®', '\\textrightarrow': '→', '\\textsection': '§', '\\texttrademark': '™', '\\texttwosuperior': '²', '\\textvisiblespace': ' ', '\\thickspace': '<span class="thickspace"> </span>', '\\thinspace': '\u2006', '\\third': '‴', '\\times': '×', '\\top': '⊤', '\\triangle': '△', '\\triangledown': '▽', '\\triangleleft': '◃', '\\triangleright': '▹', '\\twonotes': '♫', '\\ulcorner': '⌜', '\\uplus': '⊎', '\\uranus': '♅', '\\urcorner': '⌝', '\\varEarth': '♁', '\\varclubsuit': '♧', '\\vardiamondsuit': '♦', '\\varheartsuit': '♥', '\\varnothing': '⌀', '\\varspadesuit': '♤', '\\vdots': '⋮', '\\vee': '∨', '\\veebar': '⊻', '\\vert': '|', '\\virgo': '♍', '\\wasylozenge': '⌑', '\\wedge': '∧', '\\wr': '≀', '\\yen': '¥', '\\{': '{', '\\|': '‖', '\\}': '}'}
- class SpacedCommand[source]
Bases:
CommandBitAn empty command which should have math spacing in formulas.
- commandmap = {'\\Bot': '⫫', '\\Bumpeq': '≎', '\\Coloneqq': '⩴', '\\Doteq': '≑', '\\Downarrow': '⇓', '\\Leftarrow': '⇐', '\\Leftrightarrow': '⇔', '\\Lleftarrow': '⇚', '\\Longleftarrow': '⟸', '\\Longleftrightarrow': '⟺', '\\Longmapsfrom': '⟽', '\\Longmapsto': '⟾', '\\Longrightarrow': '⟹', '\\Lsh': '↰', '\\Mapsfrom': '⤆', '\\Mapsto': '⤇', '\\Nearrow': '⇗', '\\Nwarrow': '⇖', '\\Perp': '⫫', '\\Rightarrow': '⇒', '\\Rrightarrow': '⇛', '\\Rsh': '↱', '\\Searrow': '⇘', '\\Subset': '⋐', '\\Supset': '⋑', '\\Swarrow': '⇙', '\\Top': '⫪', '\\Uparrow': '⇑', '\\Updownarrow': '⇕', '\\VDash': '⊫', '\\Vdash': '⊩', '\\Vvdash': '⊪', '\\apprge': '≳', '\\apprle': '≲', '\\approx': '≈', '\\approxeq': '≊', '\\asymp': '≍', '\\backepsilon': '∍', '\\backsim': '∽', '\\backsimeq': '⋍', '\\barin': '⋶', '\\barleftharpoon': '⥫', '\\barrightharpoon': '⥭', '\\because': '∵', '\\between': '≬', '\\blacktriangleleft': '◂', '\\blacktriangleright': '▸', '\\bowtie': '⋈', '\\bumpeq': '≏', '\\circeq': '≗', '\\circlearrowleft': '↺', '\\circlearrowright': '↻', '\\coloneq': '≔', '\\coloneqq': '≔', '\\cong': '≅', '\\corresponds': '≙', '\\curlyeqprec': '⋞', '\\curlyeqsucc': '⋟', '\\curvearrowleft': '↶', '\\curvearrowright': '↷', '\\dasharrow': '⇢', '\\dashleftarrow': '⇠', '\\dashrightarrow': '⇢', '\\dashv': '⊣', '\\dlsh': '↲', '\\doteq': '≐', '\\doteqdot': '≑', '\\downarrow': '↓', '\\downdownarrows': '⇊', '\\downdownharpoons': '⥥', '\\downharpoonleft': '⇃', '\\downharpoonright': '⇂', '\\downuparrows': '⇵', '\\downupharpoons': '⥯', '\\drsh': '↳', '\\eqcirc': '≖', '\\eqcolon': '≕', '\\eqqcolon': '≕', '\\eqsim': '≂', '\\eqslantgtr': '⪖', '\\eqslantless': '⪕', '\\equiv': '≡', '\\fallingdotseq': '≒', '\\frown': '⌢', '\\ge': '≥', '\\geq': '≥', '\\geqq': '≧', '\\geqslant': '⩾', '\\gets': '←', '\\gg': '≫', '\\ggcurly': '⪼', '\\ggg': '⋙', '\\gggtr': '⋙', '\\gnapprox': '⪊', '\\gneq': '⪈', '\\gneqq': '≩', '\\gnsim': '⋧', '\\gtrapprox': '⪆', '\\gtreqless': '⋛', '\\gtreqqless': '⪌', '\\gtrless': '≷', '\\gtrsim': '≳', '\\hash': '⋕', '\\hookleftarrow': '↩', '\\hookrightarrow': '↪', '\\iddots': '⋰', '\\impliedby': '⟸', '\\implies': '⟹', '\\in': '∈', '\\le': '≤', '\\leadsto': '⤳', '\\leftarrow': '←', '\\leftarrowtail': '↢', '\\leftarrowtriangle': '⇽', '\\leftbarharpoon': '⥪', '\\leftharpoondown': '↽', '\\leftharpoonup': '↼', '\\leftleftarrows': '⇇', '\\leftleftharpoons': '⥢', '\\leftrightarrow': '↔', '\\leftrightarrows': '⇆', '\\leftrightarrowtriangle': '⇿', '\\leftrightharpoon': '⥊', '\\leftrightharpoons': '⇋', '\\leftrightsquigarrow': '↭', '\\leftslice': '⪦', '\\leftsquigarrow': '⇜', '\\leftturn': '↺', '\\leq': '≤', '\\leqq': '≦', '\\leqslant': '⩽', '\\lessapprox': '⪅', '\\lesseqgtr': '⋚', '\\lesseqqgtr': '⪋', '\\lessgtr': '≶', '\\lesssim': '≲', '\\lhd': '⊲', '\\lightning': '↯', '\\ll': '≪', '\\llcurly': '⪻', '\\lll': '⋘', '\\llless': '⋘', '\\lnapprox': '⪉', '\\lneq': '⪇', '\\lneqq': '≨', '\\lnsim': '⋦', '\\longleftarrow': '⟵', '\\longleftrightarrow': '⟷', '\\longmapsfrom': '⟻', '\\longmapsto': '⟼', '\\longrightarrow': '⟶', '\\looparrowleft': '↫', '\\looparrowright': '↬', '\\lrtimes': '⋈', '\\mapsfrom': '↤', '\\mapsto': '↦', '\\mid': '∣', '\\models': '⊧', '\\multimap': '⊸', '\\multimapboth': '⧟', '\\multimapdotbothA': '⊶', '\\multimapdotbothB': '⊷', '\\multimapinv': '⟜', '\\nLeftarrow': '⇍', '\\nLeftrightarrow': '⇎', '\\nRightarrow': '⇏', '\\nVDash': '⊯', '\\nVdash': '⊮', '\\ncong': '≇', '\\ne': '≠', '\\nearrow': '↗', '\\neq': '≠', '\\ngeq': '≱', '\\ngeqq': '≧̸', '\\ngeqslant': '⩾̸', '\\ngtr': '≯', '\\ngtrless': '≹', '\\ni': '∋', '\\nleftarrow': '↚', '\\nleftrightarrow': '↮', '\\nleq': '≰', '\\nleqq': '≦̸', '\\nleqslant': '⩽̸', '\\nless': '≮', '\\nlessgtr': '≸', '\\nmid': '∤', '\\notasymp': '≭', '\\notin': '∉', '\\notni': '∌', '\\notowner': '∌', '\\notslash': '⌿', '\\nparallel': '∦', '\\nprec': '⊀', '\\npreceq': '⋠', '\\nrightarrow': '↛', '\\nshortmid': '<span class="smallsymbol">∤</span>', '\\nshortparallel': '<span class="smallsymbol">∦</span>', '\\nsim': '≁', '\\nsimeq': '≄', '\\nsqsubset': '≶⊏', '\\nsubseteq': '⊈', '\\nsubseteqq': '⫅̸', '\\nsucc': '⊁', '\\nsucceq': '⋡', '\\nsupseteq': '⊉', '\\nsupseteqq': '⫆̸', '\\ntriangleleft': '⋪', '\\ntrianglelefteq': '⋬', '\\ntriangleright': '⋫', '\\ntrianglerighteq': '⋭', '\\nvDash': '⊭', '\\nvdash': '⊬', '\\nwarrow': '↖', '\\owns': '∋', '\\parallel': '∥', '\\perp': '⟂', '\\pitchfork': '⋔', '\\prec': '≺', '\\precapprox': '⪷', '\\preccurlyeq': '≼', '\\preceq': '⪯', '\\preceqq': '⪳', '\\precnapprox': '⪹', '\\precneqq': '⪵', '\\precnsim': '⋨', '\\precsim': '≾', '\\propto': '∝', '\\restriction': '↾', '\\rhd': '⊳', '\\rightarrow': '→', '\\rightarrowtail': '↣', '\\rightarrowtriangle': '⇾', '\\rightbarharpoon': '⥬', '\\rightharpoondown': '⇁', '\\rightharpoonup': '⇀', '\\rightleftarrows': '⇄', '\\rightleftharpoon': '⥋', '\\rightleftharpoons': '⇌', '\\rightrightarrows': '⇉', '\\rightrightharpoons': '⥤', '\\rightslice': '⪧', '\\rightsquigarrow': '⇝', '\\rightturn': '↻', '\\risingdotseq': '≓', '\\searrow': '↘', '\\shortmid': '<span class="smallsymbol">∣</span>', '\\shortparallel': '<span class="smallsymbol">∥</span>', '\\sim': '∼', '\\simeq': '≃', '\\smallfrown': '<span class="smallsymbol">⌢</span>', '\\smallsmile': '<span class="smallsymbol">⌣</span>', '\\smile': '⌣', '\\sqsubset': '⊏', '\\sqsubseteq': '⊑', '\\sqsupset': '⊐', '\\sqsupseteq': '⊒', '\\strictfi': '⥼', '\\strictif': '⥽', '\\subset': '⊂', '\\subseteq': '⊆', '\\subseteqq': '⫅', '\\subsetneq': '⊊', '\\subsetneqq': '⫋', '\\succ': '≻', '\\succapprox': '⪸', '\\succcurlyeq': '≽', '\\succeq': '⪰', '\\succeqq': '⪴', '\\succnapprox': '⪺', '\\succneqq': '⪶', '\\succnsim': '⋩', '\\succsim': '≿', '\\supset': '⊃', '\\supseteq': '⊇', '\\supseteqq': '⫆', '\\supsetneq': '⊋', '\\supsetneqq': '⫌', '\\swarrow': '↙', '\\therefore': '∴', '\\thickapprox': '<span class="boldsymbol">≈</span>', '\\thicksim': '<span class="boldsymbol">∼</span>', '\\to': '→', '\\trianglelefteq': '⊴', '\\triangleq': '≜', '\\trianglerighteq': '⊵', '\\twoheadleftarrow': '↞', '\\twoheadrightarrow': '↠', '\\uparrow': '↑', '\\updownarrow': '↕', '\\updownarrows': '⇅', '\\updownharpoons': '⥮', '\\upharpoonleft': '↿', '\\upharpoonright': '↾', '\\upuparrows': '⇈', '\\upupharpoons': '⥣', '\\vDash': '⊨', '\\varpropto': '<span class="mathsf">∝</span>', '\\vartriangle': '▵', '\\vartriangleleft': '⊲', '\\vartriangleright': '⊳', '\\vdash': '⊢', '\\wasytherefore': '∴'}
- class AlphaCommand[source]
Bases:
EmptyCommandA command without parameters whose result is alphabetical.
- commandmap = {'\\AA': 'Å', '\\AE': 'Æ', '\\AmS': '<span class="textsc">AmS</span>', '\\Bbbk': '𝕜', '\\DH': 'Ð', '\\Delta': 'Δ', '\\Gamma': 'Γ', '\\Im': 'ℑ', '\\L': 'Ł', '\\Lambda': 'Λ', '\\O': 'Ø', '\\OE': 'Œ', '\\Omega': 'Ω', '\\Phi': 'Φ', '\\Pi': 'Π', '\\Psi': 'Ψ', '\\Re': 'ℜ', '\\Sigma': 'Σ', '\\TH': 'Þ', '\\Theta': 'Θ', '\\Upsilon': 'Υ', '\\Xi': 'Ξ', '\\aa': 'å', '\\ae': 'æ', '\\aleph': 'ℵ', '\\alpha': 'α', '\\beta': 'β', '\\beth': 'ℶ', '\\chi': 'χ', '\\daleth': 'ℸ', '\\delta': 'δ', '\\dh': 'ð', '\\digamma': 'ϝ', '\\ell': 'ℓ', '\\epsilon': 'ϵ', '\\eta': 'η', '\\eth': 'ð', '\\gamma': 'γ', '\\gimel': 'ℷ', '\\hslash': 'ℏ', '\\i': 'ı', '\\imath': 'ı', '\\iota': 'ι', '\\j': 'ȷ', '\\jmath': 'ȷ', '\\kappa': 'κ', '\\l': 'ł', '\\lambda': 'λ', '\\mu': 'μ', '\\nu': 'ν', '\\o': 'ø', '\\oe': 'œ', '\\omega': 'ω', '\\phi': 'ϕ', '\\pi': 'π', '\\psi': 'ψ', '\\rho': 'ρ', '\\sigma': 'σ', '\\ss': 'ß', '\\tau': 'τ', '\\th': 'þ', '\\theta': 'θ', '\\upsilon': 'υ', '\\varDelta': '𝛥', '\\varGamma': '𝛤', '\\varLambda': '𝛬', '\\varOmega': '𝛺', '\\varPhi': '𝛷', '\\varPi': '𝛱', '\\varPsi': '𝛹', '\\varSigma': '𝛴', '\\varTheta': '𝛩', '\\varUpsilon': '𝛶', '\\varXi': '𝛯', '\\varepsilon': 'ε', '\\varkappa': 'ϰ', '\\varphi': 'φ', '\\varpi': 'ϖ', '\\varrho': 'ϱ', '\\varsigma': 'ς', '\\vartheta': 'ϑ', '\\wp': '℘', '\\xi': 'ξ', '\\zeta': 'ζ'}
- greek_capitals = ('\\Xi', '\\Theta', '\\Pi', '\\Sigma', '\\Gamma', '\\Lambda', '\\Phi', '\\Psi', '\\Delta', '\\Upsilon', '\\Omega')
- class OneParamFunction[source]
Bases:
CommandBitA function of one parameter
- commandmap = {'\\Big': 'span class="bigdelimiter size2"', '\\Bigg': 'span class="bigdelimiter size4"', '\\Biggl': 'span class="bigdelimiter size4"', '\\Biggr': 'span class="bigdelimiter size4"', '\\Bigl': 'span class="bigdelimiter size2"', '\\Bigr': 'span class="bigdelimiter size2"', '\\begin{array}': 'span class="arraydef"', '\\big': 'span class="bigdelimiter size1"', '\\bigg': 'span class="bigdelimiter size3"', '\\biggl': 'span class="bigdelimiter size3"', '\\biggr': 'span class="bigdelimiter size3"', '\\bigl': 'span class="bigdelimiter size1"', '\\bigr': 'span class="bigdelimiter size1"', '\\centering': 'span class="align-center"', '\\ensuremath': 'span class="ensuremath"', '\\hphantom': 'span class="phantom"', '\\noindent': 'span class="noindent"', '\\overbrace': 'span class="overbrace"', '\\overline': 'span class="overline"', '\\phantom': 'span class="phantom"', '\\underbrace': 'span class="underbrace"', '\\underline': '', '\\vphantom': 'span class="phantom"'}
- simplified = False
- class SymbolFunction[source]
Bases:
CommandBitFind a function which is represented by a symbol (like _ or ^)
- commandmap = {'^': 'sup', '_': 'sub'}
- class TextFunction[source]
Bases:
CommandBitA function where parameters are read as text.
- commandmap = {'\\mbox': 'span class="mbox"', '\\text': 'span class="text"', '\\textbf': 'span class="textbf"', '\\textit': 'span class="textit"', '\\textnormal': 'span class="textnormal"', '\\textrm': 'span class="textrm"', '\\textsc': 'span class="textsc"', '\\textsf': 'span class="textsf"', '\\textsl': 'span class="textsl"', '\\texttt': 'span class="texttt"', '\\textup': 'span class="normal"'}
- class FontFunction[source]
Bases:
OneParamFunctionA function of one parameter that changes the font.
- commandmap = {'\\boldsymbol': 'b', '\\mathbb': 'span class="blackboard"', '\\mathbb{A}': '𝔸', '\\mathbb{B}': '𝔹', '\\mathbb{C}': 'ℂ', '\\mathbb{D}': '𝔻', '\\mathbb{E}': '𝔼', '\\mathbb{F}': '𝔽', '\\mathbb{G}': '𝔾', '\\mathbb{H}': 'ℍ', '\\mathbb{J}': '𝕁', '\\mathbb{K}': '𝕂', '\\mathbb{L}': '𝕃', '\\mathbb{N}': 'ℕ', '\\mathbb{O}': '𝕆', '\\mathbb{P}': 'ℙ', '\\mathbb{Q}': 'ℚ', '\\mathbb{R}': 'ℝ', '\\mathbb{S}': '𝕊', '\\mathbb{T}': '𝕋', '\\mathbb{W}': '𝕎', '\\mathbb{Z}': 'ℤ', '\\mathbf': 'b', '\\mathcal': 'span class="scriptfont"', '\\mathcal{B}': 'ℬ', '\\mathcal{E}': 'ℰ', '\\mathcal{F}': 'ℱ', '\\mathcal{H}': 'ℋ', '\\mathcal{I}': 'ℐ', '\\mathcal{L}': 'ℒ', '\\mathcal{M}': 'ℳ', '\\mathcal{R}': 'ℛ', '\\mathfrak': 'span class="fraktur"', '\\mathfrak{C}': 'ℭ', '\\mathfrak{F}': '𝔉', '\\mathfrak{H}': 'ℌ', '\\mathfrak{I}': 'ℑ', '\\mathfrak{R}': 'ℜ', '\\mathfrak{Z}': 'ℨ', '\\mathit': 'i', '\\mathring{A}': 'Å', '\\mathring{U}': 'Ů', '\\mathring{a}': 'å', '\\mathring{u}': 'ů', '\\mathring{w}': 'ẘ', '\\mathring{y}': 'ẙ', '\\mathrm': 'span class="mathrm"', '\\mathscr': 'span class="mathscr"', '\\mathscr{B}': 'ℬ', '\\mathscr{E}': 'ℰ', '\\mathscr{F}': 'ℱ', '\\mathscr{H}': 'ℋ', '\\mathscr{I}': 'ℐ', '\\mathscr{L}': 'ℒ', '\\mathscr{M}': 'ℳ', '\\mathscr{R}': 'ℛ', '\\mathsf': 'span class="mathsf"', '\\mathtt': 'span class="mathtt"', '\\operatorname': 'span class="mathrm"'}
- class FormulaEquation[source]
Bases:
CommandBitA simple numbered equation.
- piece = 'equation'
- class FormulaCell[source]
Bases:
FormulaCommandAn array cell inside a row
- class FormulaRow[source]
Bases:
FormulaCommandAn array row inside an array
- cellseparator = '&'
- class MultiRowFormula[source]
Bases:
CommandBitA formula with multiple rows.
- class FormulaArray[source]
Bases:
MultiRowFormulaAn array within a formula
- piece = 'array'
- class FormulaMatrix[source]
Bases:
MultiRowFormulaA matrix (array with center alignment).
- piece = 'matrix'
- class FormulaCases[source]
Bases:
MultiRowFormulaA cases statement
- piece = 'cases'
- class EquationEnvironment[source]
Bases:
MultiRowFormulaA begin{}…end equation environment with rows and cells.
- class BeginCommand[source]
Bases:
CommandBitA begin{}…end command and what it entails (array, cases, aligned)
- commandmap = {'\\begin': ''}
- types = [<class 'docutils.utils.math.math2html.FormulaEquation'>, <class 'docutils.utils.math.math2html.FormulaArray'>, <class 'docutils.utils.math.math2html.FormulaCases'>, <class 'docutils.utils.math.math2html.FormulaMatrix'>]
- class CombiningFunction[source]
Bases:
OneParamFunction- commandmap = {'\\"': '̈', "\\'": '́', '\\^': '̂', '\\`': '̀', '\\acute': '́', '\\bar': '̄', '\\breve': '̆', '\\c': '̧', '\\check': '̌', '\\ddddot': '⃜', '\\dddot': '⃛', '\\ddot': '̈', '\\dot': '̇', '\\grave': '̀', '\\hat': '̂', '\\mathring': '̊', '\\not': '̸', '\\overleftrightarrow': '⃡', '\\overline': '̅', '\\r': '̊', '\\s': '̩', '\\textcircled': '⃝', '\\textsubring': '̥', '\\tilde': '̃', '\\underbar': '̱', '\\underleftarrow': '⃮', '\\underline': '̲', '\\underrightarrow': '⃯', '\\v': '̌', '\\vec': '⃗', '\\~': '̃'}
- class OversetFunction[source]
Bases:
OneParamFunctionA function that decorates some bit of text with an overset.
- commandmap = {'\\bar': '‒', '\\dddot': '<span class="smallsymbol">⋯</span>', '\\overleftarrow': '⟵', '\\overleftrightarrow': '⟷', '\\overrightarrow': '⟶', '\\vec': '<span class="smallsymbol">→</span>', '\\widehat': '^', '\\widetilde': '~'}
- class UndersetFunction[source]
Bases:
OneParamFunctionA function that decorates some bit of text with an underset.
- commandmap = {'\\underleftarrow': '⟵', '\\underleftrightarrow': '⟷', '\\underrightarrow': '⟶'}
- class LimitCommand[source]
Bases:
EmptyCommandA command which accepts limits above and below, in display mode.
- commandmap = {'\\bigcap': '<span class="bigoperator">⋂</span>', '\\bigcup': '<span class="bigoperator">⋃</span>', '\\biginterleave': '⫼', '\\bigodot': '<span class="bigoperator">⨀</span>', '\\bigoplus': '<span class="bigoperator">⨁</span>', '\\bigotimes': '<span class="bigoperator">⨂</span>', '\\bigsqcap': '<span class="bigoperator">⨅</span>', '\\bigsqcup': '<span class="bigoperator">⨆</span>', '\\biguplus': '<span class="bigoperator">⨄</span>', '\\bigvee': '<span class="bigoperator">⋁</span>', '\\bigwedge': '<span class="bigoperator">⋀</span>', '\\coprod': '<span class="bigoperator">∐</span>', '\\fint': '<span class="bigoperator integral">⨏</span>', '\\idotsint': '<span class="bigoperator integral">∫⋯∫</span>', '\\iiiint': '<span class="bigoperator integral">⨌</span>', '\\iiint': '<span class="bigoperator integral">∭</span>', '\\iint': '<span class="bigoperator integral">∬</span>', '\\inf': 'inf', '\\int': '<span class="bigoperator integral">∫</span>', '\\intop': '<span class="bigoperator integral">∫</span>', '\\lim': 'lim', '\\max': 'max', '\\min': 'min', '\\oiiint': '<span class="bigoperator integral">∰</span>', '\\oiint': '<span class="bigoperator integral">∯</span>', '\\oint': '<span class="bigoperator integral">∮</span>', '\\ointclockwise': '<span class="bigoperator integral">∲</span>', '\\ointctrclockwise': '<span class="bigoperator integral">∳</span>', '\\ointop': '<span class="bigoperator integral">∮</span>', '\\prod': '<span class="bigoperator">∏</span>', '\\smallint': '<span class="smallsymbol integral">∫</span>', '\\sqint': '<span class="bigoperator integral">⨖</span>', '\\sum': '<span class="bigoperator">∑</span>', '\\sup': 'sup', '\\varointclockwise': '<span class="bigoperator integral">∲</span>', '\\varprod': '<span class="bigoperator">⨉</span>', '\\zcmp': '⨟', '\\zhide': '⧹', '\\zpipe': '⨠', '\\zproject': '⨡'}
- class LimitPreviousCommand[source]
Bases:
LimitCommandA command to limit the previous command.
- commandmap = None
- class LimitsProcessor[source]
Bases:
MathsProcessorA processor for limits inside an element.
- modifylimits(contents, index)[source]
Modify a limits commands so that the limits appear above and below.
- class BracketCommand[source]
Bases:
OneParamFunctionA command which defines a bracket.
- commandmap = {'\\left': 'span class="stretchy"', '\\left.': '<span class="leftdot"></span>', '\\middle': 'span class="stretchy"', '\\right': 'span class="stretchy"', '\\right.': '<span class="rightdot"></span>'}
- class BracketProcessor[source]
Bases:
MathsProcessorA processor for bracket commands.
- class ParameterDefinition[source]
Bases:
objectThe definition of a parameter in a hybrid function.
- parambrackets = [('[', ']'), ('{', '}')]
- class ParameterFunction[source]
Bases:
CommandBitA function with a variable number of parameters defined in a template.
- class HybridFunction[source]
Bases:
ParameterFunctionA parameter function where the output is also defined using a template. The template can use a number of functions; each function has an associated tag. Example: [f0{$1},span class=”fbox”] defines a function f0 which corresponds to a span of class fbox, yielding <span class=”fbox”>$1</span>. Literal parameters can be used in tags definitions:
[f0{$1},span style=”color: $p;”]
yields <span style=”color: $p;”>$1</span>, where $p is a literal parameter. Sizes can be specified in hybridsizes, e.g. adding parameter sizes. By default the resulting size is the max of all arguments. Sizes are used to generate the right parameters. A function followed by a single / is output as a self-closing XHTML tag:
[f0/,hr]
will generate <hr/>.
- commandmap = {'\\addcontentsline': ['{$p!}{$q!}{$r!}', 'f0{}', 'ignored'], '\\addtocontents': ['{$p!}{$q!}', 'f0{}', 'ignored'], '\\backmatter': ['', 'f0{}', 'ignored'], '\\binom': ['{$1}{$2}', 'f2{(}f0{f1{$1}f1{$2}}f2{)}', 'span class="binom"', 'span class="binomstack"', 'span class="bigdelimiter size2"'], '\\boxed': ['{$1}', 'f0{$1}', 'span class="boxed"'], '\\cfrac': ['[$p!]{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="fullfraction"', 'span class="numerator align-$p"', 'span class="denominator"', 'span class="ignored"'], '\\color': ['{$p!}{$1}', 'f0{$1}', 'span style="color: $p;"'], '\\colorbox': ['{$p!}{$1}', 'f0{$1}', 'span class="colorbox" style="background: $p;"'], '\\dbinom': ['{$1}{$2}', '(f0{f1{f2{$1}}f1{f2{\u2005}}f1{f2{$2}}})', 'span class="binomial"', 'span class="binomrow"', 'span class="binomcell"'], '\\dfrac': ['{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="fullfraction"', 'span class="numerator"', 'span class="denominator"', 'span class="ignored"'], '\\displaystyle': ['{$1}', 'f0{$1}', 'span class="displaystyle"'], '\\fancyfoot': ['[$p!]{$q!}', 'f0{}', 'ignored'], '\\fancyhead': ['[$p!]{$q!}', 'f0{}', 'ignored'], '\\fbox': ['{$1}', 'f0{$1}', 'span class="fbox"'], '\\fboxrule': ['{$p!}', 'f0{}', 'ignored'], '\\fboxsep': ['{$p!}', 'f0{}', 'ignored'], '\\fcolorbox': ['{$p!}{$q!}{$1}', 'f0{$1}', 'span class="boxed" style="border-color: $p; background: $q;"'], '\\frac': ['{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="fraction"', 'span class="numerator"', 'span class="denominator"', 'span class="ignored"'], '\\framebox': ['[$p!][$q!]{$1}', 'f0{$1}', 'span class="framebox align-$q" style="width: $p;"'], '\\frontmatter': ['', 'f0{}', 'ignored'], '\\href': ['[$o]{$u!}{$t!}', 'f0{$t}', 'a href="$u"'], '\\hspace': ['{$p!}', 'f0{ }', 'span class="hspace" style="width: $p;"'], '\\leftroot': ['{$p!}', 'f0{ }', 'span class="leftroot" style="width: $p;px"'], '\\nicefrac': ['{$1}{$2}', 'f0{f1{$1}⁄f2{$2}}', 'span class="fraction"', 'sup class="numerator"', 'sub class="denominator"', 'span class="ignored"'], '\\parbox': ['[$p!]{$w!}{$1}', 'f0{1}', 'div class="Boxed" style="width: $w;"'], '\\raisebox': ['{$p!}{$1}', 'f0{$1.font}', 'span class="raisebox" style="vertical-align: $p;"'], '\\renewenvironment': ['{$1!}{$2!}{$3!}', ''], '\\rule': ['[$v!]{$w!}{$h!}', 'f0/', 'hr class="line" style="width: $w; height: $h;"'], '\\scriptscriptstyle': ['{$1}', 'f0{$1}', 'span class="scriptscriptstyle"'], '\\scriptstyle': ['{$1}', 'f0{$1}', 'span class="scriptstyle"'], '\\sqrt': ['[$0]{$1}', 'f0{f1{$0}f2{√}f4{(}f3{$1}f4{)}}', 'span class="sqrt"', 'sup class="root"', 'span class="radical"', 'span class="root"', 'span class="ignored"'], '\\stackrel': ['{$1}{$2}', 'f0{f1{$1}f2{$2}}', 'span class="stackrel"', 'span class="upstackrel"', 'span class="downstackrel"'], '\\tbinom': ['{$1}{$2}', '(f0{f1{f2{$1}}f1{f2{\u2005}}f1{f2{$2}}})', 'span class="binomial"', 'span class="binomrow"', 'span class="binomcell"'], '\\textcolor': ['{$p!}{$1}', 'f0{$1}', 'span style="color: $p;"'], '\\textstyle': ['{$1}', 'f0{$1}', 'span class="textstyle"'], '\\tfrac': ['{$1}{$2}', 'f0{f3{(}f1{$1}f3{)/(}f2{$2}f3{)}}', 'span class="textfraction"', 'span class="numerator"', 'span class="denominator"', 'span class="ignored"'], '\\thispagestyle': ['{$p!}', 'f0{}', 'ignored'], '\\unit': ['[$0]{$1}', '$0f0{$1.font}', 'span class="unit"'], '\\unitfrac': ['[$0]{$1}{$2}', '$0f0{f1{$1.font}⁄f2{$2.font}}', 'span class="fraction"', 'sup class="unit"', 'sub class="unit"'], '\\uproot': ['{$p!}', 'f0{ }', 'span class="uproot" style="width: $p;px"'], '\\url': ['{$u!}', 'f0{$u}', 'a href="$u"'], '\\vspace': ['{$p!}', 'f0{ }', 'span class="vspace" style="height: $p;"']}