-
Notifications
You must be signed in to change notification settings - Fork 82
/
showcode.tpl
96 lines (71 loc) · 2.28 KB
/
showcode.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{%- extends 'slides_reveal.tpl' -%}
{% block body %}
{{ super() }}
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
<!-- MathJax configuration -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
processEnvironments: true
},
// 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}},
linebreaks: { automatic: false }
}
});
</script>
<script>
Reveal.initialize({
// Display controls in the bottom right corner
controls: true,
// Display a presentation progress bar
//progress: true,
// Push each slide change to the browser history
history: false,
// Enable keyboard shortcuts for navigation
keyboard: true,
slideNumber: true,
// Enable touch events for navigation
//touch: true,
// Enable the slide overview mode
//overview: true,
// Vertical centering of slides
//center: true,
// Loop the presentation
//loop: false,
// Change the presentation direction to be RTL
//rtl: false,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
//autoSlide: 0,
// Enable slide navigation via mouse wheel
//mouseWheel: false,
// Transition style
// transition: 'concave', // default/cube/page/concave/zoom/linear/fade/none
// Transition speed
//transitionSpeed: 'default', // default/fast/slow
// Transition style for full page backgrounds
//backgroundTransition: 'default', // default/linear/none
// Theme
// width: 100%,
// height: 100%,
// margin: 0,
theme: 'white', // available themes are in /css/theme
});
// remap F5/ESC/b key
Reveal.configure({
keyboard: {
66: 'right',
116: 'left',
27: 'left'
}
});
</script>
{% endblock body %}