summaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
Diffstat (limited to 'posts')
-rw-r--r--posts/blog-architecture-2.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/posts/blog-architecture-2.md b/posts/blog-architecture-2.md
new file mode 100644
index 0000000..7571db1
--- /dev/null
+++ b/posts/blog-architecture-2.md
@@ -0,0 +1,30 @@
1% More on the Architecture of math.kleen.org
2
3It's been more than a month since the last post here. Sorry about that. But I
4have now implemented a nice and fancy new feature for math.kleen.org, namely
5theorem environments:
6<thm>
7This could be your theorem here!
8</thm>
9<cor>
10Some theorems come with corollaries.
11</cor>
12How these work ties in quite well with describing how LaTeX formulas are
13converted to SVG for display in your browser. For example:
14$$
15\int_{\partial M}\omega = \int_M\dd\omega
16$$
17
18Both these features are accomplished via extensive processing with
19[Pandoc](http://en.wikipedia.org/wiki/Pandoc). For converting LaTeX snippets
20into SVG, I have a little Haskell program that takes Pandocs native format,
21extracts all math snippets and compiles them with latex and dvisvgm. This
22program sits in the build subdirectory in
23<https://github.com/vkleen/math.kleen.org>.
24
25For the theorem environment I patched the Markdown reader to convert mock HTML
26tags like `<thm>` or `<cor>` into proper HTML. That way I can also retain the
27possibility of converting posts into LaTeX and make PDFs out of them.
28
29I'm not sure whether I will continue documenting this software like that. But if
30I ever write a redo replacement there will probably a few posts on the process.