Latex¶
Export of model equations to latex (or even LaTeX) is provided.
Limitations:
The pacing mechanism is not included in the resulting documents
API¶
The standard exporting API is provided:
- myokit.formats.latex.exporters()¶
Returns a dict of all exporters available in this module.
- class myokit.formats.latex.PdfExporter¶
This
Exporter
exports model equations to a simple latex document.- model(path, model, protocol=None)¶
Export to an xml document.
- post_export_info()¶
Optional method that returns a string containing information about this exporter, to be shown after the export is completed.
- supports_model()¶
Returns
True
- class myokit.formats.latex.PosterExporter¶
This
Exporter
exports model equations to a terrifying poster format, designed to strike fear into the heart of its beholders.- model(path, model, protocol=None)¶
Exports a model to an xml document.
- post_export_info()¶
Optional method that returns a string containing information about this exporter, to be shown after the export is completed.
- supports_model()¶
Returns
True
.
- myokit.formats.latex.ewriters()¶
Returns a dict of all expression writers available in this module.
- class myokit.formats.latex.LatexExpressionWriter¶
This
ExpressionWriter
translates Myokitexpressions
to their Tex equivalent.- eq(eq)¶
- ex(e)¶
- set_lhs_function(f)¶
- Sets a naming function, will be called to get the variable name from a
myokit.LhsExpression
. This function is also responsible for converting it to a suitable Latex form (e.g. adding text{}).
The argument
f
should be a function that takes anLhsExpression
as input and returns a string.
- set_time_variable_name(name='t')¶
Sets a name to use for the time variable in derivatives.