lrberge / fixest

Fixed-effects estimations
https://lrberge.github.io/fixest/
362 stars 59 forks source link

notes section misplaced if used with style.tex argument adjustbox = TRUE #406

Open m0byn opened 1 year ago

m0byn commented 1 year ago

When setting adjustbox = TRUE in the style.tex function, then the notes section is misplaced. I want my table to fit on one page, so I set adjustbox = TRUE in style.tex. Furthermore, I want to include a custom notes/footer below the table in size \footnotesize. I tried the following:

  1. In style.tex set tablefoot = FALSE and include a custom notes section in etable as: notes = c('\footnotesize \emph{Newey-West (HAC) standard errors in parentheses. $^{}: p<0.01$, $^{}: p<0.05$, $^{}: p<0.1$. } followed by some non italic notes.

Problem: the note does not show below the table, but centered on the right side of it. Notes

Apparently, something is interfering with the adjustbox tag...

I tried quickly to set \end{tabular} below the note. Then, however, the note is included in the first column, which extends the first column to the length of the notes. Also, in my opinion, if no footer is set, but notes are, then the \tabularnewline should not be included. See here: Notes_below

  1. In style.tex set tablefoot = TRUE and tablefoot.value = custom.footer, but do not include a custom notes section in etable. Then, line breaks do not automatically happen. So, line breaks have to be set manually by custom.footer = c('setting every line', 'to be shown', 'as a character element of the vector'). Then, however, every line is shown in italic!

What I want: I want to include a custom notes/footer right below the table in size \footnotesize where some parts are shown in italic, whereas others are not. Also, line breaks should happen automatically. I actually do not care whether it is achievable by using notes or footer.

If anything is unclear please let me know and I will try to clarify!