texlive[71526] Master: count1to (14jun24)

commits+karl at tug.org commits+karl at tug.org
Fri Jun 14 23:44:31 CEST 2024


Revision: 71526
          https://tug.org/svn/texlive?view=revision&revision=71526
Author:   karl
Date:     2024-06-14 23:44:30 +0200 (Fri, 14 Jun 2024)
Log Message:
-----------
count1to (14jun24)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/count1to/
    trunk/Master/texmf-dist/doc/latex/count1to/README.md
    trunk/Master/texmf-dist/doc/latex/count1to/count1to.pdf
    trunk/Master/texmf-dist/source/latex/count1to/
    trunk/Master/texmf-dist/source/latex/count1to/count1to.dtx
    trunk/Master/texmf-dist/source/latex/count1to/count1to.ins
    trunk/Master/texmf-dist/tex/latex/count1to/
    trunk/Master/texmf-dist/tex/latex/count1to/count1to.sty
    trunk/Master/tlpkg/tlpsrc/count1to.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/count1to/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/count1to/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/count1to/README.md	2024-06-14 21:44:30 UTC (rev 71526)
@@ -0,0 +1,28 @@
+# The LaTeX package `count1to`
+
+Copyright (C) 1995–2009 Martin Schröder
+
+count1to 2024-06-13 v2.11 Count1to LaTeX Package
+
+This is the original release of Count1to. The new upload has only been done to split the ms-bundle.
+
+The current maintainer of this package is Marei Peischl <marei at peitex.de>
+
+***************************************************************************
+
+ This material is subject to the LaTeX Project Public License version 1.3c
+ or later. See http://www.latex-project.org/lppl.txt for details.
+
+***************************************************************************
+
+## Provided files
+
+* README.md
+* count1to.dtx
+* count1to.ins
+
+The files
+* count1to.sty
+* count1to.drv
+can be generated from the count1to.dtx by processing the count1to.ins-file.
+


Property changes on: trunk/Master/texmf-dist/doc/latex/count1to/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/count1to/count1to.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/count1to/count1to.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/count1to/count1to.pdf	2024-06-14 21:42:27 UTC (rev 71525)
+++ trunk/Master/texmf-dist/doc/latex/count1to/count1to.pdf	2024-06-14 21:44:30 UTC (rev 71526)

Property changes on: trunk/Master/texmf-dist/doc/latex/count1to/count1to.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/count1to/count1to.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/count1to/count1to.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/count1to/count1to.dtx	2024-06-14 21:44:30 UTC (rev 71526)
@@ -0,0 +1,475 @@
+%% \iffalse meta-comment
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Copyright (C) Martin Schröder, 1994–2009
+% 				Marei Peischl (peiTeX)  <marei at peitex.de>, 2024
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3c
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%    http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+% This package is maintained but will not receive any additional features.
+%
+% The Current Maintainer of this work is
+%   Marei Peischl <marei at peitex.de>.
+%
+% This work consists of the files
+%    README.md
+%    count1to.dtx
+%    count1to.ins
+% and the derived file
+%    count1to.sty.
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% \fi
+% \iffalse
+\NeedsTeXFormat{LaTeX2e}
+%<package>\ProvidesPackage{count1to}
+%<package>        [2024-06-13 v2.11 Count1to9 Package (MS)]
+%
+%<*driver>
+\ProvidesFile{count1to.drv}
+      [2024-06-13 v2.111 Driver for Count1to9 Package]
+\documentclass[a4paper]{ltxdoc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage{microtype}
+\usepackage{booktabs}
+\usepackage{url}
+\usepackage{count1to}
+\usepackage[toc]{multitoc}
+\makeatletter
+\IfFileExists{gitHeadInfo.gin}{
+   \newcommand*{\GI at githeadinfo@file}{gitHeadInfo.gin}
+}{}
+\makeatother
+\usepackage{gitinfo2}
+\usepackage{hypdoc}
+\usepackage{geometry}
+\GetFileInfo{count1to.sty}
+\setcounter{IndexColumns}{2}
+% onecolumn glossary
+\makeatletter
+  \renewenvironment{theglossary}{%
+  \glossary at prologue
+  \setlength\emergencystretch{5em}
+  \GlossaryParms \let\item\@idxitem \ignorespaces}{}
+\makeatother
+\EnableCrossrefs
+\RecordChanges
+%%\DisableCrossrefs% Say \DisableCrossrefs if index is ready
+\CodelineIndex    % Index code by line number
+%\OnlyDescription  % comment out for implementation details
+%%\OldMakeIndex    % use if your MakeIndex is pre-v2.9
+\setcounter{IndexColumns}{2}
+\setlength{\IndexMin}{30ex}
+\setlength{\premulticols}{\IndexMin}
+\addtolength{\oddsidemargin}{1cm}
+\addtolength{\textwidth}{-1cm}
+\begin{document}
+   \DocInput{count1to.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+%  \changes{v1.00}{1994/12/07}{New}
+%  \changes{v1.01}{1994/12/09}{Documentation improved}
+%  \changes{v1.02}{1996/12/29}{Documentation improved}
+%  \changes{v1.20}{1998/08/09}{Documentation improved}
+%  \changes{v1.22}{1999/06/08}{Moved to LPPL}
+%  \changes{v2.00}{2002/08/31}{Removed \texttt{TotalPages}}
+%  \changes{v2.1}{2009/05/24}{New address}
+%  \changes{v2.11}{2024-06-13}{Maintainer changed + removed from ms bundle + move to git}
+%
+%  \newcommand*{\Count}[1]{\texttt{\symbol{92}count#1}}
+%  \newcommand*{\package}[1]{\textnormal{\sffamily#1}}
+%  \newcommand*{\NEWfeature}[1]{%
+%     \hskip 1sp \marginpar{\small\sffamily\raggedright
+%     New feature\\#1}}
+%
+% ^^A -----------------------------
+%
+%  \changes{v1.03}{1997-03-09}{Fixed use of \cs{newline} in title.}
+%  \title{\unskip
+%         The \package{count1to} package^^A
+%           \thanks{^^A
+%              The version number of this file is \fileversion,
+%              revision~\#\gitAbbrevHash, last revised \protect\gitAuthorIsoDate.\protect\newline
+%              The name \textsf{count1to} is a tribute to the $8+3$ file-naming
+%              convention of certain ancient ``operating systems''; strictly
+%              speaking it should be \textsf{count1to9}.}
+%        }
+%  \changes{v2.00}{2002/08/31}{Changed e-mail}
+%  \author{Martin Schröder\\
+%	\url{https://gitlab.com/TeXhackse/count1to}\thanks{maintained by Marei Peischl}}
+%  \date{\filedate}
+%  \maketitle
+%
+% ^^A -----------------------------
+%
+%
+%  \begin{abstract}
+%     This package sets \Count{1} to \Count{8} with the values
+%     of \texttt{page} to \texttt{subparagraph}.
+%     \Count{9} is used to flag odd pages.
+%     The values of these counters are displayed and written in the
+%     \textsf{.dvi} file by \TeX{} and can later be used to select
+%     the pages of certain parts of the document for printing if the
+%     device driver supports this.
+%  \end{abstract}
+%
+%  \pagestyle{headings}
+%
+% ^^A -----------------------------
+%
+%  \tableofcontents
+%
+% ^^A -----------------------------
+%
+%  \section{Introduction to version 2}
+%  ^^A
+%  The main change of this new version is the removal of the code for
+%  the \texttt{TotalPages} label.
+%  This code didn't work with the \package{hyperref}
+%  package\cite{package:hyperref} and better code to achieve the
+%  effect of it is contained in the \package{totpages}
+%  package\cite{package:totpages}.
+%  So old documents using this package will not work when they try to
+%  use the \texttt{TotalPages} label; these documents must be changed
+%  by inserting a \cs{usepackage\{totpages\}} in the preamble and
+%  replacing all occurences of \texttt{TotalPages} by
+%  \texttt{TotPages}.
+%
+% ^^A -----------------------------
+%
+%  \section{Introduction}
+%  ^^A
+%  Most of the time users want to print only certain parts of a
+%  document; but these can only be selected by using the page numbers
+%  of these parts with most device drivers.
+%  This can be dif\/ficult or impossible if pages in dif\/ferent
+%  parts of the document have the same number---e.\,g. in the
+%  frontmatter and the first text pages (iii vs. 3).
+%
+%  \TeX{} provides an easy solution to this problem: whenever a page
+%  is completed by the output routine and shipped out via
+%  \cs{shipout}, it displayes the values of \Count{0} to \Count{9}
+%  on the display (e.\,g. \texttt{[1]}) \emph{and writes them to the
+%  \textsf{.dvi} file}.
+%
+%  \changes{v1.02}{1996/12/29}{fixed typos}
+%  \begin{quote}
+%     ``The first ten \Count{} registers, \Count{0} to \Count{9},
+%     are reserved for a special purpose: \TeX{} displays these ten
+%     counts on your terminal whenever ouputting a page, and it
+%     transmits them to the output file as an identification of that
+%     page.
+%     The counts are separated by decimal points on your terminal,
+%     with trailing `\texttt{.0}' patterns suppressed.
+%     Thus, for example, if \Count{0=5} and \Count{2=7} when a
+%     page is shipped out to the \texttt{dvi} file, and if the other
+%     counters are zero, \TeX{} will type `\texttt{[5.0.7]}'.
+%     Plain \TeX{} uses \Count{0} for the page number, and it keeps
+%     \Count{1} through~\Count{9} equal to zero; that is why you
+%     see `\texttt{[1]}' when page~1 is being output.
+%     In more complex applications the page numbers can have further
+%     structure; ten counts are shipped out so that there will be
+%     plenty of identification.''\cite[p\@. 119]{KnuthTeXa}
+%  \end{quote}
+%
+%  \noindent
+%  Surprinsingly, until recently there existed no package for
+%  \LaTeX{} that used these \Count{}ers although some drivers allow
+%  the selection of pages based on other \Count{}s then \Count{0}
+%  (e.\,g. em\TeX).
+%
+%  This package is the solution: It used the \package{everyshi}
+%  package\cite{package:everyshi} to set \Count{1} to \Count{9} before
+%  each \cs{shipout} with these values. Today it is using the kernel's shipout hooks \cite{texdoc:ltshipout}.
+%
+%  \begin{center}
+%  \begin{tabular}{cl}\toprule
+%  \Count{} & value  \\ \midrule
+%  0        & relative page number (set by \LaTeX)\\
+%  1        & absolute page number\\
+%  2        & number of current \cs{part} \\
+%  3        & number of current \cs{chapter} (0 with article class)\\
+%  4        & number of current \cs{section} \\
+%  5        & number of current \cs{subsection} \\
+%  6        & number of current \cs{subsubsection} \\
+%  7        & number of current \cs{paragraph} \\
+%  8        & number of current \cs{subparagraph} \\
+%  9        & 1 on odd pages, 0 on even pages\footnotemark\\
+%  \bottomrule
+%  \end{tabular}
+%  \end{center}
+%  \footnotetext{^^A
+%     If you have a better application for \Count{9}, let me know.}
+%
+%  \noindent
+%  \textsf{count1to} also works with classes that do not define some
+%  or all of the sectioning commands and their counters, like
+%  \textsf{letter}.
+%  Although it is of somewhat little use then \texttt{:-)}.
+%
+%  A note for users of this package: When you select the pages of
+%  some part of your document with a lower structure than
+%  \cs{chapter}, remember that only \cs{part}s and \cs{chapter}s
+%  start on a new page; if you want to print a complete
+%  \cs{section}, you should also select the first page of the next
+%  \cs{section}.
+%  Also note that \TeX{} ships out the values of the counters instead
+%  of their visual representation (produced with
+%  \cs{the}\emph{counter}), so appendix A sets \Count{4} to 1 in the
+%  article class.
+%
+%  A note for developers of device drivers: Please add support for
+%  \Count{1} to~\texttt{9} to your programs.
+%  It would also be nice if users could easily select the next
+%  page(s) after a certain count (something like
+%  ``\texttt{*.*.*.*.2+1.*}'' should be possible for selecting all
+%  pages with $\Count{4}\mapsto\mathrm{section}=2$ plus the first
+%  page of section~3).
+%
+% ^^A -----------------------------
+%
+%  \section{Options}
+%  ^^A
+%  The package has no options.
+%
+%
+% ^^A -----------------------------
+%
+%  \section{Required packages}
+%  ^^A
+%  With \LaTeX2e{} releases newer than 2020/10/01 this package does not require any other package.
+%
+%
+% ^^A -----------------------------
+%
+%  \StopEventually{^^A
+%
+% ^^A -----------------------------
+%
+%  \section{Acknowledgements}
+%  ^^A
+%  As usual Rebecca Stiels improved the quality of this documentation.
+%
+%
+% ^^A -----------------------------
+%
+%  \begin{thebibliography}{1}
+%     \raggedright
+%     \bibitem{package:lastpage}
+%        Jeff Goldberg.
+%        \newblock The \package{lastpage}-package.
+%        \newblock \url{CTAN: tex-archive/macros/latex/contrib/other/lastpage}.
+%        \newblock \LaTeXe{} package.
+%     \bibitem{KnuthTeXa}
+%        Donald~E.\ Knuth.
+%        \newblock \emph{The {\TeX}Book}, volume~A of \emph{Computers
+%           and Typesetting}.
+%        \newblock Addison-Wes\-ley, 1986.
+%        \newblock Eleventh printing, revised, May 1991.
+%     \bibitem{package:totpages}
+%        Wilhelm M\"uller.
+%        \newblock The \package{totpages} package.
+%        \newblock \url{CTAN: tex-archive/macros/latex/contrib/supported/totpages/}.
+%        \newblock \LaTeXe{} package.
+%     \bibitem{package:hyperref}
+%        Sebastian Rahtz.
+%        \newblock Hypertext marks in \LaTeX.
+%        \newblock \url{CTAN: tex-archive/macros/latex/contrib/supported/hyperref/}.
+%     \bibitem{package:everyshi}
+%        Martin Schröder.
+%        \newblock The \package{everyshi} package.
+%        \newblock \url{CTAN: tex-archive/macros/latex/contrib/supported/ms/everyshi.dtx}.
+%        \newblock \LaTeXe{} package.
+%     \bibitem{texdoc:ltshipout}
+%         \newblock Frank Mittelbach, \LaTeX{} Project Team.
+%         \newblock The ltshipout documentation.
+%         \newblock \url{https://mirrors.ctan.org/macros/latex/base/ltshipout-doc.pdf}
+%  \end{thebibliography}
+%
+%     }
+%
+%
+% ^^A -----------------------------
+%
+%  \section{The implementation}
+%  ^^A
+%  \setlength{\parindent}{0pt}
+%    \begin{macrocode}
+%<*package>
+%    \end{macrocode}
+%
+%  \changes{v1.20}{1998/04/10}{don't require \textsf{ifthen}}
+%  \changes{v1.10}{1997/11/01}{require \textsf{ifthen}}
+%  \changes{v2.11}{2024-06-13}{\package{everyshi} is obsolete}
+%
+%  We need various \cs{if}s to check if the used counters
+%  are defined.
+%  \changes{v1.20}{1998/04/10}{\cs{newif} again}
+%  \changes{v1.10}{1997/11/01}{\cs{newboolean}}
+%    \begin{macrocode}
+\newif\if at have@part
+\newif\if at have@chapter
+\newif\if at have@section
+\newif\if at have@subsection
+\newif\if at have@subsubsection
+\newif\if at have@paragraph
+\newif\if at have@subparagraph
+%    \end{macrocode}
+%
+%  \begin{macro}{\@countItoIX at ifs}
+%  \cs{@countItoIX at ifs} is used to set all these \cs{if}s at
+%  |\begin{document}|.
+%  It is undefined after use to save some space.
+%  \changes{v2.00}{2002/08/31}{moved code for \cs{AtBeginDocument} to
+%                              \cs{@countItoIX at init}}
+%  \changes{v1.20}{1998/04/10}{don't use \textsf{ifthen}}
+%  \changes{v1.10}{1997/11/01}{\cs{setboolean}}
+%  \changes{v1.02}{1996/12/29}{destruct after usage}
+%    \begin{macrocode}
+\newcommand*{\@countItoIX at ifs}{
+   \@ifundefined{c at part}           {}{\@have at parttrue}
+   \@ifundefined{c at chapter}        {}{\@have at chaptertrue}
+   \@ifundefined{c at section}        {}{\@have at sectiontrue}
+   \@ifundefined{c at subsection}     {}{\@have at subsectiontrue}
+   \@ifundefined{c at subsubsection}  {}{\@have at subsubsectiontrue}
+   \@ifundefined{c at paragraph}      {}{\@have at paragraphtrue}
+   \@ifundefined{c at subparagraph}   {}{\@have at subparagraphtrue}
+   }
+%    \end{macrocode}
+%  \end{macro}
+%
+%  \begin{macro}{\@countItoIX at bugfix}
+%  The current version of \LaTeX{} has the ``feature'' that only the
+%  first level of counters associated with a counter via the optional
+%  argument of \cs{newcounter} is reset when the counter is stepped;
+%  so when you start a new chapter, the number for the subsection is
+%  not reset.
+%  This is normally no problem, but with this package, it is: If this
+%  bug is not fixed or worked-around, then whenever you use
+%  \cs{subparagraph} or some other lower sectioning command, and
+%  after that a sectioning command that is at least two levels higher
+%  (e.\,g. \cs{subsubsection}), the value of \texttt{subparagraph}
+%  would not be reset and would still be displayed and shipped out.
+%  So we have to associate \emph{all} lower-level sectioning commands
+%  with the higher levels.
+%  This is done via \cs{@addtoreset} at \cs{begin\{document\}}.
+%  \cs{@countItoIX at bugfix} is undefined after use to save some space.
+%  \changes{v2.00}{2002/08/31}{moved code for \cs{AtBeginDocument} to
+%                              \cs{@countItoIX at init}}
+%  \changes{v1.20}{1998/04/10}{don't use \textsf{ifthen}}
+%  \changes{v1.10}{1997/11/01}{\cs{ifthenelse}}
+%  \changes{v1.02}{1996/12/29}{destruct after usage}
+%    \begin{macrocode}
+\newcommand*{\@countItoIX at bugfix}{
+   \if at have@part
+      \@addtoreset{section}      {part}
+      \@addtoreset{subsection}   {part}
+      \@addtoreset{subsubsection}{part}
+      \@addtoreset{paragraph}    {part}
+      \@addtoreset{subparagraph} {part}
+   \fi
+   \if at have@chapter
+      \@addtoreset{subsection}   {chapter}
+      \@addtoreset{subsubsection}{chapter}
+      \@addtoreset{paragraph}    {chapter}
+      \@addtoreset{subparagraph} {chapter}
+   \fi
+   \if at have@section
+      \@addtoreset{subsubsection}{section}
+      \@addtoreset{paragraph}    {section}
+      \@addtoreset{subparagraph} {section}
+   \fi
+   \if at have@subsection
+      \@addtoreset{paragraph}    {subsection}
+      \@addtoreset{subparagraph} {subsection}
+   \fi
+   \if at have@subsubsection
+      \@addtoreset{subparagraph} {subsubsection}
+   \fi
+   }
+%    \end{macrocode}
+%  \end{macro}
+%
+%  \begin{macro}{\@countItoIX at init}
+%  \changes{v2.00}{2002/08/31}{new}
+%  \cs{@countItoIX at init} calls \cs{\@countItoIX at ifs} and
+%  \cs{@countItoIX at bugfix} and then frees their memory.
+%  This is done at \cs{begin\{document\}} via \cs{AtBeginDocument}.
+%    \begin{macrocode}
+\newcommand*{\@countItoIX at init}{%
+   \message{ABD: Count1to9 initializing macros}%
+   \@countItoIX at ifs\let\@countItoIX at ifs\undefined
+   \@countItoIX at bugfix\let\@countItoIX at bugfix\undefined
+   }
+\AddToHook{begindocument}[count1to-init]{\@countItoIX at init}
+%    \end{macrocode}
+%  \end{macro}
+%
+%
+%  \begin{macro}{\@countItoIX at shipout}
+%  \cs{@countItoIX at shipout} is used for setting \Count{1} to
+%  \Count{9} at each \cs{shipout}.
+%    \begin{macrocode}
+\newcommand*{\@countItoIX at shipout}{
+%    \end{macrocode}
+%  \Count{1} is the absolute page number, which we have to maintain
+%  by ourselves.
+%    \begin{macrocode}
+   \global\advance \count1 by 1
+%    \end{macrocode}
+%  \Count{2} to \Count{8} are set with the values of
+%  \cs{part} to \cs{subparagraph}, if these commands are defined.^^A
+%     \footnote{We should probably also check the value of
+%        \texttt{secnumdepth}, but I don't think this is necessary.}
+%  \changes{v1.20}{1998/04/10}{don't use \textsf{ifthen}}
+%  \changes{v1.10}{1997/11/01}{\cs{ifthenelse}}
+%    \begin{macrocode}
+   \if at have@part              \count2\value{part}           \fi
+   \if at have@chapter           \count3\value{chapter}        \fi
+   \if at have@section           \count4\value{section}        \fi
+   \if at have@subsection        \count5\value{subsection}     \fi
+   \if at have@subsubsection     \count6\value{subsubsection}  \fi
+   \if at have@paragraph         \count7\value{paragraph}      \fi
+   \if at have@subparagraph      \count8\value{subparagraph}   \fi
+%    \end{macrocode}
+%  \Count{9} is set to~1 on odd pages and to~0 on even pages.
+%    \begin{macrocode}
+   \ifodd\count1\count9=1     \else\count9=0                \fi
+   }
+%    \end{macrocode}
+%  \changes{v2.11}{2024-06-13}{Remove everyshi but add compatibility mode}
+%    \begin{macrocode}
+\providecommand\IfFormatAtLeastTF{\@ifl at t@r\fmtversion}
+\IfFormatAtLeastTF{2020/10/01}{
+	\AddToHook{shipout/before}[count1to-shipout]{\@countItoIX at shipout}
+}{
+	\RequirePackage{everyshi}
+	\EveryShipount{\@countItoIX at shipout}
+}
+%    \end{macrocode}
+%  \end{macro}
+%
+%    \begin{macrocode}
+%</package>
+%    \end{macrocode}
+%
+% ^^A -----------------------------
+%
+%  \Finale
+%
+%   \PrintIndex\PrintChanges
+%   ^^A Make sure that the index is not printed twice
+%   ^^A (ltxdoc.cfg might have a second \PrintIndex command)
+%   \let\PrintChanges\relax
+%   \let\PrintIndex\relax


Property changes on: trunk/Master/texmf-dist/source/latex/count1to/count1to.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/count1to/count1to.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/count1to/count1to.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/count1to/count1to.ins	2024-06-14 21:44:30 UTC (rev 71526)
@@ -0,0 +1,47 @@
+\input docstrip.tex
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesFile{count1to.ins}
+      [2024-06-13 v2.11 Installation script for Count1to9 Package]
+
+\preamble
+
+Copyright (c) 1994–2009 Martin Schröder, 2024 Marei Peischl (peiTeX)  <marei at peitex.de>
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3c
+of this license or (at your option) any later version.
+The latest version of this license is in
+http://www.latex-project.org/lppl.txt
+and version 1.3c or later is part of all distributions of LaTeX
+version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is
+	Marei Peischl <marei at peitex.de>.
+
+This work consists of the files count1to.dtx and count1to.ins
+and the derived file count1to.sty.
+
+\endpreamble
+\keepsilent
+\askforoverwritefalse
+\generate{%
+   \file{count1to.sty}{\from{count1to.dtx}{package}}
+}
+
+\Msg{***********************************************************}
+\Msg{*}
+\Msg{* To finish the installation you have to move the following}
+\Msg{* style files into a directory searched by TeX:}
+\Msg{*}
+\Msg{* \space\space count1to.sty}
+\Msg{*}
+\Msg{* To produce the documentation run the file count1to.dtx}
+\Msg{* through LaTeX.}
+\Msg{*}
+\Msg{* Happy TeXing}
+\Msg{***********************************************************}
+\endbatchfile
+%% 
+%% End of file `count1to.ins'.

Added: trunk/Master/texmf-dist/tex/latex/count1to/count1to.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/count1to/count1to.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/count1to/count1to.sty	2024-06-14 21:44:30 UTC (rev 71526)
@@ -0,0 +1,102 @@
+%%
+%% This is file `count1to.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% count1to.dtx  (with options: `package')
+%% 
+%% Copyright (c) 1994–2009 Martin Schröder, 2024 Marei Peischl (peiTeX)  <marei at peitex.de>
+%% 
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status `maintained'.
+%% 
+%% The Current Maintainer of this work is
+%% Marei Peischl <marei at peitex.de>.
+%% 
+%% This work consists of the files count1to.dtx and count1to.ins
+%% and the derived file count1to.sty.
+%% 
+%% \iffalse meta-comment
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{count1to}
+        [2024-06-13 v2.11 Count1to9 Package (MS)]
+\newif\if at have@part
+\newif\if at have@chapter
+\newif\if at have@section
+\newif\if at have@subsection
+\newif\if at have@subsubsection
+\newif\if at have@paragraph
+\newif\if at have@subparagraph
+\newcommand*{\@countItoIX at ifs}{
+   \@ifundefined{c at part}           {}{\@have at parttrue}
+   \@ifundefined{c at chapter}        {}{\@have at chaptertrue}
+   \@ifundefined{c at section}        {}{\@have at sectiontrue}
+   \@ifundefined{c at subsection}     {}{\@have at subsectiontrue}
+   \@ifundefined{c at subsubsection}  {}{\@have at subsubsectiontrue}
+   \@ifundefined{c at paragraph}      {}{\@have at paragraphtrue}
+   \@ifundefined{c at subparagraph}   {}{\@have at subparagraphtrue}
+   }
+\newcommand*{\@countItoIX at bugfix}{
+   \if at have@part
+      \@addtoreset{section}      {part}
+      \@addtoreset{subsection}   {part}
+      \@addtoreset{subsubsection}{part}
+      \@addtoreset{paragraph}    {part}
+      \@addtoreset{subparagraph} {part}
+   \fi
+   \if at have@chapter
+      \@addtoreset{subsection}   {chapter}
+      \@addtoreset{subsubsection}{chapter}
+      \@addtoreset{paragraph}    {chapter}
+      \@addtoreset{subparagraph} {chapter}
+   \fi
+   \if at have@section
+      \@addtoreset{subsubsection}{section}
+      \@addtoreset{paragraph}    {section}
+      \@addtoreset{subparagraph} {section}
+   \fi
+   \if at have@subsection
+      \@addtoreset{paragraph}    {subsection}
+      \@addtoreset{subparagraph} {subsection}
+   \fi
+   \if at have@subsubsection
+      \@addtoreset{subparagraph} {subsubsection}
+   \fi
+   }
+\newcommand*{\@countItoIX at init}{%
+   \message{ABD: Count1to9 initializing macros}%
+   \@countItoIX at ifs\let\@countItoIX at ifs\undefined
+   \@countItoIX at bugfix\let\@countItoIX at bugfix\undefined
+   }
+\AddToHook{begindocument}[count1to-init]{\@countItoIX at init}
+\newcommand*{\@countItoIX at shipout}{
+   \global\advance \count1 by 1
+   \if at have@part              \count2\value{part}           \fi
+   \if at have@chapter           \count3\value{chapter}        \fi
+   \if at have@section           \count4\value{section}        \fi
+   \if at have@subsection        \count5\value{subsection}     \fi
+   \if at have@subsubsection     \count6\value{subsubsection}  \fi
+   \if at have@paragraph         \count7\value{paragraph}      \fi
+   \if at have@subparagraph      \count8\value{subparagraph}   \fi
+   \ifodd\count1\count9=1     \else\count9=0                \fi
+   }
+\providecommand\IfFormatAtLeastTF{\@ifl at t@r\fmtversion}
+\IfFormatAtLeastTF{2020/10/01}{
+\AddToHook{shipout/before}[count1to-shipout]{\@countItoIX at shipout}
+}{
+\RequirePackage{everyshi}
+\EveryShipount{\@countItoIX at shipout}
+}
+\endinput
+%%
+%% End of file `count1to.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/count1to/count1to.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2024-06-14 21:42:27 UTC (rev 71525)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2024-06-14 21:44:30 UTC (rev 71526)
@@ -228,7 +228,8 @@
     coop-writing cooperhewitt
     coordsys copyedit copyrightbox cormorantgaramond correctmathalign coseoul
     couleurs-fr
-    counterz countriesofeurope counttexruns courier courier-scaled courierten
+    count1to counterz countriesofeurope counttexruns
+    courier courier-scaled courierten
     courseoutline coursepaper
     coverpage covington
     cprotect cprotectinside cqubeamer cquthesis

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2024-06-14 21:42:27 UTC (rev 71525)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2024-06-14 21:44:30 UTC (rev 71526)
@@ -400,7 +400,6 @@
  'coronet',     	"die 'skipping, nonfree font'",
  'correctmathalign',	"&MAKEflatten",
  'corridx',     "die 'skipping, Pascal source'",
- 'count1to',    "die 'skipping, use ms'",
  'countriesofeurope', "&MAKEflatten",
  'courier',	"die 'skipping, nonfree IBM Courier font'",
  'courierten',	"&MAKEflatten",

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2024-06-14 21:42:27 UTC (rev 71525)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2024-06-14 21:44:30 UTC (rev 71526)
@@ -269,6 +269,7 @@
 depend copyedit
 depend copyrightbox
 depend coseoul
+depend count1to
 depend counterz
 depend counttexruns
 depend courseoutline

Added: trunk/Master/tlpkg/tlpsrc/count1to.tlpsrc
===================================================================


More information about the tex-live-commits mailing list.