StatsReporting / stargazer

Python implementation of the R stargazer multiple regression model creation tool
Other
197 stars 48 forks source link

Custom latex strings aren't passed correctly to latex output #35

Closed MaxGhenis closed 4 years ago

MaxGhenis commented 4 years ago

e.g. stargazer.custom_columns('\beta') produces this latex (notebook):

\\multicolumn{2}{c}{\x08eta}

It seems like this might be happening because it's first parsed as HTML? image

toobaz commented 4 years ago

e.g. stargazer.custom_columns('\beta')

In this code, the backslash is never recorded as such, as \b is read as an escaped character, and stargazer can't do anything about it.

Try stargazer.custom_columns('\\beta') or stargazer.custom_columns(r'\beta').