7

I use pandoc to generate Reveal.js slides from a Markdown file. All the citations are dumped in in the last slide, so I finish the .md file with the title # References, which is fitting. However, all references are in the same slide, and they would need approximately three slides to fit. Only the first 5 or 6 are visible. Any way to split the references in several slides would be great.

This is the -v information:

pandoc 1.19.2.4
Compiled with pandoc-types 1.17.0.5, texmath 0.9.4.4, skylighting 0.3.3.1

This is the command that I am running:

pandoc -t revealjs -s -o out.html in.md -V revealjs-url=../lib --bibliography *.bib 

Is there any way to split the references in several slides?

Trylks
  • 1,458
  • 2
  • 18
  • 31
  • 1
    I have added `#refs { font-size: 0.5em; column-count: 2; }` in the custom css and the "patch" is _acceptable_, but far from ideal. – Trylks Feb 18 '21 at 21:37
  • 1
    That's actually a nice, if slightly hacky solution. Alternatively, you could write a [filter](https://pandoc.org/filters.html) to modify the document and limit number of references per slide. Side note: there has been quite a bit of progress in the last 3½ years since pandoc 1.19.2.4 came out. You might want to update (but note that you'd also have to update revealjs). – tarleb Feb 19 '21 at 13:30
  • Another semi-hack, but when using [quarto](https://quarto.org/) (which calls pandoc), slide content on the references slide in revealjs is by default set to be [smaller and scrollable](https://quarto.org/docs/presentations/revealjs/#content-overflow). This doesn't implement the feature you're asking about, but it's another workaround worth knowing about. See [this issue](https://github.com/quarto-dev/quarto-cli/issues/271). – postylem Jan 19 '22 at 15:53

0 Answers0