From cfc0264b41728c6b2f5dda142d57dc1d1d30b975 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Nov 2023 19:26:29 +0200 Subject: [math] Added initial setup for a simple LaTeX renderer --- src/styles.csma | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'src/styles.csma') diff --git a/src/styles.csma b/src/styles.csma index 1e3a7d4..d860054 100644 --- a/src/styles.csma +++ b/src/styles.csma @@ -254,6 +254,7 @@ {} {} {} + {} @@ -353,6 +354,48 @@ } } +
{ + +{ + @font-face { + font-family: "Computer Modern"; + src: url('/font/cmunrm.ttf'); + } + + @font-face { + font-family: "Computer Modern"; + font-style: italic; + src: url('/font/cmunti.ttf'); + } + + .equation { + font-family: 'Computer Modern'; + font-style: italic; + letter-spacing: 0.25em; + text-align: center; + font-size: 1.2em; + } + .equation .operator { + font-style: normal; + } + + { + .divide { + display: inline-table; + vertical-align: middle; + } + .divide > * { display: table-row; } + + .dividend, .divisor { padding-left: 5px; } + .dividend { border-bottom: 1px solid var(--fg-color); } + } + + .equation sup { + margin-left: -3px; + } +} +} + { h1, h2, h3, h4, h5, h6 { color: var(--header-color); -- cgit v1.3.1-26-gb76a