-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to hide/ignore incremental slides #192
Comments
I think @benjie's solution there is more robust and also has the advantage of letting you both view and print the slides with the same HTML page, so I'll integrate it into this package. Of course, I wish remark.js could support it officially. The problem with
I actually want this feature myself, too, so thanks for the report! |
Done. You may test https://slides.yihui.name/xaringan/. remotes::install_github('yihui/xaringan') |
The slides print to pdf without the incremental slides as expected when using the Chromium -> print to PDF method, but unfortunately this method still has many issues which have previously been reported (e.g. not showing italics/bold text, LaTeX math, etc.). As is to be expected, the decktape method is unchanged. I have minimal knowledge of CSS and JS, so perhaps what I'm going to suggest won't make much sense, but I'll give it a shot anyways :-) Looking at the hack written by @benjie it seems there should be a way of adding a CSS theme to enable hiding incremental slides when moon reading. Could adding |
I'm not sure if I get it: are you saying the fix doesn't work for decktape? BTW, I have just fixed the several issues related to Chrome printing (MathJax, italics/bold text, ...). I think Chrome should work reasonably well with the current development version of xaringan. |
Yes, sorry about that. Converting to pdf with That's great about the fixes related to Chrome printing! Will test things again with the latest dev version. Thanks again! |
I see. It is unfortunate that decktape does not respect |
Which decktape version did you use? I can give it a shot later. |
@pat-s I used decktape v2.9.1. |
In fact, in the development version of remark.js, there is an option to disable incremental slides entirely: gnab/remark@40e69d21580 And a CSS class That said, I have no idea when the next version of remark.js will be released: gnab/remark#548 (comment). |
There does not seem to be an option in remark to ignore incremental slides separators when converting to html. This is particularly desirable when converting html to pdf to produce slide notes. While there is already a request for this feature in the remark repo (gnab/remark#478), I think this could be easily implemented in xaringan by parsing the Rmd file to remove the
--
delimiters beforemoon_reader
ing to a temporary html, and finally converting to pdf usingdecktape
. I use something along these lines in a Makefile usingsed
:Perhaps this could be easily implemented in xaringan/R using a text parser?
The text was updated successfully, but these errors were encountered: