-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Missing vertical slides in revealjs #4317
Comments
Please try running pandoc with If you have further questions, please direct them to the pandoc-discuss mailing list; we try to keep this issue tracker reserved for bugs and enhancement proposals. |
Please reopen this issue, because it does not solve OPs problem. I am having the same issue. |
The original issue seems to be resolved. @HDembinski, it is difficult to assess your issue without more information about your specific problem. Please also see http://pandoc.org/help.html. |
This is not a solution, only an accurate description of the problem. I did some more searching here, and multiple users stumble over the same issue again and again: To make 2D slides in reveal.js works as expected, we need level 1 slides with content to become normal horizontal slides and level 2 slides to be nested vertical slides. |
I believe that what you want is for
to show up as a horizontal slide with title "A" and content "A content" and a vertical subslide with title "A1" and content "A1 content." What pandoc will do, with It might make sense to make the following change (this would be around line 478 of the HTML writer). Instead of omitting the non-section content of a "title slide," we could include it as the content of the slide. This would not be a hard change to make, and it would give the behavior you want for reveal.js. However, it would mean that reveal.js and beamer give different output for the same input, which is something I've wanted to avoid. We might, however, think of making a parallel change in beamer. This would also help with #5237. |
A first step, if we made this change, would be to carefully document the new behavior in teh manual under Slide shows. |
@jgm Thank you for opening this again and yes, you described the problem and the desired behaviour perfectly. I am sure that many users will appreciate this change. Can I help out in some way? I can't program in Haskell, but I can help with the docs, for example. |
I played a bit with beamer output. Maybe beamer should be changed as well, and then the behaviour could remain consistent as you wish. Using OP's example Markdown with beamer output, by executing
I get the following output This is exactly the behaviour that the current docs describe, but it is not what a naive user would expected. I would argue that a heading should always start a new slide. Proposed behaviour:
|
To clarify, I think no user actually wants the output shown in my screenshot, which would allow us to safely change this without breaking peoples projects. |
Try this with Being able to create titled blocks using headers > slide level is a useful feature. |
Currently we keep the fancy title slide and add a new slide with the same title and whatever content was under the header. This changes behavior of slides, but is consistent with the new behavior of the revealjs and other HTML slide show writers. See #4317.
strip HTML comments even when generating Beamer presentations due to changes in pandoc 2.7 regarding content below header < slidelevel see also jgm/pandoc#4317
I am so sorry to trouble - but this (unexpected!) change has caused me quite a bit of trouble... |
@tchevri I'm sorry about this -- it appears one can't please everyone. Unfortunately your particular use wasn't represented in the discussion. I had assumed that people who didn't want the content to appear on slides could simply hide the content (using a filter or whatever), but your case is different; you don't want to hide the content; you want it to appear in the document outside the slide environment. I'm reluctant to revert the change to beamer, since this would make revealjs and beamer behave differently, and because it would break things for other users. But I can't think of a good workaround right now. I suggest you post on the pandoc-discuss mailing list, where someone might have ideas...closed issues aren't a good place for discussions. |
This fix is apparently included in versions 2.7 and later:
|
Can i suggest something please? |
Before Pandoc 2.7, choosing slide_level: 3 meant that ### was needed to create a slide. This commit jgm@5990f14 caused this desired behavior to no longer be true and content above slide level is automatically included onto a slide, to accommodate compatibility with reveal.js format. At JGM's request, who could not think of a quick fix at the time, I posted a request on https://groups.google.com/g/pandoc-discuss/c/joqekZQRpq8, but no resolution was suggested. This suggested simple 1 extra line change fixes these issues jgm#8118 and jgm#4317. Thank you in advance for entertaining this suggestion.
Late response, but I had a similar issue and these guides helped: In my case, the vertical structure showed up while I was editing a .md file and suddenly disappeared after a while. The vertical structure disappeared because I introduced a level 1 heading that was followed by content (and not a level two header). If you always follow the following structure, Level 1 slides stay on top with subsequent Level 2 slides displayed below.
I hope this is still helpful! |
Hi !
I am trying to generate slides from
Markdown
toRevealJS
with pandoc.The problem is that i don't have vertical slides , like revealjs can provide. instead everything is packed into the first level slide.
Here is a short example to reproduce:
Makefile:
prez.md
make download_revealjs
make all
The output:

My pandoc version is:
Do you know what's wrong with my Markdown ?
Thanks !
The text was updated successfully, but these errors were encountered: