ddoc latex/formulas?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 15 09:12:25 PDT 2016


On 09/15/2016 11:13 AM, bachmeier wrote:
> On Thursday, 15 September 2016 at 13:48:44 UTC, Andrei Alexandrescu wrote:
>> That strikes me as an inferior solution to what's available today,
>> which is used at http://erdani.com/d/DIP1000-typing-baseline.html.
>
> But how did you do that?

See source at http://pasted.co/7ea68163 and Johan's example on SO.

It's imperfect: you need to define the entire DDOC macro, which is a bit 
goofy because that has a bunch of other things. We need to devise a 
better way in the long run.

> I think KaTeX may be a better solution for
> documentation because MathJax can be slow to render. It's basically
> MathJax modified for speed by Khan Academy.
>
> https://github.com/Khan/KaTeX

Even better!


Andrei


More information about the Digitalmars-d mailing list