diff options
| Commit | cfc0264b41728c6b2f5dda142d57dc1d1d30b975 (patch) | |
|---|---|---|
| Author | 2023-11-26 19:26:29 +0200 | |
| Committer | 2023-11-26 19:26:29 +0200 | |
| Files | 00febb6a8d57daacbedf878db60ce01dc2b55a39 /src/styles.csma | |
| syndamia.com-latex.tar syndamia.com-latex.tar.gz syndamia.com-latex.zip | ||
| Parent | 11a6c3776e148e89387fdda7e90867661cecded5 (diff) | |
[math] Added initial setup for a simple LaTeX renderer latex
1 files changed, 43 insertions, 0 deletions
| -rw-r--r-- | src/styles.csma | 43 |
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 @@ <Pagenav> {} <Paragraphs with icons> {} <Page specific> {} + <Math> {} <Headers> <Anchor> @@ -353,6 +354,48 @@ } } +<Article> { +<Math> +{ + @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; + } + + <Division> { + .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; + } +} +} + <Headers> { h1, h2, h3, h4, h5, h6 { color: var(--header-color); |