texlive[47962] Master/texmf-dist: xsavebox (9jun18)

commits+karl at tug.org commits+karl at tug.org
Sat Jun 9 00:04:37 CEST 2018


Revision: 47962
          http://tug.org/svn/texlive?view=revision&revision=47962
Author:   karl
Date:     2018-06-09 00:04:36 +0200 (Sat, 09 Jun 2018)
Log Message:
-----------
xsavebox (9jun18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/xsavebox/ChangeLog
    trunk/Master/texmf-dist/doc/latex/xsavebox/README
    trunk/Master/texmf-dist/doc/latex/xsavebox/xsavebox.pdf
    trunk/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex
    trunk/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty

Modified: trunk/Master/texmf-dist/doc/latex/xsavebox/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xsavebox/ChangeLog	2018-06-08 22:04:17 UTC (rev 47961)
+++ trunk/Master/texmf-dist/doc/latex/xsavebox/ChangeLog	2018-06-08 22:04:36 UTC (rev 47962)
@@ -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

Modified: trunk/Master/texmf-dist/doc/latex/xsavebox/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xsavebox/README	2018-06-08 22:04:17 UTC (rev 47961)
+++ trunk/Master/texmf-dist/doc/latex/xsavebox/README	2018-06-08 22:04:36 UTC (rev 47962)
@@ -1,7 +1,7 @@
 ====================================
  The xsavebox LaTeX Package
 
- https://github.com/agrahn/xsavebox
+ https://gitlab.com/agrahn/xsavebox
 
  (C) 2016--\today Alexander Grahn
 ====================================

Modified: trunk/Master/texmf-dist/doc/latex/xsavebox/xsavebox.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex	2018-06-08 22:04:17 UTC (rev 47961)
+++ trunk/Master/texmf-dist/source/latex/xsavebox/xsavebox.tex	2018-06-08 22:04:36 UTC (rev 47962)
@@ -59,7 +59,7 @@
 \title{The {\sffamily xsavebox} Package, v\g at xsb@version at tl}
 \expandafter\parsedate\g at xsb@date at 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 @@
 \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}

Modified: trunk/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty	2018-06-08 22:04:17 UTC (rev 47961)
+++ trunk/Master/texmf-dist/tex/latex/xsavebox/xsavebox.sty	2018-06-08 22:04:36 UTC (rev 47962)
@@ -49,8 +49,8 @@
 \RequirePackage{pdfbase} %everything with `pbs_' prefix
 \RequirePackage{l3keys2e}
 
-\def\g at xsb@version at tl{0.10}
-\def\g at xsb@date at tl{2018/03/29}
+\def\g at xsb@version at tl{0.11}
+\def\g at xsb@date at tl{2018/06/07}
 \ProvidesExplPackage{xsavebox}{\g at xsb@date at tl}{\g at xsb@version at 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 at 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 at 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}



More information about the tex-live-commits mailing list