html_full.tpl
71 lines
| 1.6 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
damianavila
|
r14190 | {%- extends 'html_basic.tpl' -%} | |
{%- block header -%} | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="utf-8" /> | |||
<title>{{resources['metadata']['name']}}</title> | |||
{% for css in resources.inlining.css -%} | |||
<style type="text/css"> | |||
{{ css }} | |||
</style> | |||
{% endfor %} | |||
<style type="text/css"> | |||
/* Overrides of notebook CSS for static HTML export */ | |||
body { | |||
overflow: visible; | |||
padding: 8px; | |||
} | |||
.input_area { | |||
padding: 0.2em; | |||
} | |||
pre { | |||
padding: 0.2em; | |||
border: none; | |||
margin: 0px; | |||
font-size: 13px; | |||
} | |||
</style> | |||
<!-- Custom stylesheet, it must be in the same directory as the html file --> | |||
<link rel="stylesheet" href="custom.css"> | |||
<script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript"></script> | |||
<script type="text/javascript"> | |||
init_mathjax = function() { | |||
if (window.MathJax) { | |||
// MathJax loaded | |||
MathJax.Hub.Config({ | |||
tex2jax: { | |||
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |||
}, | |||
// Center justify equations in code and markdown cells. Elsewhere | |||
// we use CSS to left justify single line equations in code cells. | |||
displayAlign: 'center', | |||
"HTML-CSS": { | |||
styles: {'.MathJax_Display': {"margin": 0}} | |||
} | |||
}); | |||
MathJax.Hub.Queue(["Typeset",MathJax.Hub]); | |||
} | |||
} | |||
init_mathjax(); | |||
</script> | |||
</head> | |||
{%- endblock header -%} | |||
{% block body %} | |||
<body> | |||
{{ super() }} | |||
</body> | |||
{%- endblock body %} | |||
{% block footer %} | |||
</html> | |||
{% endblock footer %} |