mirror of https://github.com/yjwen/org-reveal.git
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:
parent
e7b9cb41ba
commit
a02e083198
11
ox-reveal.el
11
ox-reveal.el
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue