From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/xsavebox/README.md | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 macros/latex/contrib/xsavebox/README.md (limited to 'macros/latex/contrib/xsavebox/README.md') diff --git a/macros/latex/contrib/xsavebox/README.md b/macros/latex/contrib/xsavebox/README.md new file mode 100644 index 0000000000..61d91bfa99 --- /dev/null +++ b/macros/latex/contrib/xsavebox/README.md @@ -0,0 +1,50 @@ +# The `xsavebox` LaTeX 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 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 + +## User commands + +* content saving: + +````latex +\xsavebox{}[][]{...} +\xsavebox*{}[][]{...} + +\xsbox{}{...} + +\begin{xlrbox}{}...\end{xlrbox} +\begin{xlrbox*}{}...\end{xlrbox*} +```` + +`` is an identifier (not a command!) composed of arbitrary non-active characters, including spaces and numbers. A command for the declaration of `` does not exist. + +Starred (`*`) variants allow for colour injection (pdfLaTeX/LuaLaTeX only). + +* content insertion (referencing): + +````latex +\xusebox{} +\the +```` + +The second, short form is useable if `` is composed of `[a-zA-Z]`. + + +The package was written in the LaTeX3 syntax. + +## License + +This material is subject to the [LaTeX Project Public License](http://mirrors.ctan.org/macros/latex/base/lppl.txt). -- cgit v1.2.3