Login  Register

Re: Mathex: Generating latex math from Pharo.

Posted by Damien Cassou-2 on Sep 08, 2015; 2:31pm
URL: https://forum.world.st/Mathex-Generating-latex-math-from-Pharo-tp4848409p4848833.html


Julien Delplanque <[hidden email]> writes:

> On 07/09/15 13:56, Damien Cassou wrote:
>> Julien Delplanque <[hidden email]> writes:
>>>
>>> (Phi equal: ((1 asMathex + 5 asMathex sqrt) // 2)) equation asString.
>>>
>>> and get:
>>>
>>> \begin{equation}
>>> \phi=\frac{ 1 +\sqrt{ 5 }}{ 2 }\end{equation}
>>
>> I think that's great news! One of Pillar's feature requests is to let
>> users write LaTeX (e.g., formulas) in their pillar document and get nice
>> results in all exports (LaTeX, HTML, ePub...):
>> https://github.com/pillar-markup/pillar/issues/18. I'm not sure how this
>> request fits in your work, but there might be some intersection.
>>
> I guess if a latex math parser is created, it is possible to use objects
> from Mathex to represent an equation as Mathex objects.
>
> After that the translation to html should be easy.
>
> Maybe I'll give a try if I have some time.

we could ask the Pillar users to write using Mathex directly so we don't
have to write a LaTeX parser. The only remaining thing is to generate
png pictures from Mathex objects for inclusion in HTML.

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

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