diff options
author | Viktor Kleen <viktor@kleen.org> | 2015-02-24 02:36:34 +0000 |
---|---|---|
committer | Viktor Kleen <viktor@kleen.org> | 2015-02-24 02:36:34 +0000 |
commit | 63d743bb102865a9163eb37683a77436d006b690 (patch) | |
tree | b981af5776c674aa8f1f61cad9861fd11bdce601 | |
parent | 45957d83ad71d966739717a7eed20bff920e571b (diff) | |
download | dirty-haskell.org-63d743bb102865a9163eb37683a77436d006b690.tar dirty-haskell.org-63d743bb102865a9163eb37683a77436d006b690.tar.gz dirty-haskell.org-63d743bb102865a9163eb37683a77436d006b690.tar.bz2 dirty-haskell.org-63d743bb102865a9163eb37683a77436d006b690.tar.xz dirty-haskell.org-63d743bb102865a9163eb37683a77436d006b690.zip |
fix up a few things
l--------- | lists/blog/002 | 1 | ||||
l--------- | lists/zz_all/003 | 1 | ||||
-rw-r--r-- | posts/blog-architecture-2.md | 30 | ||||
-rw-r--r-- | style.css | 2 |
4 files changed, 33 insertions, 1 deletions
diff --git a/lists/blog/002 b/lists/blog/002 new file mode 120000 index 0000000..49fa827 --- /dev/null +++ b/lists/blog/002 | |||
@@ -0,0 +1 @@ | |||
../../posts/blog-architecture-2.md \ No newline at end of file | |||
diff --git a/lists/zz_all/003 b/lists/zz_all/003 new file mode 120000 index 0000000..49fa827 --- /dev/null +++ b/lists/zz_all/003 | |||
@@ -0,0 +1 @@ | |||
../../posts/blog-architecture-2.md \ No newline at end of file | |||
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 | |||
3 | It's been more than a month since the last post here. Sorry about that. But I | ||
4 | have now implemented a nice and fancy new feature for math.kleen.org, namely | ||
5 | theorem environments: | ||
6 | <thm> | ||
7 | This could be your theorem here! | ||
8 | </thm> | ||
9 | <cor> | ||
10 | Some theorems come with corollaries. | ||
11 | </cor> | ||
12 | How these work ties in quite well with describing how LaTeX formulas are | ||
13 | converted to SVG for display in your browser. For example: | ||
14 | $$ | ||
15 | \int_{\partial M}\omega = \int_M\dd\omega | ||
16 | $$ | ||
17 | |||
18 | Both these features are accomplished via extensive processing with | ||
19 | [Pandoc](http://en.wikipedia.org/wiki/Pandoc). For converting LaTeX snippets | ||
20 | into SVG, I have a little Haskell program that takes Pandocs native format, | ||
21 | extracts all math snippets and compiles them with latex and dvisvgm. This | ||
22 | program sits in the build subdirectory in | ||
23 | <https://github.com/vkleen/math.kleen.org>. | ||
24 | |||
25 | For the theorem environment I patched the Markdown reader to convert mock HTML | ||
26 | tags like `<thm>` or `<cor>` into proper HTML. That way I can also retain the | ||
27 | possibility of converting posts into LaTeX and make PDFs out of them. | ||
28 | |||
29 | I'm not sure whether I will continue documenting this software like that. But if | ||
30 | I ever write a redo replacement there will probably a few posts on the process. | ||
@@ -45,7 +45,7 @@ div.definition:before { | |||
45 | } | 45 | } |
46 | 46 | ||
47 | div.corollary:before { | 47 | div.corollary:before { |
48 | content: "Definition."; | 48 | content: "Corollary."; |
49 | font-weight: bold; | 49 | font-weight: bold; |
50 | } | 50 | } |
51 | 51 | ||