Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Functions | Variables
mdit_py_plugins.amsmath Namespace Reference

Functions

None amsmath_plugin (MarkdownIt md, *Callable[[str], str]|None renderer=None)
 
bool amsmath_block (StateBlock state, int startLine, int endLine, bool silent)
 

Variables

list ENVIRONMENTS
 
str RE_OPEN = r"\\begin\{(" + "|".join(ENVIRONMENTS) + r")([\*]?)\}"
 

Detailed Description

An extension to capture amsmath latex environments.

Function Documentation

◆ amsmath_plugin()

None mdit_py_plugins.amsmath.amsmath_plugin ( MarkdownIt  md,
*Callable[[str], str] | None   renderer = None 
)
Parses TeX math equations, without any surrounding delimiters,
only for top-level `amsmath <https://ctan.org/pkg/amsmath>`__ environments:

.. code-block:: latex

    \\begin{gather*}
    a_1=b_1+c_1\\\\
    a_2=b_2+c_2-d_2+e_2
    \\end{gather*}

:param renderer: Function to render content, by default escapes HTML

Variable Documentation

◆ ENVIRONMENTS

list mdit_py_plugins.amsmath.ENVIRONMENTS
Initial value:
1= [
2 # 3.2 single equation with an automatically gen-erated number
3 "equation",
4 # 3.3 variation equation, used for equations that dont fit on a single line
5 "multline",
6 # 3.5 a group of consecutive equations when there is no alignment desired among them
7 "gather",
8 # 3.6 Used for two or more equations when vertical alignment is desired
9 "align",
10 # allows the horizontal space between equationsto be explicitly specified.
11 "alignat",
12 # stretches the space betweenthe equation columns to the maximum possible width
13 "flalign",
14 # 4.1 The pmatrix, bmatrix, Bmatrix, vmatrix and Vmatrix have (respectively)
15 # (),[],{},||,and ‖‖ delimiters built in.
16 "matrix",
17 "pmatrix",
18 "bmatrix",
19 "Bmatrix",
20 "vmatrix",
21 "Vmatrix",
22 # eqnarray is another math environment, it is not part of amsmath,
23 # and note that it is better to use align or equation+split instead
24 "eqnarray",
25]