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

Functionality

  • Supports: character, knitr, kableExtra, xtable, texreg, equatiomatic classes

  • Extendable: S3 methods can be written for the main call, texPreview::tex_preview, to use with new classes for rendering and printing.

  • Rstudio Addin: Users can highlight text in the editor and invoke preview automatically.

  • RMarkdown document compatible with all document outputs

  • Shiny compatible via shiny::renderImage or as part of htmlwidgets like slickR::slickR.

  • Pan and Zoom functionality: When the output is set to 'svg' the default output to the viewer is svgPanZoom::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.

  • System Requirements:

    • Must have pdflatex in PATH, Windows users can install by running installr::install.MikTeX
    • TeX libraries that are used: standalone, xcolor, booktabs, multirow, array, helvet, amsmath, rotating, listings, graphicx, setspace, caption

Examples

Basic

Pan/Zoom

Copy Link

Version

Install

install.packages('texPreview')

Monthly Downloads

2,049

Version

1.4.2

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jonathan Sidi

Last Published

December 5th, 2019

Functions in texPreview (1.4.2)

%>%

re-export magrittr pipe operators
as.kable

Try to coerce an object into a knitr_kable object
texPreview

Render and Preview snippets of TeX in R Viewer deprecated
tex_opts

Default and current tex options
getTexPackages

Get list of TeX packages installed on System deprecated
buildUsepackage

Build usepackage command for TeX document deprecated
build_usepackage

Build usepackage command for TeX document
get_texpackages

Get list of TeX packages installed on System
tex_preview

Render and Preview snippets of TeX in R Viewer