You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on improving the latex output of gt. It's a great project and I'm keen to use it for my work.
I'm currently working on implementing column widths, which, when combined with alignments, are a little fiddly in latex. I would like to use to align right a column:
or similar. I can inline this, but multiple tables would lead to multiple declarations, and I would would prefer to add the \newcolumn or \newcommand latex functions to the pre-body of the tex file just the once.
gt_latex_dependencies() in helper.R appears to do what I want, but it doesn't appear to be functioning. Am I missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm working on improving the latex output of gt. It's a great project and I'm keen to use it for my work.
I'm currently working on implementing column widths, which, when combined with alignments, are a little fiddly in latex. I would like to use to align right a column:
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
or similar. I can inline this, but multiple tables would lead to multiple declarations, and I would would prefer to add the
\newcolumn
or\newcommand
latex functions to the pre-body of the tex file just the once.gt_latex_dependencies()
inhelper.R
appears to do what I want, but it doesn't appear to be functioning. Am I missing something?Beta Was this translation helpful? Give feedback.
All reactions