harrelfe / Hmisc

Harrell Miscellaneous
Other
205 stars 81 forks source link

Stratify variable not escaped in latex #113

Open potash opened 5 years ago

potash commented 5 years ago

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.