Tweaks to revealjs procedure
This commit is contained in:
@@ -114,7 +114,8 @@
|
|||||||
;; Light approach, which requires web access and readable code (but speaker notes and relative paths don't work):
|
;; Light approach, which requires web access and readable code (but speaker notes and relative paths don't work):
|
||||||
;; (setq file-type "revealjs -V revealjs-url='http://lab.hakim.se/reveal-js' --standalone"))
|
;; (setq file-type "revealjs -V revealjs-url='http://lab.hakim.se/reveal-js' --standalone"))
|
||||||
;; Heavy embedded binary approach (relies on reveal.js/ being in ~/.revealjs/):
|
;; Heavy embedded binary approach (relies on reveal.js/ being in ~/.revealjs/):
|
||||||
(setq file-type "revealjs --embed-resources --standalone -V revealjs-url='/home/ntnsndr/.revealjs/reveal.js' -V theme=ntn -V controls=false --slide-level=2"))
|
;; Workaround: For YouTube videos, need to add `data-external="1"` (https://is.gd/UmgYgp)
|
||||||
|
(setq file-type "revealjs --standalone --embed-resources -V revealjs-url='/home/ntnsndr/.revealjs/reveal.js' -V theme=ntn -V controls=false --slide-level=2"))
|
||||||
;; set up slides pptx routine
|
;; set up slides pptx routine
|
||||||
(when (string-equal file-type "pptx")
|
(when (string-equal file-type "pptx")
|
||||||
(setq file-ext "pptx")
|
(setq file-ext "pptx")
|
||||||
@@ -127,8 +128,8 @@
|
|||||||
"iconv -t utf-8 " tmp-in-file " | " ;; pipe in utf-8 for pandoc
|
"iconv -t utf-8 " tmp-in-file " | " ;; pipe in utf-8 for pandoc
|
||||||
"pandoc -s" ;; embed full header in HTML
|
"pandoc -s" ;; embed full header in HTML
|
||||||
" -f markdown+smart" ;; add curly quotes
|
" -f markdown+smart" ;; add curly quotes
|
||||||
;; remove "--citeproc" for older versions
|
|
||||||
" --citeproc --bibliography $HOME/Zotero/lib.bib" ;; connect to BibTeX export from Zotero
|
" --citeproc --bibliography $HOME/Zotero/lib.bib" ;; connect to BibTeX export from Zotero
|
||||||
|
;; ^ remove "--citeproc" for older versions
|
||||||
" -t " file-type
|
" -t " file-type
|
||||||
" -o " tmp-out-file))
|
" -o " tmp-out-file))
|
||||||
;; End convert routine
|
;; End convert routine
|
||||||
|
|||||||
Reference in New Issue
Block a user