Replies: 3 comments 2 replies
-
Use itables to format the output, it's all described in the documentation, for example:
You're gonna need to disable Quarto table processing (see https://quarto.org/docs/prerelease/1.3/tables.html#html-tables-are-now-processed-in-every-format): show(get_countries(), attrs="data-quarto-disable-processing='true'") |
Beta Was this translation helpful? Give feedback.
-
Hey @mcanouil , thank you for your answer. Very helpful indeed. What do you think of this?
(see also the full example at https://github.com/mwouts/itables/blob/document_quarto/docs/quarto/quarto_revealjs.qmd) The font size seems to work well, however I am not sure that the Re
|
Beta Was this translation helpful? Give feedback.
-
I see. I will add the support for the One more question and then I'll be done. In the revealjs slides that I have generated here, the table appears with the expected dimensions first, but if I reload the page, it becomes much wider. That's a pattern that I have also seen with Plotly plots. The first time the plot is displayed, the dimensions are not always right, but when I refresh the page the dimensions become right. Is this a behavior (different size on reload) that you have experienced already? Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi, I am trying to provide examples on how to use
itables
in Quarto documents (see this question).I find that
itables
works very well in Quarto HTML documents, with e.g.It also works well in Quarto RevealJS documents, however I find that I need to adjust the document dimensions manually if I want the table to fit within the page:
Maybe changing the document size is not the best approach? Can you think of better alternatives?
I have tried using a
~~~{.smaller}
paragraph around theshow
command, but that was not enough. Also I was thinking that maybe we could show less rows by default withitables
'slengthMenu
command. Any other recommendations on this? Do you have to do anything special to adjust the size of the table shown in the revealjs demo?Beta Was this translation helpful? Give feedback.
All reactions