Skip to content

Instantly share code, notes, and snippets.

@masterdezign
Last active November 15, 2017 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save masterdezign/5eb03e834299b8b67750 to your computer and use it in GitHub Desktop.
Save masterdezign/5eb03e834299b8b67750 to your computer and use it in GitHub Desktop.
Remark.js+MathJax essentials
<!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
![The data flow](figures/total5.png)
---
# 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