Julien Delplanque <jul...@tamere.eu> writes:

> Is there anything already done to generate code related to math environment?
>
> I would like messages like:
>
> Fraction>>asMathLatex
>
> that returns $\frac{numerator}{denominator}$.

stream := PROutputStream on: String new writeStream.
configuration := PRCocoonConfiguration new.
stream configuration: configuration.
canvas := PRLaTeXCanvas on: stream.

canvas raw: '$'.
canvas command name: 'frac'; parameter: 'numerator'; parameter: 'denominator'.
canvas raw: '$'.
canvas flush

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

Reply via email to