I am generating a number of graphs and latex files, where I want to use the variable label as the label in the table (and graphs). But the labels will frequently have a % sign in them. To illustrate:
Note that the label "% price" works fine in the twoway graph, but in the "example.tex" file, the % turns into a latex comment as it is not properly escaped.
Is there any way around this or estout features I am missing?
I realize I can use:
which fixes the latex issue, but it breaks the graphs. It would be a pain to constantly switch back and forh.
Code:
sysuse auto label variable price "% price" twoway (scatter price mpg) eststo: quietly regress price weight mpg esttab using example.tex, replace label
Is there any way around this or estout features I am missing?
I realize I can use:
Code:
label variable price "\% price"
Comment