-
-
Notifications
You must be signed in to change notification settings - Fork 279
Description
Hi there,
This may be a trivial issue, but is there a way to use elements defined in the xaringan css with parameters? To make an easy example, .pull-left and .pull-right are defined to have width: 47% (I think that's the default value, not the one that I have made default...). Anyway, of course one can redefine them globally, eg by setting the width to a different value (but, as I understand it, this applies to all .pull-* elements throughout the slides), or by defining new elements, say .my-pull-* with set widths (different than the default).
But I wonder whether you can do something like I believe is possible in quarto, which mimics LaTeX and defines a general "environment" columns, under which you place suitable column where you can specify the width, eg
::: {.columns}
::: {.column width="20%"}
XXX
:::
::: {.column width="80%"}
YYY
:::
:::
say, something like
.pull-left[XXX]{width="20%"}
or something?
It may well be a trivial thing to do --- I am probably not that good with css to figure out myself...
Thanks for your help!
Gianluca
By filing an issue to this repo, I promise that
- I have fully read the issue guide at https://yihui.org/issue/.
- I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('xaringan'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/xaringan'). - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.