pfmc-assessments / sa4ss

Generate a stock assessment document from Stock Synthesis output
https://pfmc-assessments.github.io/sa4ss/
Other
12 stars 7 forks source link

Subscripts and superscripts in table names #54

Closed brianlangseth-NOAA closed 3 years ago

brianlangseth-NOAA commented 3 years ago

Table editing is tricky when getting comments back from STAR panel chairs who are used to fixes being easy if in word. How do I add subscript/superscript within table row or column names? Ive tried T\\textsubscript{MIN}, T\~MIN\~ but neither work. Currently Im not using save_kable, is this the issue?

brianlangseth-NOAA commented 3 years ago

Figured this out. Use T\\textsubscript{MIN} for pdf latex. Tilde's do not work (markdown shouldn't go into Latex). The key issue is to use escape = FALSE within formatting the table (within the table_format) call. Can use with or without save_kable.