You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't see this feature requested anywhere, so thought I'd suggest it. I noted today that flextable doesn't seem to work with Beamer slides, but does with with PDF output. Since both are LaTeX format, it seems that it might not be too hard to add support for Beamer, although I've often found that "it might not be too hard" is optimistic---there's often a good reason it hasn't been done if it hasn't been done.
In any case, I did find that if I edited the printers.R file to change line 138 from
} else if (grepl("latex", opts_knit$get("rmarkdown.pandoc.to"))) {
to
} else if (grepl("latex|beamer", opts_knit$get("rmarkdown.pandoc.to"))) {`
then I got "mostly" working functionality with format: beamer in Quarto and output: beamer_presentation in R Markdown. I needed to add \usepackage{hhline} by hand to the beginning of the Beamer document. It looks like there might be functionality in Flextable to do that, but I haven't delved that deep yet. I also had an intermittent issue with frames needing to be set as "fragile" in order to compile in xelatex. It didn't happen in my small test examples, but only in my bigger documents, so hard to give a small reproducible example for testing. But, in any case, writing
## New Slide {.fragile}
in the quarto document fixed that problem.
So, I'm very happy that I have a functional solution for myself, as long as I'm willing to add a few tweaks, but thought I'd pass the suggestion along. Thanks for making seemingly the only table package that lets me make a cross-format table with both equations and hlines where I want them!
The text was updated successfully, but these errors were encountered:
Very interesting! I submitted this because I was getting no table output at all in Beamer yesterday. My test file worked in PDF, HTML, PPTX and DOCX, so I assumed Beamer just wasnt supported, especially after seeing "latex", but not "beamer" mentioned explicitly in flextable_to_rmd. Sorry for making the wrong assumption.
Yesterday, I was on someone else's computer, but today on my computer, your code above and my test code from yesterday produce tables as images, which looks like what would be expected. I'll have to see what was up on that other machine, and if I find anything that actually looks like a bug, I'll submit it with a minimal code example.
I could see keeping this as a feature request, since natively-generated tables in Beamer would likely be preferable to images, if there weren't too many obstacles to overcome. If I go further than experimentally changing one line of code, I'll submit the changes back for consideration, but that might be beyond my skill level.
I didn't see this feature requested anywhere, so thought I'd suggest it. I noted today that
flextable
doesn't seem to work with Beamer slides, but does with with PDF output. Since both are LaTeX format, it seems that it might not be too hard to add support for Beamer, although I've often found that "it might not be too hard" is optimistic---there's often a good reason it hasn't been done if it hasn't been done.In any case, I did find that if I edited the
printers.R
file to change line 138 fromto
then I got "mostly" working functionality with
format: beamer
in Quarto andoutput: beamer_presentation
in R Markdown. I needed to add\usepackage{hhline}
by hand to the beginning of the Beamer document. It looks like there might be functionality in Flextable to do that, but I haven't delved that deep yet. I also had an intermittent issue with frames needing to be set as "fragile" in order to compile in xelatex. It didn't happen in my small test examples, but only in my bigger documents, so hard to give a small reproducible example for testing. But, in any case, writingin the quarto document fixed that problem.
So, I'm very happy that I have a functional solution for myself, as long as I'm willing to add a few tweaks, but thought I'd pass the suggestion along. Thanks for making seemingly the only table package that lets me make a cross-format table with both equations and hlines where I want them!
The text was updated successfully, but these errors were encountered: