hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
321 stars 28 forks source link

quick_latex #101

Closed nikolassch closed 5 years ago

nikolassch commented 5 years ago

As already mentioned in this thread (https://github.com/hughjonesd/huxtable/issues/81), it would be great to be able to export a tex file which then can be used in an external latex editor (in particular overleaf). I tried my_table %>% to_latex(tabular_only = F) %>% write(file = "output.tex") and included the packages from the report_latex_dependencies() but the document won't compile.

In the end, it is not realistic to write larger projects in markdown so being able to export it properly would be very important!

hughjonesd commented 5 years ago

Could you give me a more precise problem than “the document won’t compile“? An example of the document, and the error messages from TeX, would be great.

hughjonesd commented 5 years ago

In any case, I think quick_latex() is probably a good idea. Implemented in master on github. Please try out with remotes::install_github("hughjonesd/huxtable") if you can.