CTAN Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/xsavebox

README.md

The xsavebox Pack­age

© 2016–\today Alexan­der Grahn

https://git­lab.com/agrahn/xsave­box

De­scrip­tion

This pack­age de­fines com­mands for sav­ing con­tent that can be re­peat­edly placed into the doc­u­ment with­out repli­cat­ing DVI/PDF code in the out­put file, al­low­ing for smaller file size of the fi­nal PDF and im­proved con­tent caching for faster dis­play in cer­tain PDF view­ers. The method makes use of "Form XOb­jects" de­fined in the PDF spec­i­fi­ca­tion.

The user com­mands are mod­elled af­ter the stan­dard com­mands \savebox, \sbox, \usebox and the lrbox en­vi­ron­ment.

All com­mon en­gines and back-ends are sup­ported:

  • pdf, Lua
  • ⇒ dvips ⇒ ps2pdf/Dis­tiller
  • (Xe) ⇒ (x)dvipdfmx

User com­mands

  • con­tent sav­ing:
\xsavebox{<name>}[<width>][<position>]{...}
\xsavebox*{<name>}[<width>][<position>]{...}

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

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

<name> is an iden­ti­fier (not a com­mand!) com­posed of ar­bi­trary non-ac­tive char­ac­ters, in­clud­ing spaces and num­bers. A com­mand for the dec­la­ra­tion of <name> does not ex­ist.

Starred (*) vari­ants al­low for colour in­jec­tion (pdf/Lua only).

  • con­tent in­ser­tion (ref­er­enc­ing):
\xusebox{<name>}
\the<name>

The sec­ond, short form is use­able if <name> is com­posed of [a-zA-Z].

The pack­age was writ­ten in the 3 syn­tax.

Li­cense

This ma­te­rial is sub­ject to the Project Public Li­cense.

Down­load the con­tents of this pack­age in one zip archive (371.8k).

xsave­box – Save­boxes for re­peat­ing con­tent with­out code repli­ca­tion, based on PDF Form XOb­jects

The pack­age de­fines com­mands for sav­ing con­tent that can be re­peat­edly placed into the doc­u­ment with­out repli­cat­ing DVI/PDF code in the out­put file, al­low­ing for smaller file size of the fi­nal PDF and im­proved con­tent caching for faster dis­play in cer­tain PDF view­ers. The method makes use of ‘Form XOb­jects’ de­fined in the PDF spec­i­fi­ca­tion.

The user com­mands are mod­elled af­ter the stan­dard com­mands \save­box, \sbox, \use­box and the lr­box en­vi­ron­ment.

All com­mon en­gines and back-ends are sup­ported:

  • pdf, Lua
  • → dvips → ps2pdf/Dis­tiller
  • (Xe) → (x)dvipdfmx

Pack­agexsave­box
Re­pos­i­toryhttps://git­lab.com/agrahn/xsave­box
Ver­sion0.13 2019-06-24
Li­censesThe Project Public Li­cense 1.3
Copy­right2016–2019 Alexan­der Grahn
Main­tainerAlexan­der Grahn
TDS archivexsavebox.tds.zip
Con­tained inTeX Live as xsave­box
MiKTeX as xsave­box
TopicsBox­ing
Adobe Dis­tiller
PDF fea­tures
...
Guest Book Sitemap Contact Contact Author