Replies: 3 comments 4 replies
-
To quote myself from #3608
PS: try to use the search engine first 😉 |
Beta Was this translation helpful? Give feedback.
-
@rressler this should work, isn't it ? ---
format: revealjs
---
## Slide 1
::: {.panel-tabset}
### Tab A
{fig-align=center}
### Tab B
Content for `Tab B`
::: As show in doc (https://quarto.org/docs/authoring/figures.html#figure-alignment), it is |
Beta Was this translation helpful? Give feedback.
-
Thanks Christophe and Mickael.
I turned out to be simpler. I had three figures – two on the first line and one on the second. I needed to add a blank line between the images or the fig-align does not matter as it is trying to fill all three on one line and running over- so you can’t see any centering.
I see the examples in the guide show a blank line between the pictures so I should have picked up on that.
I did search for my issue but did not find anything specific to revealjs so II did not see the solutions about text and columns. That will be helpful in the future I am sure.
Thanks,
Richard
From: Mickaël Canouil ***@***.***>
Date: Monday, February 6, 2023 at 8:09 AM
To: quarto-dev/quarto-cli ***@***.***>
Cc: Richard Ressler ***@***.***>, Mention ***@***.***>
Subject: Re: [quarto-dev/quarto-cli] Center figure in tabset in revealjs (Discussion #4239)
External Email: Use caution with links and attachments.
Oh, I missed that. 🤦♂️
Thus it should work but without the leading dot.
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/quarto-dev/quarto-cli/discussions/4239*discussioncomment-4882237__;Iw!!IaT_gp1N!wamAz8X1XGRTgHJLbNcTIcg-Y0FsnySboE_PsjeKbXab3uZnf_r7drIbRR8YGx8B-G1e2fRiYgQndCXMpVsFJJxXz60$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AOCMN3JGNFORZ6QJ27LZEZLWWDZXXANCNFSM6AAAAAAUSGB55Y__;!!IaT_gp1N!wamAz8X1XGRTgHJLbNcTIcg-Y0FsnySboE_PsjeKbXab3uZnf_r7drIbRR8YGx8B-G1e2fRiYgQndCXMpVsF3I7zReg$>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to center .png images in a panel-tabset on a slide and the images are always left aligned. I have tried using a {.fig-align="center"} after the image but it seems to be ignored. Do I need to create a new class and use important to override the panel class alignment?
Thanks
Richard
Beta Was this translation helpful? Give feedback.
All reactions