A LaTeX processor responsible for translating ViennaMath runtime variables to LaTeX code. More...
#include <latex.hpp>
Public Member Functions | |
std::string | process (InterfaceType const *ptr, bool use_parenthesis, rt_latex_translator< InterfaceType > const &translator) const |
The interface for converting an expression 'e' to a LaTeX string. | |
bool | customize (InterfaceType const *ptr, std::string const &str) |
The interface for customization of output. The expression 'e' is customized to return the LaTeX string 'str'. |
A LaTeX processor responsible for translating ViennaMath runtime variables to LaTeX code.
InterfaceType | The interface to inherit from. Usually rt_expression_interface, but extensions are possible. |
bool customize | ( | InterfaceType const * | e, | |
std::string const & | str | |||
) | [inline, virtual] |
The interface for customization of output. The expression 'e' is customized to return the LaTeX string 'str'.
e | Pointer to the ViennaMath runtime expression | |
str | The LaTeX string to be used for the expression referred to be 'e' |
Reimplemented from rt_latex_processor_interface< InterfaceType >.
std::string process | ( | InterfaceType const * | e, | |
bool | use_parenthesis, | |||
rt_latex_translator< InterfaceType > const & | trans | |||
) | const [inline, virtual] |
The interface for converting an expression 'e' to a LaTeX string.
e | Pointer to a runtime expression | |
use_parenthesis | A flag indicating whether the expression should be wrapped in parentheses in order to preserve priority of evaluation | |
trans | The LaTeX translater object for callback operations when recursively printing expressions |
Implements rt_latex_processor_interface< InterfaceType >.