add PDF.css to support print to PDF.

This commit is contained in:
yjwen 2013-07-04 09:41:44 +08:00
parent 346a8f9002
commit a60af257ba
1 changed files with 7 additions and 3 deletions

View File

@ -334,11 +334,15 @@ using custom variable `org-reveal-root'."
(extra-css (plist-get info :reveal-extra-css))
(extra-css-link-tag (if extra-css
(format "<link rel=\"stylesheet\" href=\"./%s\">" extra-css)
"")))
""))
(pdf-css (org-reveal--append-pathes css-dir-name '("print" "pdf.css"))))
(format "<link rel=\"stylesheet\" href=\"%s\">
<link rel=\"stylesheet\" href=\"%s\" id=\"theme\">
%s\n"
min-css-file-name theme-full extra-css-link-tag)))
%s
<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\" media=\"print\">
"
min-css-file-name theme-full extra-css-link-tag
pdf-css)))
(defun org-reveal-mathjax-scripts (info)
"Return the HTML contents for declaring MathJax scripts"