Last active
November 15, 2017 20:03
-
-
Save masterdezign/5eb03e834299b8b67750 to your computer and use it in GitHub Desktop.
Remark.js+MathJax essentials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Presentation</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<style type="text/css"> | |
.red { color: red } | |
</style> | |
</head> | |
<body> | |
<textarea id="source"> | |
name: Introduction | |
class: middle, center | |
# {{ name }} | |
The name of the slide is {{ name }} | |
`\(\int_a^bf(x)dx\)` | |
--- | |
# Operation principles | |
 | |
--- | |
# Shared title | |
.footnote[.red.bold[*] Important footnote] | |
`\(\int_a^bf(x)dx\)` | |
-- | |
1. Intro | |
-- | |
2. Test | |
```python | |
>>> import antigravity | |
``` | |
</textarea> | |
<script src="http://gnab.github.io/remark/downloads/remark-latest.min.js" type="text/javascript"></script> | |
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML&delayStartupUntil=configured" type="text/javascript"></script> | |
<script type="text/javascript"> | |
var slideshow = remark.create(); | |
// Setup MathJax | |
MathJax.Hub.Config({ | |
tex2jax: { | |
inlineMath: [['$','$'], ['\\(','\\)']], | |
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'] | |
} | |
}); | |
MathJax.Hub.Queue(function() { | |
$(MathJax.Hub.getAllJax()).map(function(index, elem) { | |
return(elem.SourceElement()); | |
}).parent().addClass('has-jax'); | |
}); | |
MathJax.Hub.Configured(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment