Login  Register

Re: Generate latex from Pharo

Posted by stepharo on May 22, 2015; 7:38pm
URL: https://forum.world.st/Generate-latex-from-Pharo-tp4826739p4828166.html


> 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
>
Why not?

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