|
mathmaker
0.6(alpha)
|
Not instanciable mother class of all machine objects. More...
Public Member Functions | |
| def | __init__ |
| /!\ Must be redefined. | |
| def | clone |
| Returns a deep copy of the object. | |
| def | write_document_header |
| /!\ Must be redefined. | |
| def | write_document_begins |
| /!\ Must be redefined. | |
| def | write_exercise_number |
| /!\ Must be redefined. | |
| def | write_jump_to_next_page |
| /!\ Must be redefined. | |
| def | reset_exercises_counter |
| /!\ Must be redefined. | |
| def | set_font_size_offset |
| Sets the font_size_offset field. | |
| def | set_redirect_output_to_str |
| Sets the redirect_output_to_str field to True or False. | |
| def | redirect_output_to_str |
| Gets the value of redirect_output_to_str field. | |
| def | translate_font_size |
| turn the size keyword in language matching keyword | |
| def | write_document_ends |
| /!\ Must be redefined. | |
| def | write_new_line |
| /!\ Must be redefined. | |
| def | write_new_line_twice |
| /!\ Must be redefined. | |
| def | write_math_style2 |
| /!\ Must be redefined. | |
| def | write_math_style1 |
| /!\ Must be redefined. | |
| def | write |
| /!\ Must be redefined. | |
| def | write_set_font_size_to |
| /!\ Must be redefined. | |
| def | write_table |
| Writes a table filled with the given [strings]. | |
| def | write_layout |
| Writes content arranged like in a table (but can be written. | |
| def | type_string |
| /!\ Must be redefined. | |
| def | insert_picture |
| /!\ Must be redefined. | |
| def | insert_dashed_hline |
| /!\ Must be redefined. | |
| def | insert_vspace |
| /!\ Must be redefined. | |
Not instanciable mother class of all machine objects.
Definition at line 30 of file Structure.py.
| def machine.Structure.Structure.__init__ | ( | self, | |
| language | |||
| ) |
/!\ Must be redefined.
Constructor.
| embedded_machine | The machine to be used |
| **options | Any options |
Definition at line 42 of file Structure.py.
| def machine.Structure.Structure.insert_dashed_hline | ( | self, | |
| options | |||
| ) |
/!\ Must be redefined.
Returns a string containing the object to be displayed, according to the desired output format (LaTeX etc.)
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 225 of file Structure.py.
| def machine.Structure.Structure.insert_picture | ( | self, | |
| drawable_arg, | |||
| options | |||
| ) |
/!\ Must be redefined.
Returns a string containing the object to be displayed, according to the desired output format (LaTeX etc.)
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 214 of file Structure.py.
| def machine.Structure.Structure.insert_vspace | ( | self, | |
| options | |||
| ) |
/!\ Must be redefined.
Returns a string containing the object to be displayed, according to the desired output format (LaTeX etc.)
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 237 of file Structure.py.
/!\ Must be redefined.
Writes to the output the exercises counter reinitializing command
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 99 of file Structure.py.
| def machine.Structure.Structure.translate_font_size | ( | self, | |
| arg | |||
| ) |
turn the size keyword in language matching keyword
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 124 of file Structure.py.
| def machine.Structure.Structure.type_string | ( | self, | |
| objct, | |||
| options | |||
| ) |
/!\ Must be redefined.
Returns a string containing the object to be displayed, according to the desired output format (LaTeX etc.)
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 204 of file Structure.py.
| def machine.Structure.Structure.write | ( | self, | |
| given_string, | |||
| options | |||
| ) |
/!\ Must be redefined.
Writes to the output the given string
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 167 of file Structure.py.
/!\ Must be redefined.
Writes to the output the command to begin the document
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 77 of file Structure.py.
| def machine.Structure.Structure.write_document_ends | ( | self | ) |
/!\ Must be redefined.
Writes to the output the end of document command
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 132 of file Structure.py.
/!\ Must be redefined.
Write the complete header of the sheet to the output.
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 65 of file Structure.py.
/!\ Must be redefined.
Writes to the output the command displaying an exercise's title plus its number
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 85 of file Structure.py.
/!\ Must be redefined.
Writes to the output the jump to next page command
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 92 of file Structure.py.
| def machine.Structure.Structure.write_layout | ( | self, | |
| size, | |||
| col_widths, | |||
| content, | |||
| options | |||
| ) |
Writes content arranged like in a table (but can be written.
without using a table)
| size | : (nb of columns, nb of lines) |
| col_widths | : [int] |
| content | : [strings] : borders=0|1|2|3... (not implemented yet) : unit='inch' etc. (check the possibilities...) |
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 195 of file Structure.py.
| def machine.Structure.Structure.write_math_style1 | ( | self, | |
| given_string | |||
| ) |
/!\ Must be redefined.
Writes to the output the given string as a math. expression (2d option)
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 160 of file Structure.py.
| def machine.Structure.Structure.write_math_style2 | ( | self, | |
| given_string | |||
| ) |
/!\ Must be redefined.
Writes to the output the given string as a mathematical expression
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 153 of file Structure.py.
| def machine.Structure.Structure.write_new_line | ( | self, | |
| options | |||
| ) |
/!\ Must be redefined.
Writes to the output the new line command
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 139 of file Structure.py.
| def machine.Structure.Structure.write_new_line_twice | ( | self, | |
| options | |||
| ) |
/!\ Must be redefined.
Writes to the output two commands writing two new lines
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 146 of file Structure.py.
| def machine.Structure.Structure.write_set_font_size_to | ( | self, | |
| arg | |||
| ) |
/!\ Must be redefined.
Writes to the output the command setting the text size
Reimplemented in machine.LaTeX.LaTeX.
Definition at line 174 of file Structure.py.
| def machine.Structure.Structure.write_table | ( | self, | |
| size, | |||
| col_widths, | |||
| content, | |||
| options | |||
| ) |
Writes a table filled with the given [strings].
| size | : (nb of columns, nb of lines) |
| col_widths | : [int] |
| content | : [strings] : borders=0|1|2|3... (not implemented yet) : unit='inch' etc. (check the possibilities...) |
Definition at line 184 of file Structure.py.
1.7.6.1