Gt: `gt::latex` for regional modification for LaTex outputs?

Created on 13 Feb 2019  Â·  1Comment  Â·  Source: rstudio/gt

Given the gt::md and gt::html, could I suggest an additional input-output converter gt::latex? In version 0.1.0, plain latex codes are escaped, e.g., inputting \\ becoming \textbackslash in the output. In some cases, though, it would be useful to call for the LaTex functions. For example, right now if the content is in double-space, so do the notes from the tab_source_note. It will be wonderful to have a gt::latex function allowing users to create a local single-space environment to make those notes more like notes rather than paragraphs after the table by something liketab_source_note(latex("\\parbox{\\linewidth}{\\vspace{2pt} The single-space notes.}")).

This suggestion may relate to other suggestions to improve LaTex outputs, such as in #111, #119, and #176.

[2] Intermediate [2] Medium [2] Medium ★ Enhancement

Most helpful comment

This is a great idea, thanks for submitting the issue. There will be some efforts toward having LaTeX functionality be more consistent with HTML and this will be part of that.

>All comments

This is a great idea, thanks for submitting the issue. There will be some efforts toward having LaTeX functionality be more consistent with HTML and this will be part of that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rich-iannone picture rich-iannone  Â·  5Comments

tbradley1013 picture tbradley1013  Â·  3Comments

higgi13425 picture higgi13425  Â·  4Comments

jenniferp96 picture jenniferp96  Â·  4Comments

mine-cetinkaya-rundel picture mine-cetinkaya-rundel  Â·  4Comments