Skip to content
Discussion options

You must be logged in to vote

It also highlights a solution for PDF: #3496 (reply in thread).

PDF can't use CSS classes, because it would require to read/parse CSS classes and try to convert all the components to multiple languages.

You can use conditional contents, custom Lua filter to add colour, etc.
For example:

---
title: "Demo Quarto"
format:
  pdf: default
  html: default
filters:
  - colour.lua
---

[test]{color=#b22222}

Using the Lua code from rstudio/rmarkdown-cookbook#368.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ma-bit-bot
Comment options

@mcanouil
Comment options

Answer selected by ma-bit-bot
@ma-bit-bot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
epub Issues with the ePub format.
2 participants