CTAN Comprehensive TeX Archive Network

Verzeichnis macros/latex/contrib/xsavebox

README.md

The xsavebox Package

© 2016–\today Alexander Grahn

https://gitlab.com/agrahn/xsavebox

Description

This package defines commands for saving content that can be repeatedly placed into the document without replicating DVI/PDF code in the output file, allowing for smaller file size of the final PDF and improved content caching for faster display in certain PDF viewers. The method makes use of "Form XObjects" defined in the PDF specification.

The user commands are modelled after the standard commands \savebox, \sbox, \usebox and the lrbox environment.

All common engines and back-ends are supported:

  • pdf, Lua
  • ⇒ dvips ⇒ ps2pdf/Distiller
  • (Xe) ⇒ (x)dvipdfmx
  • ⇒ dvisvgm

User commands

  • content saving:
\xsavebox{<name>}[<width>][<position>]{...}
\xsavebox*{<name>}[<width>][<position>]{...}

\xsbox{<name>}{...}

\begin{xlrbox}{<name>}...\end{xlrbox}
\begin{xlrbox*}{<name>}...\end{xlrbox*}

<name> is an identifier (not a command!) composed of arbitrary non-active characters, including spaces and numbers. A command for the declaration of <name> does not exist.

Starred (*) variants allow for colour injection (pdf/Lua only).

  • content insertion (referencing):
\xusebox{<name>}
\the<name>

The second, short form is useable if <name> is composed of [a-zA-Z].

The package was written in the 3 syntax.

License

This material is subject to the Project Public License.

Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (375.0k).

xsavebox – Saveboxes for repeating content without code replication, based on PDF Form XObjects

The package defines commands for saving content that can be repeatedly placed into the document without replicating DVI/PDF code in the output file, allowing for smaller file size of the final PDF and improved content caching for faster display in certain PDF viewers. The method makes use of ‘Form XObjects’ defined in the PDF specification.

The user commands are modelled after the standard commands \savebox, \sbox, \usebox and the lrbox environment.

All common engines and back-ends are supported:

  • pdf, Lua
  • → dvips → ps2pdf/Distiller
  • (Xe) → (x)dvipdfmx

Paketxsavebox
Repositoryhttps://gitlab.com/agrahn/xsavebox
Version0.18 2022-08-04
LizenzenThe Project Public License
Copyright2016–2022 Alexander Grahn
BetreuerAlexander Grahn
TDS-Archivxsavebox.tds.zip
Enthalten inTeX Live als xsavebox
MiKTeX als xsavebox
ThemenPDF-Eigenschaften
Adobe Distiller
Expl3
Boxing
...
Gästebuch Seiten-Struktur Impressum Autor kontaktieren