previewPackage: LaTeX Package preview.

View source: R/preview.R

preview PackageR Documentation

LaTeX Package preview.

Description

Define a LaTeXPackage for the LaTeX preview package.

Usage

previewPackage()

Details

This function creates a "LaTeXpackage" object that provides support for the LaTeX preview package.

This adds a "preview-baseline" anchor to use for aligning the rendered LaTeX in R.

A predefined package is pre-registered under the name "preview".

Value

A "LaTeXpackage" object.

Warning

This package wraps LaTeX snippets in a preview environment, which may not work for complex LaTeX snippets.

Author(s)

Paul Murrell

Examples

cat(author("test", packages="preview"), sep="\n")

xdvir documentation built on Aug. 8, 2025, 7:12 p.m.