When calling latex() on a summary table that used stratify(), the caption includes a message about the stratification and this message gets appended to any caption that is manually specified through the caption argument to latex().
The issue is that this automatically generated caption does not escape underscores in the the stratified variable.
As a result, I am unable to produce a working latex output when the summary was stratified by a variable with an underscore.
When calling
latex()
on a summary table that usedstratify()
, the caption includes a message about the stratification and this message gets appended to any caption that is manually specified through thecaption
argument tolatex()
.The issue is that this automatically generated caption does not escape underscores in the the stratified variable.
As a result, I am unable to produce a working latex output when the summary was stratified by a variable with an underscore.