Login  Register

Re: Generate latex from Pharo

Posted by CyrilFerlicot on May 16, 2015; 1:09pm
URL: https://forum.world.st/Generate-latex-from-Pharo-tp4826739p4826750.html

Hi,
I don't know if there is a framework but if you don't find you can
still take a look at the class PRLaTeXCanvas and PRLaTeXWriter from
Pharo. Maybe that'll help you to make something.

On 16 May 2015 at 14:42, Julien Delplanque <[hidden email]> wrote:

> Hi everyone,
>
> Is there any framework to generate latex code from Pharo? I would like to
> give a latex representation to some objects so I can export the latex code
> to a file I would include to my latex main file (for example).
>
> For example for a matrix I would like to do something like:
>
> fileStream nextPutAll: myMatrix asLatex.
>
> to have something like:
>
> \begin{pmatrix}
>    1 & 2 \\
>    3 & 4
> \end{pmatrix}
>
>
> in the file.
>
> I used to do it with pylatex in Python and I wonder if something equivalent
> already exists in Pharo?
>
> Regards,
>
> Julien



--
Cheers
Cyril Ferlicot