mathmaker.lib.machine package¶
Submodules¶
mathmaker.lib.machine.LaTeX module¶
-
class
mathmaker.lib.machine.LaTeX.
LaTeX
(language, create_pic_files=True, **options)[source]¶ Bases:
mathmaker.lib.machine.Structure.Structure
-
write_frame
(content, uncovered=False, only=False, duration=None, numbering='')[source]¶ Write a slideshow’s frame to the output
Parameters: - content (str) – the frame’s content
- uncovered (bool) – whether to split the content in several slides that will show one after the other. Mostly useful for title. The content’s parts must be delimited by SLIDE_CONTENT_SEP (from lib.constants).
- only (bool) – whether to split the content in several slides that will show one after the other. Mostly useful for answers. The content’s parts must be delimited by SLIDE_CONTENT_SEP (from lib.constants). Difference with uncovered is the text will be replaced, not only made invisible.
- duration (number (int or float)) – the duration of the frame. If it’s None, then no duration will be set.
Return type: str
-
write_layout
(size, col_widths, content, **options)[source]¶ Writes content arranged like in a table.
Param: size: (nb of columns, nb of lines)
Parameters: - col_widths – list of int
- content – list of str
-
write_math_style2
(given_string, **kwargs)[source]¶ Write the given string as a mathematical expression.
-
write_out
(latex_document: str, pdf_output=False)[source]¶ Writes the given document to the output.
If pdf_output is set to True then the document will be compiled into a pdf and the pdf content will be written to output.
Parameters: - latex_document – contains the entire LaTeX document
- pdf_output – if True, output will be written in pdf format
-
mathmaker.lib.machine.Structure module¶
-
class
mathmaker.lib.machine.Structure.
Structure
(language)[source]¶ Bases:
object
Abstract mother class of machine objects.
-
write_frame
(content, uncovered=False, only=False, duration=None, numbering='')[source]¶ Write a frame to the output.
-