summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-06-08 22:04:36 +0000
committerKarl Berry <karl@freefriends.org>2018-06-08 22:04:36 +0000
commit30bd80ce277f040d4f6514d7bd1df35e1dc9a8c4 (patch)
treeaf461f27297eade30ce3b8e6894a897a06b7f451 /Master
parent03114a8e8ce56c546d59cd0851c12bd735a53096 (diff)
xsavebox (9jun18)
git-svn-id: svn://tug.org/texlive/trunk@47962 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/xsavebox/ChangeLog4
-rw-r--r--Master/texmf-dist/doc/latex/xsavebox/README2
-rw-r--r--Master/texmf-dist/doc/latex/xsavebox/xsavebox.pdfbin369406 -> 369205 bytes
-rw-r--r--Master/texmf-dist/source/latex/xsavebox/xsavebox.tex4
-rw-r--r--Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty28
5 files changed, 21 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/xsavebox/ChangeLog b/Master/texmf-dist/doc/latex/xsavebox/ChangeLog
index 8176e20f08d..13b0a587a89 100644
--- a/Master/texmf-dist/doc/latex/xsavebox/ChangeLog
+++ b/Master/texmf-dist/doc/latex/xsavebox/ChangeLog
@@ -1,3 +1,7 @@
+2018-06-07
+ * v0.11
+ * fix: some cs now def'ed as `protected'; documentation fixed
+
2018-03-29
* v0.10
* fix: preventing creation of unused XObjects; doc updated
diff --git a/Master/texmf-dist/doc/latex/xsavebox/README b/Master/texmf-dist/doc/latex/xsavebox/README
index 7e300589813..da7ccb96864 100644
--- a/Master/texmf-dist/doc/latex/xsavebox/README
+++ b/Master/texmf-dist/doc/latex/xsavebox/README
@@ -1,7 +1,7 @@
====================================
The xsavebox LaTeX Package
- https://github.com/agrahn/xsavebox
+ https://gitlab.com/agrahn/xsavebox
(C) 2016--\today Alexander Grahn
====================================
diff --git a/Master/texmf-dist/doc/latex/xsavebox/xsavebox.pdf b/Master/texmf-dist/doc/latex/xsavebox/xsavebox.pdf
index 4d12890b7f2..a6ff865270e 100644
--- a/Master/texmf-dist/doc/latex/xsavebox/xsavebox.pdf
+++ b/Master/texmf-dist/doc/latex/xsavebox/xsavebox.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex b/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex
index 0d5e7247541..5b8f3bac871 100644
--- a/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex
+++ b/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex
@@ -59,7 +59,7 @@
\title{The {\sffamily xsavebox} Package, v\g@xsb@version@tl}
\expandafter\parsedate\g@xsb@date@tl\relax %set current date to package date
\makeatother
-\author{Alexander Grahn\\[1ex]\url{https://github.com/agrahn/xsavebox}}
+\author{Alexander Grahn\\[1ex]\url{https://gitlab.com/agrahn/xsavebox}}
\maketitle
\begin{abstract}
\noindent 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 size of the final PDF file and improved content caching for faster display in certain PDF viewers. The user commands are modelled after the standard \LaTeX{} commands \verb+\savebox+, \verb+\sbox+, \verb+\usebox+ and the `\verb+lrbox+' environment. The package supports all common \TeX{} engines and back-ends, including `\verb+dvips+'.
@@ -110,7 +110,7 @@ When content is converted into a Form XObject, it is clipped to its bounding box
\vspace{-1\baselineskip}
\hrulefill\\[-1\baselineskip]
-As for usage, the main difference of these commands as compared to their standard \LaTeX{} counterparts without the leading `\verb+x+' is the way of naming boxes. The label \verb+<xsbox name>+ is an identifier that may be composed of arbitrary non-active characters, such as letters, numbers, spaces, punctuation marks. A command for declaring a box register does not exist; \verb+<xsbox name>+ it is created upon using above-listed commands and environments. Also, an existing \verb+<xsbox name>+ can be re-used, which simply overwrites its old with new content. The package keeps track of box usage; the content of a box is only written to the output file if it is referenced at least once later in the document.
+As for usage, the main difference of these commands as compared to their standard \LaTeX{} counterparts without the leading `\verb+x+' is the way of naming boxes. The label \verb+<xsbox name>+ is an identifier that may be composed of arbitrary non-active characters, such as letters, numbers, spaces, punctuation marks. A command for declaring a box register does not exist; \verb+<xsbox name>+ is created upon using above-listed commands and environments. Also, an existing \verb+<xsbox name>+ can be re-used, which simply overwrites its old with new content. The package keeps track of box usage; the content of a box is only written to the output file if it is referenced at least once later in the document.
The \verb+[<width>]+ and \verb+[<position>]+ options have the same meaning as with \verb+\savebox+ and \verb+\makebox+. As usual, the additional length commands
\begin{Verbatim}
diff --git a/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty b/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty
index 124c4c0df26..0e001c446b4 100644
--- a/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty
+++ b/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty
@@ -49,8 +49,8 @@
\RequirePackage{pdfbase} %everything with `pbs_' prefix
\RequirePackage{l3keys2e}
-\def\g@xsb@version@tl{0.10}
-\def\g@xsb@date@tl{2018/03/29}
+\def\g@xsb@version@tl{0.11}
+\def\g@xsb@date@tl{2018/06/07}
\ProvidesExplPackage{xsavebox}{\g@xsb@date@tl}{\g@xsb@version@tl}
{saveboxes for repeating content without code replication}
@@ -67,7 +67,7 @@
%re-run message
\msg_set:nnn{xsavebox}{rerun}{Rerun~to~get~internal~references~right!}
-\cs_new:Nn\xsb_rerun_msg:{
+\cs_new_protected:Nn\xsb_rerun_msg:{
\cs_if_exist:NF\g_xsb_rerunwarned_tl{
\tl_new:N\g_xsb_rerunwarned_tl
\AtEndDocument{\msg_warning:nn{xsavebox}{rerun}}
@@ -197,7 +197,7 @@
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\cs_new_nopar:Nn\xsb_xlrbox:{
+\cs_new_protected:Nn\xsb_xlrbox:{
\group_begin:
\xsb_push_props: %new, empty properties dict
\xsb_beginLTR:
@@ -205,7 +205,7 @@
\ignorespaces
}
-\cs_new_nopar:Nn\xsb_endxlrbox:n{
+\cs_new_protected_nopar:Nn\xsb_endxlrbox:n{
\unskip
\group_end:\hbox_set_end:
\sbox\l_xsb_box{\hbox_unpack_clear:N\l_xsb_box}
@@ -214,7 +214,7 @@
\group_end:
}
-\cs_new_nopar:Nn\xsb_xlrbox_star:{
+\cs_new_protected:Nn\xsb_xlrbox_star:{
\group_begin:
\xsb_push_props: %new, empty properties dict
\xsb_beginLTR:
@@ -222,7 +222,7 @@
\ignorespaces
}
-\cs_new_nopar:Nn\xsb_endxlrbox_star:n{
+\cs_new_protected_nopar:Nn\xsb_endxlrbox_star:n{
\unskip
\color@endgroup\hbox_set_end:
\xsb_process_box:nnnN{#1}{\width}{c}\l_xsb_box
@@ -230,7 +230,7 @@
\group_end:
}
-\cs_new_nopar:Nn\xsb_process_box:nnnN{
+\cs_new_protected_nopar:Nn\xsb_process_box:nnnN{
%measure natural dimensions
\cs_set_nopar:Npn\width {\box_wd:N#4}
\cs_set_nopar:Npn\height{\box_ht:N#4}
@@ -264,7 +264,7 @@
\token_to_str:N\pbs@newkey{xsb@\int_use:N\g_xsb_id_int}{false}
}
%define command for inserting the m-boxed XObject reference
- \tl_gset:cx{the#1}{
+ \cs_gset_protected:cpx{the#1}{
\exp_not:N\tl_if_exist:cF{xsb_\int_use:N\g_xsb_id_int}{
%mark box as `used'
\exp_not:N\iow_now:Nx\@mainaux{
@@ -296,12 +296,12 @@
\box_new:N\l_xsb_raw_box %for saving the raw content
%environment for setting LTR typesetting direction with e-TeX based engines
-\cs_new:Nn\xsb_beginLTR:{
+\cs_new_protected:Nn\xsb_beginLTR:{
\cs_if_exist:NT\TeXXeTstate{
\int_compare:nT{\TeXXeTstate>\c_zero}{\beginL}
}
}
-\cs_new:Nn\xsb_endLTR:{
+\cs_new_protected:Nn\xsb_endLTR:{
\cs_if_exist:NT\TeXXeTstate{
\int_compare:nT{\TeXXeTstate>\c_zero}{\endL}
}
@@ -315,11 +315,11 @@
\seq_new:N\g_xsb_props_seq
%push new, empty properties dictionary on the stack (to be used by THIS pkg)
-\cs_new:Nn\xsb_push_props:{\seq_gpush:Nn\g_xsb_props_seq{}}
+\cs_new_protected:Nn\xsb_push_props:{\seq_gpush:Nn\g_xsb_props_seq{}}
%pop current properties dict from stack and place its contents as a
%/Properties << <prop dict> >> entry into the macro argument
-\cs_new:Nn\xsb_pop_props_to:N{
+\cs_new_protected:Nn\xsb_pop_props_to:N{
\seq_gpop:NNT\g_xsb_props_seq\l_tmpa_tl{
\tl_trim_spaces:N\l_tmpa_tl
\str_if_eq_x:nnF{\l_tmpa_tl}{}{\tl_set:Nx#1{/Properties<<\l_tmpa_tl>>}}
@@ -328,7 +328,7 @@
%add property (usually /key/val entry) to current properties dict;
%this command is meant to be used by OTHER packages
-\cs_new:Nn\xsb_addto_props:n{
+\cs_new_protected:Nn\xsb_addto_props:n{
\seq_gpop:NNT\g_xsb_props_seq\l_tmpa_tl{
\tl_put_right:Nn\l_tmpa_tl{#1~}
\seq_gpush:Nx\g_xsb_props_seq{\l_tmpa_tl}