Browse Source

MathJax

remotes/origin/vysl
Matěj Kocián 9 years ago
parent
commit
f2133cc50a
  1. 13
      mamweb/templates/base.html

13
mamweb/templates/base.html

@ -16,6 +16,19 @@
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}fluent_comments/css/ajaxcomments.css" />
<script type="text/javascript" src="{{ STATIC_URL }}fluent_comments/js/ajaxcomments.js"></script>
{# nastavení MathJaxu, aby nahrazoval i matiku obalenou jednoduchými $ #}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body class='{% if user.is_authenticated %}org-logged-in{% endif %}'>
{# TODO predelat pro pouze pro orgy (misto pro prihlasene) #}

Loading…
Cancel
Save