fixed pdf export issue

I implement the fix in https://github.com/hakimel/reveal.js/issues/808 exactly.
This commit requires the use of a ?print-pdf modifier to the URL as detailed in
the issue above.
This commit is contained in:
Noah D. Brenowitz 2014-03-25 02:30:10 -04:00
parent e7b9cb41ba
commit a02e083198
1 changed files with 10 additions and 1 deletions

View File

@ -361,7 +361,16 @@ using custom variable `org-reveal-root'."
(format "<link rel=\"stylesheet\" href=\"%s\"/>
<link rel=\"stylesheet\" href=\"%s\" id=\"theme\"/>
%s
<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\" media=\"print\"/>
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if( window.location.search.match( /print-pdf/gi ) ) {
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = '%s';
document.getElementsByTagName( 'head' )[0].appendChild( link );
}
</script>
"
min-css-file-name theme-full extra-css-link-tag
pdf-css)))