### Note: at present, MathJax and KaTeX do not respect the USE_CDN configuration option <%def name="math_scripts()"> %if use_katex: % if katex_auto_render: % else: % endif %else: ### Note: given the size of MathJax; nikola will retrieve MathJax from a CDN regardless of use_cdn configuration % if mathjax_config: ${mathjax_config} % else: % endif %endif <%def name="math_styles()"> % if use_katex: % endif <%def name="math_scripts_ifpost(post)"> %if post.has_math: ${math_scripts()} %endif <%def name="math_scripts_ifposts(posts)"> %if any(post.has_math for post in posts): ${math_scripts()} %endif <%def name="math_styles_ifpost(post)"> %if post.has_math: ${math_styles()} %endif <%def name="math_styles_ifposts(posts)"> %if any(post.has_math for post in posts): ${math_styles()} %endif