Skip to content
Discussion options

You must be logged in to vote

Because Reveal.js resize itself the font-size, if you have concern about the font-size you can only hardcode it or possibly look for a Reveal.js plugin that does what you want.

To note, in rmarkdown, if you are talking about Xaringan, that is an entirely different framework also in JavaScript.

In HTML, it's "easy" to use JavaScript to modify font size but, it's harder to add a script that interacts with another complex script such as Reveal.js.

---
title: "Quarto Playground"
format: html
include-after-body:
  - text: |
      <script type="text/javascript">
        function increaseFontSize() {
          var body = document.getElementsByTagName('body')[0];
          var currentSize = parse…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Sancho-git
Comment options

@mcanouil
Comment options

Answer selected by Sancho-git
@Sancho-git
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format themes Related to HTML theming or any other style related issue (like highlight-style)
3 participants