2 ?'ˆl–Ðz¾”TÔD¨ *ÝÁ LZ7ÿ�þD ȳd(_yÖdlùÍ ƒyÖYÐ_ˆI|¥�+$¾ÃÖ"'%% %% This is file `texsort.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% texsort.dtx (with options: `package') %% %% Copyright (C) 2000-2021 by Sigitas Tolu\v{s}is %% UAB VTeX, Mokslininkų 2A, LT-08412 Vilnius, Lithuania %% -------------------------------------------------------------------------- %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% 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.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% %% PURPOSE: Sort/compress numerical lists %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{texsort} [2012/05/29 v1.1 Sort/compress alphanumerical list] \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{texsort}[2012/05/29] \newcount\t@mp@r@a \newcount\t@mp@r@b \newcount\t@mp@r@c \def\initarray#1#2{% \bgroup \@tempcnta=\z@ \@for\@@refb:=#2\do{% \advance\@tempcnta by\@ne \bgroup \setbox\z@\hbox{% \expandafter\global\expandafter\t@mp@r@a\expandafter\add@zero\@@refb\relax }% \ifdim\wd0>\z@\relax \@latex@warning{Not number \@@refb!}% \fi \expandafter\edef\csname @a@\endcsname{\expandafter\xdef\expandafter \noexpand\csname#1@\the\@tempcnta\endcsname{\the\t@mp@r@a}}\@a@ \egroup }% \expandafter\xdef\csname #1@lenght\endcsname{\the\@tempcnta}% \egroup } \def\outarray#1\sep#2{% \bgroup \@tempcnta=\z@\relax \@tempcntb=\getarraylenght{#1}% \loop \ifnum\@tempcnta<\@tempcntb \advance\@tempcnta by\@ne\relax \ifnum\@tempcnta>\@ne\relax#2\fi \csname#1@\the\@tempcnta\endcsname \repeat \egroup } \def\add@zero#1{0#1} \def\getarrayitem#1#2\to#3{\expandafter\xdef\csname#3\endcsname{\csname#1@#2\endcsname}} \def\setarrayitem#1#2#3{% \bgroup \setbox0\hbox{% \expandafter\global\expandafter\t@mp@r@a\expandafter\add@zero#3\relax }% \ifdim\wd0>\z@\relax \@latex@warning{Not number #3!}% \fi \expandafter\xdef\csname#1@#2\endcsname{\the\t@mp@r@a}% \egroup } \def\getarraylenght#1{\@ifundefined{#1@lenght}{0}{\csname #1@lenght\endcsname}} \def\setarraylenght#1#2{\expandafter\xdef\csname #1@lenght\endcsname{#2}} \def\upheap#1#2{% \bgroup \getarrayitem{#1}{#2}\to{vara}% \@namedef{#1@0}{\maxdimen}% \@tempcntb=#2\relax \loop \@tempcnta=\@tempcntb \divide\@tempcnta by2\getarrayitem{#1}{\the\@tempcnta}\to{varb}% \ifnum\varb>\vara\relax \else \getarrayitem{#1}{\the\@tempcnta}\to{varb}% \setarrayitem{#1}{\the\@tempcntb}{\varb}% \divide\@tempcntb by2\relax \repeat \setarrayitem{#1}{\the\@tempcntb}{\vara}% \egroup } \def\insertheapelem#1#2{% \bgroup \@tempcnta=\getarraylenght{#1}\relax \advance\@tempcnta by1\relax \setarraylenght{#1}{\the\@tempcnta}\relax \setarrayitem{#1}{\the\@tempcnta}{#2}% \upheap{#1}{\the\@tempcnta}% \egroup } \newcount\@tempcntd \def\downheap#1#2{% \bgroup \getarrayitem{#1}{#2}\to{vara}% \@tempcntb=\getarraylenght{#1}% \t@mp@r@c=\@tempcntb\relax \divide\@tempcntb by2\relax \t@mp@r@b=\@tempcntb\relax \@tempcntb=#2\relax \ifnum\@tempcntb>\t@mp@r@b\relax \else \loop \@tempcnta=\@tempcntb \advance\@tempcnta by\@tempcntb\relax \@tempcntd=\@tempcnta \advance\@tempcntd by1\relax \ifnum\@tempcnta<\t@mp@r@c\relax \getarrayitem{#1}{\the\@tempcnta}\to{temp@@a}% \getarrayitem{#1}{\the\@tempcntd}\to{temp@@b}% \ifnum\temp@@a<\temp@@b\relax \@tempcnta=\@tempcntd \fi \fi \getarrayitem{#1}{\the\@tempcnta}\to{temp@@a}% \ifnum\vara>\temp@@a\relax \t@mp@r@b=-1\relax \else \getarrayitem{#1}{\the\@tempcnta}\to{temp@@a}% \set