Menu

Printable

Nicolas Hainaux
There is a newer version of this page. You can find it here.

All objects that can be represented as a string are Printable. This is basically the case of all calculus objects, like Equation, Table or Item etc.

Method (must be reimplemented) : into_str()

The into_str() method computes the string representation of the object in a markup language (which one is provided in the configuration file).

For instance, if the markup language is LaTeX and the object is a Fraction having a plus sign, a numerator being a Product of Item 3 and Item 4 and a denominator being an Item 5, the result of into_str() should be something like \frac{3\times 4}{5}.

Back


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.