texlive[44128] Master/texmf-dist: xcntperchap (30apr17)
commits+karl at tug.org
commits+karl at tug.org
Sun Apr 30 22:33:25 CEST 2017
Revision: 44128
http://tug.org/svn/texlive?view=revision&revision=44128
Author: karl
Date: 2017-04-30 22:33:25 +0200 (Sun, 30 Apr 2017)
Log Message:
-----------
xcntperchap (30apr17)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/xcntperchap/README
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_basicusage.pdf
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_basicusage.tex
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_doc.pdf
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_doc.tex
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_driver.pdf
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_driver.tex
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_labelusage.pdf
trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_labelusage.tex
trunk/Master/texmf-dist/tex/latex/xcntperchap/xcntperchap.sty
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcntperchap/README 2017-04-30 20:33:07 UTC (rev 44127)
+++ trunk/Master/texmf-dist/doc/latex/xcntperchap/README 2017-04-30 20:33:25 UTC (rev 44128)
@@ -1,4 +1,4 @@
-%% LaTeX package xcntperchap - version 0.3 (2017/01/13 -- 23:24:36)
+%% LaTeX package xcntperchap - version 0.4 (2017/04/30 -- 00:53:36)
%% README file for xcntperchap.sty
%%
%%
@@ -22,7 +22,7 @@
The package xcntperchap provides a way of investigating how many subsections per chapter etc. are in a certain chapter etc beforehand, i.e. at the begin of the second compilation run this is information is available.
-As of 2017/01/13 xcntperchap does not supersede the package cntperchap by the same author, however,
-the older package isn't declared obsolete as of 2017/01/13
+As of 2017/04/30 xcntperchap does not supersede the package cntperchap by the same author, however,
+the older package isn't declared obsolete as of 2017/04/30
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_basicusage.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_basicusage.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_basicusage.tex 2017-04-30 20:33:07 UTC (rev 44127)
+++ trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_basicusage.tex 2017-04-30 20:33:25 UTC (rev 44128)
@@ -1,4 +1,4 @@
-%% LaTeX package xcntperchap - version 0.3 (2017/01/13 -- 23:24:36)
+%% LaTeX package xcntperchap - version 0.4 (2017/04/30 -- 00:53:36)
%% Basic usage example file for xcntperchap.sty
%%
%%
@@ -21,8 +21,8 @@
\documentclass{article}
+\usepackage{enumitem}
\usepackage{xcntperchap}
-\usepackage{enumitem}
@@ -29,6 +29,8 @@
\RegisterCounters{section}{enumi}
\RegisterCounters{subsection}{enumi}
+
+
\begin{document}
\tableofcontents
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_doc.tex 2017-04-30 20:33:07 UTC (rev 44127)
+++ trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_doc.tex 2017-04-30 20:33:25 UTC (rev 44128)
@@ -1,4 +1,4 @@
-%% LaTeX package xcntperchap - version 0.3 (2017/01/13 -- 23:24:36)
+%% LaTeX package xcntperchap - version 0.4 (2017/04/30 -- 00:53:36)
%% Documentation file for xcntperchap.sty
%%
%%
@@ -80,6 +80,8 @@
\@namedef{xcntperchapversion0.3}{v0.3 2017-01-09}
+\@namedef{xcntperchapversion0.4}{v0.4 2017-04-19}
+
\newcommand{\authorname}{Autor}
@@ -288,7 +290,20 @@
}
+\newcommand{\CHDocExperimentalFeature}[1][Experimental]{%
+ \tcbdocmarginnote[doclang/new={N},
+ colframe=yellow!50!blue,
+ halign=left,
+ colback={blue!10!yellow},
+ fontupper={\tiny}
+ ]{%
+ #1%
+ }%
+}
+
+
+
\usepackage{xcntperchap}
\usepackage{cleveref}
@@ -375,7 +390,7 @@
\subsection{Required packages}
-Since \CHDocPackage{\PackageDocName} is written using \CHDocPackage{expl3}, it requires the \CHDocPackage{xparse} package. It relies on the features of associated counters introduced by \CHDocPackage{xassoccnt}, this package is also needed%
+Since \CHDocPackage{\PackageDocName} is written using \CHDocPackage{expl3}, it requires the \CHDocPackage{xparse} package. It relies on the features of associated counters introduced by \CHDocPackage{xassoccnt} v1.4.
\begin{itemize}
\item \CHDocPackage{zref}%
@@ -707,6 +722,10 @@
\section{Version history}
\begin{itemize}[itemsep=15pt]
+
+
+\item \CHDocFullVersion{0.4}
+ Improved the core \cs{stepcounter} in order to fit the \CHDocPackage{expl3} and \CHDocPackage{xparse} changes of Februar - April 2017.
\item \CHDocFullVersion{0.3}
\begin{itemize}
\item \CHDocNew{0.3} Support for obtaining a tracked value level by using labels with \refCom{tracklabel}, \refCom{tracklabel*} and \refCom{ObtainTrackedValueByLabel}
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_driver.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_driver.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_driver.tex 2017-04-30 20:33:07 UTC (rev 44127)
+++ trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_driver.tex 2017-04-30 20:33:25 UTC (rev 44128)
@@ -1,4 +1,4 @@
-%% LaTeX package xcntperchap - version 0.3 (2017/01/13 -- 23:24:36)
+%% LaTeX package xcntperchap - version 0.4 (2017/04/30 -- 00:53:36)
%% Driver examples file for xcntperchap.sty
%%
%%
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_labelusage.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_labelusage.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_labelusage.tex 2017-04-30 20:33:07 UTC (rev 44127)
+++ trunk/Master/texmf-dist/doc/latex/xcntperchap/xcntperchap_labelusage.tex 2017-04-30 20:33:25 UTC (rev 44128)
@@ -1,4 +1,4 @@
-%% LaTeX package xcntperchap - version 0.3 (2017/01/13 -- 23:24:36)
+%% LaTeX package xcntperchap - version 0.4 (2017/04/30 -- 00:53:36)
%% Label usage example file for xcntperchap.sty
%%
%%
Modified: trunk/Master/texmf-dist/tex/latex/xcntperchap/xcntperchap.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xcntperchap/xcntperchap.sty 2017-04-30 20:33:07 UTC (rev 44127)
+++ trunk/Master/texmf-dist/tex/latex/xcntperchap/xcntperchap.sty 2017-04-30 20:33:25 UTC (rev 44128)
@@ -1,4 +1,4 @@
-%% LaTeX package xcntperchap - version 0.3 (2017/01/13 -- 23:24:36)
+%% LaTeX package xcntperchap - version 0.4 (2017/04/30 -- 00:53:36)
%% Source file for xcntperchap.sty
%%
%%
@@ -19,24 +19,27 @@
%%
%%
-\def\xcntperchappackageversion{0.3}
+\def\xcntperchappackageversion{0.4}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xcntperchap}[2017/01/13 - v\xcntperchappackageversion]
+\ProvidesPackage{xcntperchap}[2017/04/30 - v\xcntperchappackageversion]
\RequirePackage[counter]{zref}
+\RequirePackage{l3keys2e}
\RequirePackage{xparse}
-\RequirePackage{l3keys2e}
-\RequirePackage[nonumberofruns]{xassoccnt}
+\RequirePackage{xassoccnt}
\ExplSyntaxOn
-\let\latex@@stepcounter\stepcounter
-\let\latex@@addtocounter\addtocounter
+%\let\latex@@stepcounter\stepcounter
+%\let\latex@@addtocounter\addtocounter
+\cs_set_eq:NN \latex@@stepcounter \stepcounter
+\cs_set_eq:NN \latex@@addtocounter \addtocounter
+
\cs_generate_variant:Nn \int_set:Nn {NV, Nx}
\cs_generate_variant:Nn \int_eval:n {V, x}
\cs_generate_variant:Nn \seq_gremove_all:Nn {NV,Nx,cV,cx}
@@ -95,6 +98,7 @@
\cs_new:Nn \xcntperchap_storetracked_values:n{%
+ \group_begin:
\tl_clear:N \l_tmpa_tl
\int_zero:N \l_tmpa_int
\int_zero:N \l_tmpb_int
@@ -114,6 +118,7 @@
\setcounter{cps@@#1total##1}{\c_zero}% Reset the total counter values
}
}
+ \group_end:
}
@@ -123,19 +128,26 @@
% Redefine again, to provide the storage feature
-\RenewDocumentCommand{\stepcounter}{m}{%
+
+\cs_set:Npn \xcntperchap_internal_stepcounter #1 {%
+%\RenewDocumentCommand{\stepcounter}{m}{%
% Must get reset list first
\__xassoccnt_getresetlist:n{#1}%
\seq_map_inline:Nn \g_xcntperchap_tracklevel_seq {%
- \seq_if_in:NnT \l__xassoccnt_counterreset_seq {##1} {%
- \StoreCounterValues{##1}%
- }
+ \seq_if_in:NnT \l__xassoccnt_counterreset_seq {##1} {%
+ \StoreCounterValues{##1}%
+ }
}
\StoreCounterValues{#1}%
\latex@@stepcounter{#1}%
}
+\let\foo\stepcounter
+\RenewDocumentCommand{\stepcounter}{m}{%
+ \xcntperchap_internal_stepcounter{#1}%
+}
+
\NewDocumentCommand{\AddToTrackedCounters}{mm}{%
\seq_set_from_clist:Nn \l_tmpa_seq {#1}
\seq_map_inline:Nn \l_tmpa_seq {%
@@ -284,9 +296,9 @@
\AtBeginDocument{%
\@ifpackageloaded{cleveref}{%
- \@cpscleverefloadedtrue
+ \global\@cpscleverefloadedtrue
}{%
- \@cpscleverefloadedfalse
+ \global\@cpscleverefloadedfalse
}
}
More information about the tex-live-commits
mailing list