innoconv_mintmod.mintmod_filter.commands¶
Handle mintmod LaTeX commands.
Note
Provide a handle_CMDNAME
function for handling CMDNAME
command.
You need to slugify the
command name.
Example: handle_msection
method will receive the command \MSection
.
-
class
innoconv_mintmod.mintmod_filter.commands.
Commands
[source]¶ Handlers for commands are defined here.
Given the command:
\MSection{Foo}
The handler method
handle_msection
receives the following arguments:cmd_args
:['Foo']
elem
:panflute.base.Element
-
handle_highlight
(cmd_args, elem)[source]¶ Handle highlight command.
This seems to be some sort of formatting command. There’s no documentation and it does nothing in the mintmod code. We just keep the information here.
-
handle_jhtmlhinweiseingabefunktionen
(cmd_args, elem)[source]¶ Handle
\jHTMLHinweisEingabeFunktionen
command.
-
handle_jhtmlhinweiseingabefunktionenexp
(cmd_args, elem)[source]¶ Handle
\jHTMLHinweisEingabeFunktionenExp
command.
-
handle_mdeclaresiteuxid
(cmd_args, elem)[source]¶ Handle
\MDeclareSiteUXID
command.This command is used to embed IDs. This is not relevant anymore and becomes a no-op.
-
handle_mentry
(cmd_args, elem)[source]¶ Handle
\MEntry
command.This command creates an entry for the glossary/index.
-
handle_mextlink
(cmd_args, elem)[source]¶ Handle
\MExtLink
command.This command inserts an external link.
-
handle_mgraphics
(cmd_args, elem, add_desc=True)[source]¶ Handle
\MGraphics
.Embed an image with title.
Example: MGraphics{img.png}{scale=1}{title}
-
handle_mgraphicssolo
(cmd_args, elem)[source]¶ Handle
\MGraphicsSolo
.Embed an image without title. Uses filename as image title.
Handle
\MGroupButton
command
-
handle_mindex
(cmd_args, elem)[source]¶ Handle
\MIndex
command.This command creates an invisible entry for the glossary/index.
-
handle_mlabel
(cmd_args, elem)[source]¶ Handle
\MLabel
command.Will search for the previous header element and update its ID to the ID defined in the
\MLabel
command.The command can occur in an environment that is parsed by a subprocess. In this case there’s no last header element. The process can’t set the ID because it can’t access the doc tree. Instead it replaces the
\MLabel
by an element that is found by the parent process using functioninnoconv.utils.extract_identifier()
.
-
handle_mlfunctionquestion
(cmd_args, elem)[source]¶ Handle exercises defined by
\MLFunctionQuestion
command
-
handle_mlintervalquestion
(cmd_args, elem)[source]¶ Handle exercises defined by
\MLIntervalQuestion
command
-
handle_mlparsedquestion
(cmd_args, elem)[source]¶ Handle exercises defined by
\MLParsedQuestion
command
-
handle_mlsimplifyquestion
(cmd_args, elem)[source]¶ Handle exercises defined by
\MLSimplifyQuestion
command
-
handle_mlspecialquestion
(cmd_args, elem)[source]¶ Handle exercises defined by
\MLSpecialquestion
command
-
handle_mmodstartbox
(cmd_args, elem)[source]¶ Handle
\MModStartBox
command.This command displays a table of content for the current chapter. This is handled elswhere and becomes a no-op.
-
handle_mpragma
(cmd_args, elem)[source]¶ Handle
\MPragma
command.This command was used to embed build time flags for mintmod. It becomes a no-op.
-
handle_mprintindex
(cmd_args, elem)[source]¶ Handle
\MPrintIndex
command.Index will be printed automatically. It becomes a no-op.
-
handle_msetsectionid
(cmd_args, elem)[source]¶ Handle
\MSetSectionID
command.This command is used solely for tikz images. It becomes a no-op.
-
handle_msetsubject
(cmd_args, elem)[source]¶ Handle
\MSetSubject{}
command.Command defines the category.
-
handle_msref
(cmd_args, elem)[source]¶ Handle
\MSRef
command.This command inserts a fragment-style link.
-
handle_msubject
(cmd_args, elem)[source]¶ Handle
\MSubject{title}
command.Command defines the document title.
-
handle_msubsubsectionx
(cmd_args, elem)[source]¶ Handle
\MSubsubsectionx
command. Which will generate a level 3 header.
-
handle_msubsubsubsectionx
(cmd_args, elem)[source]¶ Handle
\MSubsubsubsectionx
command. Which will generate a level 4 header.
-
handle_mtikzauto
(cmd_args, elem)[source]¶ Handle
\MTikzAuto
command.Create a
CodeBlock
with TikZ code.
-
handle_mtitle
(cmd_args, elem)[source]¶ Handle
\MTitle
command.This is an equivalent to
\subsubsection
-
handle_mugraphicssolo
(cmd_args, elem)[source]¶ Handle
\MUGraphicsSolo
.Embed an image without title.
-
handle_mzahl
(cmd_args, elem)[source]¶ Handle
\MZahl
command.This is a math command but in fact occurs also in text.
-
handle_mzxyzhltrennzeichen
(cmd_args, elem)[source]¶ Handle
\MZXYZhltrennzeichen
command.It is transformed to a
\decmarker
command and later substituted by MathJax. This is already in math substitions but as it occurs outside of math environments it’s defined here too.
-
handle_newpage
(cmd_args, elem)[source]¶ Handle
\newpage
command.A display related command. It becomes a no-op.