zrefPackage: LaTeX Package zref.

View source: R/zref.R

zref PackageR Documentation

LaTeX Package zref.

Description

Define a LaTeXPackage for the LaTeX zref package.

Usage

zrefPackage()

Details

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

This allows commands like \zsavepos{label} to be included in LaTeX snippets when calling grid.latex.

A new command, \xdvirzmark{label}, is defined to allow saved positions also to be recorded in the rendered LaTeX in R. This produces nullGrob objects at the relevant locations plus anchors (for justification) at the relevant locations.

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

Value

A "LaTeXpackage" object.

Author(s)

Paul Murrell

Examples

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

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