[TW5] KaTex: How to extend fonts by math bold, math italic, math bold italic?

368 views
Skip to first unread message

Wladyslaw Skarbek

unread,
Oct 24, 2014, 3:07:58 PM10/24/14
to tiddl...@googlegroups.com
It seems that currently KaTex  plugin in TW5 does use only regular AMS font (woff).
 How to extend it by math bold, math italic, math bold italic?
Vwadec

Jeremy Ruston

unread,
Oct 25, 2014, 4:17:34 AM10/25/14
to TiddlyWiki
Hi Wladyslaw

> It seems that currently KaTex  plugin in TW5 does use only regular AMS font (woff).

The KaTeX plugin currently ships with the following fonts:

KaTeX_AMS-Regular.woff
KaTeX_Main-Bold.woff
KaTeX_Main-Italic.woff
KaTeX_Main-Regular.woff
KaTeX_Math-BoldItalic.woff
KaTeX_Math-Italic.woff
KaTeX_Math-Regular.woff
KaTeX_Size1-Regular.woff
KaTeX_Size2-Regular.woff
KaTeX_Size3-Regular.woff
KaTeX_Size4-Regular.woff

The plugin excludes the .eot, .ttf and .woff2 versions of the fonts because the full KaTeX font set is about one megabyte, which is quite big for a TW plugin (right now the entire KaTeX plugin is about 377KB).

>  How to extend it by math bold, math italic, math bold italic?

Unless I'm misunderstanding something, bold, italic and bold italic are already included. What browser and operating system are you using?

Best wishes

Jeremy.



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Wladyslaw Skarbek

unread,
Oct 25, 2014, 12:30:07 PM10/25/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy

Thank you for the reply.

Why I have assumed that bold fonts are missing:
each of standard Latex bolding expressions results in error, e.g.:

\mathbf{x}

{\boldmath x}

The same, I get with the relevant commands  of AMS package.

It is rather confusing - having fonts without their access.
KaTex original github page says nothing on style modifications.
Therefore  I assumed the Latex notation.
Can you clarify?

Cheers

Vwadec

Jeremy Ruston

unread,
Oct 26, 2014, 5:19:47 AM10/26/14
to Wladyslaw Skarbek, TiddlyWiki
Hi Wladyslaw

> each of standard Latex bolding expressions results in error, e.g.:

It may be that the problem is that KaTeX doesn't implement those operators. You can try entering an example at KaTeX's site to help figure out if the problem is with KaTeX itself, or the TiddlyWiki wrapper around it:


Best wishes

Jeremy

Reply all
Reply to author
Forward
0 new messages