Does anyone know how to place a formula, a (weird) character, or words in italic within a sentence of a footnote of a table?
I'm creating a pdf file with Rmarkdown and kableExtra. But stuff like $Y_{t-1}$
or $p < .001$
(since I want the p
to be italic) does not work. Or should I really learn xtable?
The trick is 1. to escape latex code and special characters four times, e.g.
\\\\frac
, 2. to set optionescape=FALSE
infootnote()
.Yields: