Created
December 7, 2012 08:36
-
-
Save HungMingWu/4231812 to your computer and use it in GitHub Desktop.
Latex on Octopress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index 1a06ae2..ef440ea 100644 | |
--- a/_config.yml | |
+++ b/_config.yml | |
@@ -33,7 +33,7 @@ destination: public | |
plugins: plugins | |
code_dir: downloads/code | |
category_dir: blog/categories | |
-markdown: rdiscount | |
+markdown: kramdown | |
pygments: false # default python pygments have been replaced by pygments.rb | |
paginate: 10 # Posts per page on the blog index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/sass/base/_theme.scss | |
+++ b/sass/base/_theme.scss | |
@@ -75,7 +75,7 @@ html { | |
background: $page-bg image-url('line-tile.png') top left; | |
} | |
body { | |
- > div { | |
+ > div#main { | |
background: $sidebar-bg $noise-bg; | |
border-bottom: 1px solid $page-border-bottom; | |
> div { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- mathjax config similar to math.stackexchange --> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({ | |
tex2jax: { | |
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
processEscapes: true | |
} | |
}); | |
</script> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({ | |
tex2jax: { | |
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'] | |
} | |
}); | |
</script> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Queue(function() { | |
var all = MathJax.Hub.getAllJax(), i; | |
for(i=0; i < all.length; i += 1) { | |
all[i].SourceElement().parentNode.className += ' has-jax'; | |
} | |
}); | |
</script> | |
<script type="text/javascript" | |
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment