CTAN Comprehensive TeX Archive Network

New on CTAN: xsavebox

Date: February 27, 2016 5:46:13 AM CET
Alexander Grahn submitted the xsavebox package. Version number: 0.1 2016-02-13 License type: lppl1.3 Summary description: Saveboxes for repeating content without code replication, based on PDF Form XObjects Announcement text:
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 LaTeX commands \savebox, \sbox, \usebox and the `lrbox' environment. All common TeX engines and back-ends are supported: * pdfLaTeX, LuaLaTeX * LaTeX --> dvips --> ps2pdf/Distiller * (Xe)LaTeX --> (x)dvipdfmx The user commands are: * 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 declaration of <name> does not exist. Starred `*' variants allow for colour injection (pdfLaTeX/LuaLaTeX 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 LaTeX3 syntax.
This package is located at http://mirror.ctan.org/macros/latex/contrib/xsavebox More information is at http://www.ctan.org/pkg/xsavebox We are supported by the TeX user groups. Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Manfred Lotz

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

Packagexsavebox
Version0.18 2022-08-04
Copyright2016–2022 Alexander Grahn
MaintainerAlexander Grahn

Announcements

more

Guest Book Sitemap Contact Contact Author