qPharmetra / qpToolkit

Tools for population PK modeling, visualization, and reporting
Other
1 stars 1 forks source link

new functions for latex floats #34

Open bergsmat opened 4 years ago

bergsmat commented 4 years ago

I really wish there were a hot key to insert a table or figure block in a report, with all the header, footer, label, etc… stuff in place. Instead I find myself trying to find a particular example to copy paste. We could, however, make a function(s) in the toolkit that output an entire LaTeX block. Then you have a choice, stick it in a verbatim chunk and pass all the parameters to it, or run it in the console and copy the LaTeX up to the report for modification.

like example.latex.figure; example.latex.table etc… . Per Jason (buglist)

bergsmat commented 4 years ago

An important point. It makes me think of the output options for knitr chunks. perhaps one of them could be co-opted or emulated to do some heavy lifting. It also reminds me of latexpdf, an R package I wrote to create drag-and-drop tables. In fact, latexpdf::as.tabular() and latexpdf::as.ltable() may be highly relevant. https://cran.r-project.org/web/packages/latexpdf/vignettes/tabular.pdf