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