Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create latex rules #851

Closed
plukethep opened this issue Nov 11, 2021 · 0 comments · Fixed by #1371
Closed

Unable to create latex rules #851

plukethep opened this issue Nov 11, 2021 · 0 comments · Fixed by #1371

Comments

@plukethep
Copy link

plukethep commented Nov 11, 2021


I'm currently working on implementing latex column widths, which, when combined with alignments, are a little fiddly. I would like to use to align right a column, by declaring a new column type:

\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment