diff --git a/quantecon_book_theme/layout.html b/quantecon_book_theme/layout.html index dc28d50..0f28cc9 100644 --- a/quantecon_book_theme/layout.html +++ b/quantecon_book_theme/layout.html @@ -199,6 +199,37 @@ touch: false, }); feather.replace(); + window.MathJax = { + startup: { + ready: () => { + console.log('MathJax is loaded, but not yet initialized'); + MathJax.startup.defaultReady(); + console.log('MathJax is initialized, and the initial typeset is queued'); + } + }, + tex: { + inlineMath: [ + ['$', '$'], + ['\\(', '\\)'], + ], + processEscapes: true + }, + chtml: { + scale: 0.92, + displayAlign: "center" + }, + svg: { + scale: 0.92, + displayAlign: "center", + }, + options: { + menuOptions: { + settings: { + renderer: 'SVG' + } + } + }, + }; {%- endblock %} diff --git a/quantecon_book_theme/static/quantecon-book-theme.e15eeb84e703e8a6ad0ca02f57d51d0e.js b/quantecon_book_theme/static/quantecon-book-theme.4437c52682462236109142e624e7c099.js similarity index 95% rename from quantecon_book_theme/static/quantecon-book-theme.e15eeb84e703e8a6ad0ca02f57d51d0e.js rename to quantecon_book_theme/static/quantecon-book-theme.4437c52682462236109142e624e7c099.js index fe28ea2..1f4bee1 100644 --- a/quantecon_book_theme/static/quantecon-book-theme.e15eeb84e703e8a6ad0ca02f57d51d0e.js +++ b/quantecon_book_theme/static/quantecon-book-theme.4437c52682462236109142e624e7c099.js @@ -7,5 +7,4 @@ setFontSize();$('.btn__plus').on('click',function(event){event.preventDefault(); localStorage.toolbarFont=toolbarFont;setFontSize();});$('.btn__minus').on('click',function(event){event.preventDefault();event.stopPropagation();var toolbarFont=parseInt(localStorage.getItem('toolbarFont'))-1;if(toolbarFont<0){toolbarFont=-1;} localStorage.toolbarFont=toolbarFont;setFontSize();});const collapsableCodeBlocks=document.querySelectorAll("div[class^='collapse'] .highlight");for(var i=0;i