Replies: 2 comments 1 reply
-
Your example (that I edited to format correctly) only provide table as a Raw LaTeX block. So this block won't be shown in output other than LaTeX output (so Table and
How did you get the HTML version ?
You should have a look to gt which has table footnote element (https://gt.rstudio.com/reference/tab_footnote.html). flextable also have a function for this: https://davidgohel.github.io/flextable/reference/footnote.html |
Beta Was this translation helpful? Give feedback.
-
Hi Christophe, Thanks for fixing my formatting. I tried to use ```qmd but then the next ```, which should end ```{=latex}, ended up ending my ```qmd... "Table and \footnotetext command are LaTeX and will be ignored in HTML or MS Word. Why do you expect any output ?" "Are you using any other conditional and table format ?" "How did you get the HTML version ?" Here is my project:
type: manuscript
render:
- "*.qmd"
- "!pyvenv_csvo/"
execute:
freeze: auto
format:
html:
embed-resources: true
toc: true
comments:
hypothesis: true
docx: default
jats: default
nature-pdf:
journal: "sn-nature"
keep-tex: true
filters:
- parse-latex I get the HTML version when I preview (as it is default) and when I render. I have looked at gt. While I understand (I think) how to make a table from an r dataframe, it's not as clear to me how to create a table like I would using simple markdown formatting or latex. I know I can make a table in markdown, then load using Flextable looks excellent... but I think I may still have the issue with adding latex symbols... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have the above in my index.qmd file
When I render to pdf, I see the footnote under my table just as I would like it.
However, if I render to HTML or MS Word it is gone.
Is there any way to get this to work for both?
PDF version:

HTML version:

I've tried formatting my tables in Markdown, HTML, R (kableExtras, gt) but I keep coming back to LaTeX as I feel I have the most control.
Any advice?
The other problem I was having was creating line-breaks in cells. I was using \makecell[tl] but that caused issues in HTML so I just gave up on controlling that...
Beta Was this translation helpful? Give feedback.
All reactions