Learn R Programming

⚠️There's a newer version (2.1.0) of this package.Take me there.

texPreview

Preview and save images of rendered snippets of LaTeX in RStudio viewer

  • Must have pdflatex in PATH (Windows users can install by running the following in R: install.packages("installr"); installr::install.MikTeX())

  • Supports Tabular, equations and other LaTex functionalities.

  • Load TeX packages

  • Input Preamble

  • Supports xtable inputs

  • Defined as Rstudio Addin so user can highlight text in the editor and invoke preview automatically.

  • Can be run in a rmarkdown enviornment pdf/html/book/beamer/ioslides/slidy/revealjs ...

  • Can be run in a shiny enviornment, as shiny::renderImage or as part of htmlwidgets like bsplus::carousel, loryR::renderLoryR and slickR::renderSlickR.

When the output is set to 'svg' the default output to the viewer is svgPanZoom, which allows for panning and zooming on the image in the viewer. If the package is not installed a static image will be loaded.

Copy Link

Version

Install

install.packages('texPreview')

Monthly Downloads

2,537

Version

1.2.3

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jonathan Sidi

Last Published

October 25th, 2018

Functions in texPreview (1.2.3)

build_usepackage

Build usepackage command for TeX document
get_texpackages

Get list of TeX packages installed on System
texPreview

Render and Preview snippets of TeX in R Viewer
tex_opts

Default and current tex options