texPreview v1.4.3

0

Monthly downloads

0th

Percentile

Compile and Preview Snippets of 'LaTeX'

Compile snippets of 'LaTeX' directly into images from the R console to view in the 'RStudio' viewer pane, Shiny apps and 'RMarkdown' documents.

Readme

CRAN\_Status\_Badge Project Status: Active - The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status Coverage Status Covrpage Summary

texPreview

Efficiently iterate, refine and share snippets of LaTeX in R with ease.

texPreview compiles LaTeX directly into images from the R console to view in the RStudio viewer pane, Shiny apps and RMarkdown documents.

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

Functions in texPreview

Name Description
getTexPackages Get list of TeX packages installed on System deprecated
texPreview Render and Preview snippets of TeX in R Viewer deprecated
tex_opts Default and current tex options
as.kable Try to coerce an object into a knitr_kable object
buildUsepackage Build usepackage command for TeX document deprecated
get_texpackages Get list of TeX packages installed on System
tex_preview Render and Preview snippets of TeX in R Viewer
%>% re-export magrittr pipe operators
build_usepackage Build usepackage command for TeX document
No Results!

Vignettes of texPreview

Name
classes.Rmd
kable.Rmd
rmarkdown.Rmd
slickr.Rmd
tests_and_coverage.Rmd
tex_packages.Rmd
tikz.Rmd
No Results!

Last month downloads

Details

Type Package
Date 2019-12-10
License GPL-2 | GPL-3
URL https://github.com/metrumresearchgroup/texPreview
BugReports https://github.com/metrumresearchgroup/texPreview/issues
VignetteBuilder knitr
RdMacros details, lifecycle
LazyData false
NeedsCompilation no
RoxygenNote 6.1.1
Packaged 2019-12-11 23:11:42 UTC; yonis
Repository CRAN
Date/Publication 2019-12-12 07:10:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/texPreview)](http://www.rdocumentation.org/packages/texPreview)