kww_AU
kww_AU

Reputation: 11

Long and short captions using texreg in R Markdown

I am generating regression output tables from several regression models using the TexReg package in R Markdown. Is there a way to supply texreg with both long and short captions?

When writing in straight LaTeX, I can do \caption[short caption for ToC]{Longer caption in document}. However, when attempting to automate the process in TexReg, I can only get it to let me supply the long caption.

i.e.

t1 <- texreg(list(mod_1, mod_2),
caption = 'Brief Description')

becomes \caption{Brief Description} but

t1 <- texreg(list(mod_1, mod_2),
caption = '[Brief Description]{Long Description}')

becomes \caption{[Brief Description]{Long Description}}.

I have tried supplying TexReg with vectors of character strings and lists but that doesn't seem to work either...

Upvotes: 1

Views: 148

Answers (0)

Related Questions