![]() |
Belle II Software light-2509-fornax
|


Public Member Functions | |
| __init__ (self, columnspecs, caption, format_string, head) | |
| add (self, *args, **kwargs) | |
| finish (self, tail='') | |
| __str__ (self) | |
| save (self, filename, compile=False) | |
Public Attributes | |
| format_string = format_string | |
| python-style format-string used to generate a new row out of a given dictionary. | |
| str | output = '' |
| Stores the outputted latex-code. | |
Creates a longtable in latex. A longtable can span multiple pages and is automatically wrapped.
Definition at line 377 of file b2latex.py.
| __init__ | ( | self, | |
| columnspecs, | |||
| caption, | |||
| format_string, | |||
| head ) |
Calls super-class init, begins centered environment and longtable environment.
Defines caption and head of the table.
@param columnspecs of the longtable, something like:
rclp{7cm} 4 columns, right-center-left aligned and one paragraph column with a width of 7cm
@param caption string or object with implicit string conversion used as caption.
@param format_string python-style format-string used to generate a new row out of a given dictionary.
@param head of the table
Definition at line 383 of file b2latex.py.
|
inherited |
Transform object to string, in this case, just returns .the generated latex-code
Definition at line 26 of file b2latex.py.
| add | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
Add a new row to the longtable by generating the row using the format_string given in init
and the provided dictionary.
@param args positional arguments used to generate the row using the python-style format string.
@param kwargs dictionary used to generate the row using the python-style format-string.
Reimplemented from LatexObject.
Definition at line 403 of file b2latex.py.
| finish | ( | self, | |
| tail = '' ) |
Adds optional tail of the table, ends longtable and centered environment.
@param tail optional tail, like head but at the bottom of the table.
Reimplemented from LatexObject.
Definition at line 413 of file b2latex.py.
|
inherited |
Saves the latex-code into a file, adds preamble and end of document,
and compiles the code if requested.
@param filename latex-code is stored in this file, should end on .tex
@param compile compile the .tex file using pdflatex into a .pdf file
Definition at line 47 of file b2latex.py.
| format_string = format_string |
python-style format-string used to generate a new row out of a given dictionary.
Definition at line 401 of file b2latex.py.
|
inherited |
Stores the outputted latex-code.
Definition at line 24 of file b2latex.py.