Skip to content

Commit

Permalink
fixed mathjax bug in chp1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Feb 26, 2013
1 parent 66a1218 commit 27e0d9d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 9 deletions.
27 changes: 23 additions & 4 deletions Chapter1_Introduction/Chapter1_Introduction.ipynb
Expand Up @@ -908,16 +908,35 @@
" margin-top: 0.5em;\n",
" display: block;\n",
" }\n",
"</style>"
" \n",
" .warning{\n",
" color: rgb( 240, 20, 20 )\n",
" }\n",
"</style>\n",
"<script>\n",
" MathJax.Hub.Config({\n",
" TeX: {\n",
" extensions: [\"AMSmath.js\"]\n",
" },\n",
" tex2jax: {\n",
" inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n",
" displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n",
" },\n",
" displayAlign: 'center', // Change this to 'center' to center equations.\n",
" \"HTML-CSS\": {\n",
" styles: {'.MathJax_Display': {\"margin\": 4}}\n",
" }\n",
" });\n",
"</script>"
],
"output_type": "pyout",
"prompt_number": 22,
"prompt_number": 1,
"text": [
"<IPython.core.display.HTML at 0xcac47f0>"
"<IPython.core.display.HTML at 0x8225dd8>"
]
}
],
"prompt_number": 22
"prompt_number": 1
},
{
"cell_type": "code",
Expand Down
23 changes: 19 additions & 4 deletions Chapter2_MorePyMC/MorePyMC.ipynb
Expand Up @@ -1777,16 +1777,31 @@
" .warning{\n",
" color: rgb( 240, 20, 20 )\n",
" }\n",
"</style>"
"</style>\n",
"<script>\n",
" MathJax.Hub.Config({\n",
" TeX: {\n",
" extensions: [\"AMSmath.js\"]\n",
" },\n",
" tex2jax: {\n",
" inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n",
" displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n",
" },\n",
" displayAlign: 'center', // Change this to 'center' to center equations.\n",
" \"HTML-CSS\": {\n",
" styles: {'.MathJax_Display': {\"margin\": 4}}\n",
" }\n",
" });\n",
"</script>"
],
"output_type": "pyout",
"prompt_number": 9,
"prompt_number": 1,
"text": [
"<IPython.core.display.HTML at 0x127c5390>"
"<IPython.core.display.HTML at 0x8293dd8>"
]
}
],
"prompt_number": 9
"prompt_number": 1
},
{
"cell_type": "code",
Expand Down
17 changes: 16 additions & 1 deletion styles/custom.css
Expand Up @@ -38,4 +38,19 @@
.warning{
color: rgb( 240, 20, 20 )
}
</style>
</style>
<script>
MathJax.Hub.Config({
TeX: {
extensions: ["AMSmath.js"]
},
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
},
displayAlign: 'center', // Change this to 'center' to center equations.
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 4}}
}
});
</script>

0 comments on commit 27e0d9d

Please sign in to comment.