ute / custom-numbered-blocks

quarto extension for user defined, automatically numbered div blocks / latex environment
MIT License
18 stars 1 forks source link

color don't work in revealjs with quarto! #6

Open nqt2022 opened 1 year ago

nqt2022 commented 1 year ago

I see you create for pdf, html. I use revealjs in quarto for create slide html. I want to use your _extension with color [948bde, 584eab] for "Theorem" in revealjs with quarto. But color "Theorem" is default! How you can? my YAML:


groups: thmlike: colors: [948bde, 584eab] boxstyle: foldbox.simple collapse: false listin: [mathstuff] todos: default
classes: Theorem: group: thmlike revealjs:

Thanks

ute commented 1 year ago

Hi nqt2022, Thanks for reporting! I have not tried with revealjs, but did you use indentation in your yaml, or does it look like above? Does the example.qmd (not reveal.js) work for you? Best, Ute

nqt2022 commented 1 year ago

Yes, the example.qmd work very pretty for me. in reveal.js, I see:

ute commented 1 year ago

Maybe it is due to some css from reveal.js? I would need to try out at some stage - it will take a while until I have time, but if you have an idea how to fix it that would be great!

ute commented 1 year ago

Maybe I need to extend the code to detect revealjs, or revealjs overrides some css. Which version of quarto do you use?

On Sun, 22 Oct 2023, 16.52 nqt2022 @.***> wrote:

Yes, the example.qmd work very pretty for me. in reveal.js, I see:

  • the example is ok,
  • but the color of each group (in your code) is default as "Feature: default". I don't know change the color each groups Thanks for the reply! PS: I use Rstudio for editor and compile file example.qmd!

— Reply to this email directly, view it on GitHub https://github.com/ute/custom-numbered-blocks/issues/6#issuecomment-1774115498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHIKA4LGTSBUJPXPMD2N3TYAUXLPAVCNFSM6AAAAAA6KZTOICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGEYTKNBZHA . You are receiving this because you commented.Message ID: @.***>

nqt2022 commented 1 year ago

Hi, I use quarto version 1.4.398 with Rstudio! I'm newbie for quarto. I knew TeX, python. How can I understand your source for this extend? Thanks