-
Notifications
You must be signed in to change notification settings - Fork 859
Printing Export to PDF
Sunny Ripert edited this page Oct 8, 2020
·
5 revisions
A (very crude) way of printing the slides is:
- Open in Firefox/Chrome
- Resize the window to make the slides fill the full width of the window. (This means that there is at least a little bit of space at the top and bottom of the slides.)
- Print to file (tip: choose a custom paper size with a 4:3 ratio)
Step 2 is needed to make sure all slides (and not only the first one) are printed.
You can install DeckTape and call:
decktape remark <url> <filename.pdf> --chrome-arg=--disable-web-security --size 320x240
<title>Title</title>
<style>
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
<textarea id="source">
body { font-family: 'Droid Serif'; }
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: normal;
}
.remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }
</style>
Code:
def add(a,b)
a + b
end
</textarea>
<script src="https://remarkjs.com/downloads/remark-latest.min.js">
</script>
<script>
var slideshow = remark.create();
</script>