4.1.7. Post¶
- mod.makeUniqueFilePrefix()¶
- Returns:
a string on the form
out/iii_
where`iii`
is the next zero-padded integer from an internal counter.- Return type:
- class mod.post¶
This class (which will be a submodule in the future) contains various functions to manipulate post-processing (PostMØD). Commands for the post-processor are written to the command file
out/post.sh
which the post-processor executes internally as a Bash script.- static command(line)¶
Write the given text to the command file and write a newline character.
- Parameters:
line (str) – the text to be written.
Warning
The contents of the command file is executed without any security checks.
- static flushCommands()¶
Flush the command file buffer.
- static disableCommands()¶
Disable command writing and flushing, also for commands emitted internally in the library.
- static enableCommands()¶
Enable command writing and flushing, also for commands emitted internally in the library.
- static reopenCommandFile()¶
Reopen the command file, which may be useful if it was modified externally while open by the library.
- static summaryChapter(heading)¶
Command the post-processor to insert a
\chapter
macro in the summary.- Parameters:
heading (str) – the chapter heading to insert.
- static summarySection(heading)¶
Command the post-processor to insert a
\section
macro in the summary.- Parameters:
heading (str) – the section heading to insert.
- static summaryRaw(latexCode, file=...)¶
Command the post-processor to insert the given code verbatim in the summary.
- static summaryInput(filename)¶
Command the post-processor to insert a
\input
macro in the summary.- Parameters:
filename (str) – the filename to input.