1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-05 02:10:45 +00:00
TiddlyWiki5/plugins/tiddlywiki/katex/styles.tid
lin onetwo 2f817e4293
Update katex to latest 0.15.3 (#6671)
* feat: update snippet fields

https://github.com/Jermolene/TiddlyWiki5/discussions/6670

* chore: upgrade files

* docs: update readme

* fix: usage of mhchem

* fix: add back katex.without-font-face.min.css

https://github.com/Jermolene/TiddlyWiki5/pull/6671#issuecomment-1116287404

* style: format json with 4 space

* style: format json with 1 space

* style: restore old format

* feat: update css by using new one and delete font face

* update developer info

* move implementation notes to plugin

* update TW style tiddler

* update katexdemo edition

* chore: delete unused files

* Update developer.tid

* Update developer.tid

Co-authored-by: pmario <pmariojo@gmail.com>
2022-07-09 08:37:47 +01:00

171 lines
4.2 KiB
Plaintext

title: $:/plugins/tiddlywiki/katex/styles
tags: [[$:/tags/Stylesheet]]
code-body: yes
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
/* KaTeX styles */
{{$:/plugins/tiddlywiki/katex/katex.min.css}}
/* Force text-rendering (see https://github.com/Jermolene/TiddlyWiki5/issues/2500) */
.katex {
text-rendering: auto;
}
/* Reset Automatic Numbering on a per tiddler basis */
.tc-tiddler-frame {
counter-reset: katexEqnNo;
}
/* Avoid TW5's max-width: 100% */
.katex svg {
max-width: initial;
}
/* Override font URLs */
@font-face {
font-family: KaTeX_AMS;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_AMS-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Caligraphic;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Caligraphic-Bold.woff'>>) format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: KaTeX_Caligraphic;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Caligraphic-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Fraktur;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Fraktur-Bold.woff'>>) format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: KaTeX_Fraktur;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Fraktur-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Main;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Main-Bold.woff'>>) format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: KaTeX_Main;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Main-BoldItalic.woff'>>) format('woff');
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: KaTeX_Main;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Main-Italic.woff'>>) format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: KaTeX_Main;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Main-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Math;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Math-BoldItalic.woff'>>) format('woff');
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: KaTeX_Math;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Math-Italic.woff'>>) format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: KaTeX_SansSerif;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_SansSerif-Bold.woff'>>) format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: KaTeX_SansSerif;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_SansSerif-Italic.woff'>>) format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: KaTeX_SansSerif;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_SansSerif-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Script;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Script-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Size1;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Size1-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Size2;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Size2-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Size3;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Size3-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Size4;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Size4-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: KaTeX_Typewriter;
src: url(<<datauri '$:/plugins/tiddlywiki/katex/fonts/KaTeX_Typewriter-Regular.woff'>>) format('woff');
font-weight: 400;
font-style: normal;
}