| 1 |
==================================== |
| 2 |
The xsavebox LaTeX Package |
| 3 |
|
| 4 |
https://gitlab.com/agrahn/xsavebox |
| 5 |
|
| 6 |
(C) 2016--\today Alexander Grahn |
| 7 |
==================================== |
| 8 |
|
| 9 |
|
| 10 |
This package defines commands for saving content that can be repeatedly |
| 11 |
placed into the document without replicating DVI/PDF code in the output |
| 12 |
file, allowing for smaller file size of the final PDF and improved content |
| 13 |
caching for faster display in certain PDF viewers. The method makes use of |
| 14 |
`Form XObjects' defined in the PDF specification. |
| 15 |
|
| 16 |
The user commands are modelled after the standard LaTeX commands \savebox, |
| 17 |
\sbox, \usebox and the `lrbox' environment. |
| 18 |
|
| 19 |
All common TeX engines and back-ends are supported: |
| 20 |
|
| 21 |
* pdfLaTeX, LuaLaTeX |
| 22 |
* LaTeX --> dvips --> ps2pdf/Distiller |
| 23 |
* (Xe)LaTeX --> (x)dvipdfmx |
| 24 |
* LaTeX --> dvisvgm |
| 25 |
|
| 26 |
The user commands are: |
| 27 |
|
| 28 |
* content saving: |
| 29 |
|
| 30 |
\xsavebox{<name>}[<width>][<position>]{...} |
| 31 |
\xsavebox*{<name>}[<width>][<position>]{...} |
| 32 |
|
| 33 |
\xsbox{<name>}{...} |
| 34 |
|
| 35 |
\begin{xlrbox}{<name>}...\end{xlrbox} |
| 36 |
\begin{xlrbox*}{<name>}...\end{xlrbox*} |
| 37 |
|
| 38 |
<name> is an identifier (not a command!) composed of arbitrary |
| 39 |
non-active characters, including spaces and numbers. A command for |
| 40 |
the declaration of <name> does not exist. |
| 41 |
|
| 42 |
Starred `*' variants allow for colour injection (pdfLaTeX/LuaLaTeX |
| 43 |
only). |
| 44 |
|
| 45 |
* content insertion (referencing): |
| 46 |
|
| 47 |
\xusebox{<name>} |
| 48 |
\the<name> |
| 49 |
|
| 50 |
The second, short form is useable if <name> is composed of [a-zA-Z]. |
| 51 |
|
| 52 |
|
| 53 |
The package was written in the LaTeX3 syntax. |
| 54 |
|
| 55 |
|
| 56 |
License: |
| 57 |
|
| 58 |
This material is subject to the LaTeX Project Public License. See |
| 59 |
|
| 60 |
http://mirrors.ctan.org/macros/latex/base/lppl.txt |
| 61 |
|
| 62 |
for the details of that license. |