Skip to content

Instantly share code, notes, and snippets.

@HungMingWu
Created December 7, 2012 08:36
Show Gist options
  • Save HungMingWu/4231812 to your computer and use it in GitHub Desktop.
Save HungMingWu/4231812 to your computer and use it in GitHub Desktop.
Latex on Octopress
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
--- 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 {
<!-- 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