-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to go offline #194
Comments
This is fairly easy to do, the following steps should do this..
Your presentation HTML file will look something like this:
My directory for the presentation now looks like this: |
Thanks!! Do I have to download also mathjax isn't it? |
Not that I can see, there's not references to it from the remark.js source and a quick test of the above seems to work fine. Where is that library mentioned? I don't recall seeing it anywhere. |
I need it to show equations in the presentations... Here there's the wiki page and this is what I put at the end of the html file <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({
sourceUrl: './GM11.md',
});
// Setup MathJax
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
extensions: ["AMSmath.js", "AMSsymbols.js", "autobold.js"]
}
});
MathJax.Hub.Queue(function() {
$(MathJax.Hub.getAllJax()).map(function(index, elem) {
return(elem.SourceElement());
}).parent().addClass('has-jax');
});
MathJax.Hub.Configured();
</script> Probably I just need to figure out from the Mathjax site how to do this. |
Ah ok, I would download the MathJax.js file to the presentation directory, update the script tag src to use the local one leaving the query string parameters.. Something like:
|
ok, thanks!! b |
Thanks for the nice piece of software. I get strangely enough. It renders correctly, but after a few seconds I get:
Any ideas? PS: are long subscripts supposed to be supported?
|
It looks like a need a number of files:
However, it is still unpredictable. I'll report if I have a complete solution. Meanwhile help would be appreciated. |
There is also: Looks like installing the mathjax debian packages did the trick. |
Thanks for this information in this issue; my interest in offline presentation is because I don't want to assume that I'll have internet access in the moment I'm starting my presentation (sure, it's actually when I load the presentation, but still too risky). A small FYI, If you use markdown-to-slides (>= 1.0.3; April 2016) to compile Markdown to HTML, it includes the content of markdown-to-slides --include-remark slides.md -o slides.html It's also worth mentioning https://github.com/TalAter/UpUp, which provides generic offline caching of any website content. I haven't tried it, so I don't know how much work it is to get it working with Remark and whether it is possible to use locally (i.e. not sure if HTTPS server is needed). Just my two cents. |
If you need italic or bold fonts you also need to add this: @font-face{
font-family: 'Droid Serif';
src: url('Fonts/DroidSerif-Bold.ttf');
font-weight: bold;
}
@font-face{
font-family: 'Droid Serif';
src: url('Fonts/DroidSerif-Italic.ttf');
font-style: italic;
}
@font-face{
font-family: 'Droid Serif';
src: url('Fonts/DroidSerif-BoldItalic.ttf');
font-weight: bold;
font-style: italic;
} My fonts are in the |
Hi!
Is there an easy guide on how to download everything to put it on a usb stick and go offline?
Or, how can I go offline? (mathjax included)
The text was updated successfully, but these errors were encountered: