2022-07-09 07:37:47 +00:00
title: $:/plugins/tiddlywiki/katex/ImplementationNotes
2014-09-21 22:03:07 +00:00
! CSS Handling
2022-07-09 07:37:47 +00:00
The ''original CSS from KaTeX'' includes a number of font definitions in this format:
2014-09-21 22:03:07 +00:00
```
@font-face {
font-family: 'KaTeX_AMS';
src: url('fonts/KaTeX_AMS-Regular.eot');
src: url('fonts/KaTeX_AMS-Regular.eot?#iefix') format('embedded-opentype'),
url('fonts/KaTeX_AMS-Regular.woff') format('woff'),
url('fonts/KaTeX_AMS-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
```
2022-07-09 07:37:47 +00:00
These definitions are currently ''removed manually'' from [[$:/plugins/tiddlywiki/katex/katex.min.css]] so that they can be redefined as data URIs using TiddlyWiki's macro notation in $:/plugins/tiddlywiki/katex/styles
2014-09-21 22:03:07 +00:00
```
@font-face {
font-family: 'KaTeX_AMS';
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_AMS-Regular.woff'>>) format('woff');
font-weight: normal;
font-style: normal;
}
```
2014-09-22 09:41:12 +00:00
Note that the plugin currently only embeds the WOFF format fonts, which seems to be sufficient for most browsers.