summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-28 22:04:36 +0000
committerKarl Berry <karl@freefriends.org>2019-01-28 22:04:36 +0000
commit2c3cf1152cb4655cf77cc39aeddf7be69ddd8e12 (patch)
treeea755bf2e22f56aac9fe4efab81443de7417be86 /Master/texmf-dist/tex/latex
parent99c613f04edeed8a28efac69411132ea2cd8164d (diff)
bezos (28jan19)
git-svn-id: svn://tug.org/texlive/trunk@49850 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/bezos/accents.sty52
-rw-r--r--Master/texmf-dist/tex/latex/bezos/arabicfront.sty52
-rw-r--r--Master/texmf-dist/tex/latex/bezos/babeltools.sty104
-rw-r--r--Master/texmf-dist/tex/latex/bezos/checkend.sty38
-rw-r--r--Master/texmf-dist/tex/latex/bezos/dotlessi.sty38
-rw-r--r--Master/texmf-dist/tex/latex/bezos/esindex.sty296
-rw-r--r--Master/texmf-dist/tex/latex/bezos/soulpos.sty54
-rw-r--r--Master/texmf-dist/tex/latex/bezos/subdocs.sty49
-rw-r--r--Master/texmf-dist/tex/latex/bezos/tensind.sty53
9 files changed, 439 insertions, 297 deletions
diff --git a/Master/texmf-dist/tex/latex/bezos/accents.sty b/Master/texmf-dist/tex/latex/bezos/accents.sty
index d44b535b995..2fb9db8ea39 100644
--- a/Master/texmf-dist/tex/latex/bezos/accents.sty
+++ b/Master/texmf-dist/tex/latex/bezos/accents.sty
@@ -1,24 +1,8 @@
-% +--------------------------------------------------+
-% | Typeset accents.tex to get the documentation. |
-% +--------------------------------------------------+
%
-%% Copyright (C) 1998, 1999, 2000, 2006 Javier Bezos
-%% All Rights Reserved
-%% http://www.tex-tipografia.com
-%%
-%% 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 2003/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% This Current Maintainer of this work is Javier Bezos.
-%%
-%% This work consists of the files accents.tex and accents.sty.
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
% Changes
% ~~~~~~~
@@ -31,7 +15,7 @@
% Release
% ~~~~~~~
-\ProvidesPackage{accents}[2006/05/12 v1.3 Math Accent Tools]
+\ProvidesPackage{accents}[2006/05/12 v1.4 Math Accent Tools]
\let\cc@palette\mathpalette
@@ -94,7 +78,7 @@
\def\cc@set#1{%
\xdef#1{\noexpand\protect\noexpand\cc@accent{#1}}}
-
+
\cc@set\grave %{\protect\cc@accent{"7012\relax}}
\cc@set\acute %{\protect\cc@accent{"7013\relax}}
\cc@set\check %{\protect\cc@accent{"7014\relax}}
@@ -278,4 +262,26 @@
\ProcessOptions
-\endinput \ No newline at end of file
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/bezos/arabicfront.sty b/Master/texmf-dist/tex/latex/bezos/arabicfront.sty
index 1748dfb5fcc..518db79ff99 100644
--- a/Master/texmf-dist/tex/latex/bezos/arabicfront.sty
+++ b/Master/texmf-dist/tex/latex/bezos/arabicfront.sty
@@ -1,24 +1,8 @@
-% +--------------------------------------------------+
-% | Documentation in clear text follows |
-% +--------------------------------------------------+
%
-%% Copyright (C) 2006 Javier Bezos
-%% All Rights Reserved
-%% http://www.tex-tipografia.com
-%%
-%% 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 2003/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% This Current Maintainer of this work is Javier Bezos.
-%%
-%% This work consists of this file.
+% Copyright (C) 2006-2019 Javier Bezos http://www.texnia.com
+%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
% Usage
% ~~~~~
@@ -34,7 +18,7 @@
% Code
% ~~~~
-\def\fileversion{1.0}
+\def\fileversion{1.1}
\def\filedate{2006/09/03}
\ProvidesPackage{arabicfront}[2006/09/03 v1.0 Arabic page numbering]
@@ -53,8 +37,30 @@
\def\arfr@main#1\pagenumbering#2#3\@@\@@{%
\renewcommand\mainmatter{#1#3}}
-
+
\expandafter\arfr@rep\mainmatter\@@\@@\arfr@main\mainmatter
\expandafter\arfr@rep\frontmatter\@@\@@\arfr@front\frontmatter
-\endinput \ No newline at end of file
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/bezos/babeltools.sty b/Master/texmf-dist/tex/latex/bezos/babeltools.sty
index 2818aa36519..a01d72e46f7 100644
--- a/Master/texmf-dist/tex/latex/bezos/babeltools.sty
+++ b/Master/texmf-dist/tex/latex/bezos/babeltools.sty
@@ -1,22 +1,13 @@
-% Copyright (c) 2010 by Javier Bezos.
-% All Rights Reserved.
%
-% It 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 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
+% Copyright (C) 2010-2019 Javier Bezos http://www.texnia.com
+%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
% TODO:
% noshorthands -> shorthands=off, nocitations, nocrossrefs
-\ProvidesPackage{babeltools}[2010/10/14 v0.2 Tools for the babel system (beta)]
+\ProvidesPackage{babeltools}[2010/10/14 v1.1 Tools for the babel system (beta)]
\edef\bbtl@savedcatcodes{%
\catcode`\noexpand\~=\the\catcode`\~
@@ -48,19 +39,6 @@
\newcommand\BeforeBabel[1]{%
\g@addto@macro\bbtl@beforebabelhook{#1}}
-% Not to be redefined. The current value, saved by babel, is
-% restored. More robust code is necessary, I think.
-
-\def\bbtl@restore@org#1{%
- \@ifundefined{#1 }% Not robust?
- {\expandafter\let\csname #1\expandafter\endcsname
- \csname org@#1\endcsname}%
- {\expandafter\let\csname #1 \expandafter\endcsname
- \csname org@#1\endcsname}}
-
-\def\bbtl@save@org#1{%
- \expandafter\let\csname org@#1\expandafter\endcsname
- \csname #1\endcsname}
% Citations and cross refs
% ~~~~~~~~~~~~~~~~~~~~~~~~
@@ -84,18 +62,9 @@
\bbtl@restore@org{ref}% Robust
\bbtl@restore@org{pageref}}}% Robust
-% More cases are to be added, but they must be delayed at the end of
-% begin document, because they are related to loaded packages (see
-% babel.dtx)
-%
% Shorthands
% ~~~~~~~~~~
-% Some languages use the shortand mechanism for tools not defined
-% otherwise, so you can still use them with \babelshorthand{..}.
-% Then you can use it conveniently to define your own macros.
-
-% ~ is an special case, as it's defined in babel.def
-
+%
% New shorthands
% --------------
@@ -179,38 +148,6 @@
{#1}%
{\@nameuse{bbtl@@\languagename @@\bbtl@meaning\bbtl@tempa}}}
-% Select
-% ----------------------
-\let\bbtl@o@shorthands\@empty
-
-% TO DO: package options are expanded by LaTeX, and ~ raises
-% an error, but not \string~. Is there a way to fix it?
-
-% This is done after 'adaptive', if present.
-
-\def\bbl@doshorthands{%
- \let\bbtl@s@initiate@active@char\initiate@active@char
- \def\initiate@active@char##1{%
- \bbtl@ifshorthand{\string##1}%
- {\bbtl@s@initiate@active@char{##1}}%
- {}}%
- \let\bbtl@s@declare@shorthand\declare@shorthand
- \def\declare@shorthand##1##2{%
- \bbtl@ifshorthand{\expandafter\string\@firstoftwo##2\@empty}%
- {\bbtl@s@declare@shorthand{##1}{##2}}%
- {\def\bbtl@tempa{##2}%
- \@namedef{bbtl@@##1@@\bbtl@meaning\bbtl@tempa}}}%
- \let\bbtl@s@activate\bbl@activate
- \def\bbl@activate##1{%
- \bbtl@ifshorthand{\string##1}%
- {\bbtl@s@activate{##1}}%
- {}}%
- \let\bbtl@s@deactivate\bbl@deactivate
- \def\bbl@deactivate##1{%
- \bbtl@ifshorthand{\string##1}%
- {\bbtl@s@deactivate{##1}}%
- {}}}
-
% No config
% ~~~~~~~~~
% Make sure an unexpected local config doesn't spoil your document.
@@ -218,7 +155,7 @@
% use them
\DeclareOption{noconfig}
- {\AfterBabel{\let\loadlocalcfg\@gobble}}
+ {\PassOptionToPackage{babel}{noconfig}}
% Captions
% ~~~~~~~~
@@ -298,8 +235,6 @@
% shorthands=... option is handled here.
-\show\bbtl@o@shorthands
-
\ifx\bbtl@o@shorthands\@empty\else
\edef\bbtl@o@shorthands{\bbtl@meaning\bbtl@o@shorthands}%
\bbtl@ifshorthand{'}%
@@ -351,11 +286,28 @@
\endinput
-==============================
-==============================
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-- Attributes?
-- Quotes ''
diff --git a/Master/texmf-dist/tex/latex/bezos/checkend.sty b/Master/texmf-dist/tex/latex/bezos/checkend.sty
index 87b71517555..347949ae114 100644
--- a/Master/texmf-dist/tex/latex/bezos/checkend.sty
+++ b/Master/texmf-dist/tex/latex/bezos/checkend.sty
@@ -1,14 +1,8 @@
-% +--------------------------------------------------+
-% | Documentation in clear text follows |
-% +--------------------------------------------------+
%
-% (c) 2002 Javier Bezos. All Rights Reserved.
+% Copyright (C) 2002-2019 Javier Bezos http://www.texnia.com
%
-% This file can be redistributed and/or modified under the terms
-% of the LaTeX Project Public License Distributed from CTAN
-% archives in directory macros/latex/base/lppl.txt; either
-% version 1 of the License, or any later version.
-%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
% Usage
% ~~~~~
@@ -27,7 +21,7 @@
% Code
% ~~~~
-\def\fileversion{1.0}
+\def\fileversion{1.1}
\def\filedate{2002/04/20}
\ProvidesPackage{checkend}[2002/04/20 v1.0 Environment checking]
@@ -52,4 +46,26 @@
\AtEndDocument{\chkend@checkend}
-\endinput \ No newline at end of file
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/bezos/dotlessi.sty b/Master/texmf-dist/tex/latex/bezos/dotlessi.sty
index a2b646f9186..21f079b2b68 100644
--- a/Master/texmf-dist/tex/latex/bezos/dotlessi.sty
+++ b/Master/texmf-dist/tex/latex/bezos/dotlessi.sty
@@ -1,14 +1,8 @@
-% +--------------------------------------------------+
-% | Documentation in clear text follows |
-% +--------------------------------------------------+
%
-% (c) 1999 Javier Bezos. All Rights Reserved.
+% Copyright (C) 1999-2019 Javier Bezos http://www.texnia.com
%
-% This file can be redistributed and/or modified under the terms
-% of the LaTeX Project Public License Distributed from CTAN
-% archives in directory macros/latex/base/lppl.txt; either
-% version 1 of the License, or any later version.
-%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
% Usage
% ~~~~~
@@ -26,10 +20,10 @@
% Code
% ~~~~
-\def\fileversion{1.0}
+\def\fileversion{1.1}
\def\filedate{1999/10/12}
-\ProvidesPackage{dotlessi}[1999/10/12 v1.0 Dotless i/j for Math]
+\ProvidesPackage{dotlessi}[1999/10/12 v1.1 Dotless i/j for Math]
\expandafter\def\expandafter\@uclclist\expandafter
{\@uclclist\dotlessi\i\dotlessj\j}
@@ -57,3 +51,25 @@
\DeclareRobustCommand\dotlessj{\dotl@make\j\jmath}
\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Master/texmf-dist/tex/latex/bezos/esindex.sty b/Master/texmf-dist/tex/latex/bezos/esindex.sty
index 3b2d61e02c0..ac00170d3a8 100644
--- a/Master/texmf-dist/tex/latex/bezos/esindex.sty
+++ b/Master/texmf-dist/tex/latex/bezos/esindex.sty
@@ -1,25 +1,11 @@
-% +--------------------------------------------------+
-% | Typeset ensindex.tex to get the documentation. |
-% +--------------------------------------------------+
%
-%% Copyright (C) 1998-2004, 2006, 2008 Javier Bezos
-%% All Rights Reserved
-%% http://www.tex-tipografia.com
-%%
-%% 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 2003/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% This Current Maintainer of this work is Javier Bezos.
-%%
-%% This work consists of the files esindex.tex and esindex.sty.
-
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
+%
+% Repository: https://github.com/jbezos/esindex
+%
% Changes
%
% 2006-05-12. Bug fixed. Missing accents in multilevel entries.
@@ -29,44 +15,50 @@
% Macro \ignorewords.
% 2008-09-28. Added \everyesindex.
% Macro \esindexsort.
+% 2019-01-25. Macro \esindexactual.
+% Package option nospanish.
+% Adapted to xe/lua, with:
+% Macros \esindexreplace, \esindexlastchar, \esindexkey
-\ProvidesPackage{esindex}[2008/09/28 v1.4 Spanish indexes]
+\ProvidesPackage{esindex}[2019/01/28 v1.5 Spanish indexes]
\def\esx@level{`\!}
\def\esx@actual{`\@}
\def\esx@encap{`\|}
\def\esx@quote{`\"}
+\DeclareOption{ignorespaces}{%
+ \def\esx@zapspace#1\esx@zapspace{\zap@space#1 \@empty}}
-\def\esx@error{\PackageError{esindex}{Unknown index parameter}%
- {Except for ignorespaces and replaceindex, options^^J%
- in this package ave the form parameter=value, where^^J%
- parameter stands for of the following MakeIndex ones:^^J%
- encap, level, actual, quote}}
+\DeclareOption{replaceindex}{%
+ \AtBeginDocument{%
+ \let\esx@trueindex\index
+ \let\index\esindex}}
-\def\esx@process#1=#2\esx@process{%
- \@ifundefined{esx@#1}{\esx@error}{%
- \expandafter\edef\csname esx@#1\endcsname
- {\string`\expandafter\noexpand\csname\string#2\endcsname}}}
+\DeclareOption{nospanish}{\esx@spanishfalse}
\DeclareOption*{%
\@expandtwoargs\in@{=}{\CurrentOption}%
\ifin@
\expandafter\esx@process\CurrentOption\esx@process
\else
- \def\esx@a{ignorespaces}
- \ifx\esx@a\CurrentOption
- \def\esx@zapspace#1\esx@zapspace{\zap@space#1 \@empty}%
- \else\def\esx@a{replaceindex}
- \ifx\esx@a\CurrentOption
- \AtBeginDocument{%
- \let\esx@trueindex\index
- \let\index\esindex}
- \else
- \esx@error
- \fi
- \fi
+ \esx@error
\fi}
+\def\esx@process#1=#2\esx@process{%
+ \@ifundefined{esx@#1}{\esx@error}{%
+ \expandafter\edef\csname esx@#1\endcsname
+ {\string`\expandafter\noexpand\csname\string#2\endcsname}}}
+
+\def\esx@error{\PackageError{esindex}{Unknown index parameter}%
+ {Except for ignorespaces, nospanish, replaceindex, options^^J%
+ in this package ave the form parameter=value, where^^J%
+ parameter stands for of the following MakeIndex ones:^^J%
+ encap, level, actual, quote}}
+
+\newif\ifesx@spanish
+\esx@spanishtrue
+\let\esx@spanishaccents\relax
+\let\esx@spanishquotes\relax
\let\esx@zapspace\@empty
\def\esx@trueindex{\index}
@@ -87,7 +79,7 @@
\lowercase{
\gdef\esx@index#1#2{%
- \let\esx@g\@empty
+ \let\esx@g\@empty % used to build the keysort@actual list
\esx@bar@idx#2|\@@
\expandafter\esx@@index\esx@b!\@@
\toks@\expandafter{\esx@g}%
@@ -105,63 +97,97 @@
\gdef\esx@bar@eat#1|{\def\esx@a{|#1}}
}
+\gdef\esindexexpandkey{\protected@edef\esindexkey{\esindexkey}}
+
+% The following is called for every ! level, much like a loop. #1 is
+% the current level.
+
\lowercase{
\gdef\esx@@index#1!#2\@@{%
\begingroup
\let\IeC\@firstofone
\def\@tabacckludge##1{\csname\string##1\endcsname}%
- \def\'##1{\@ifundefined{esx@index@q@\string##1}%
- {##1}%
- {\csname esx@index@q@\string##1\endcsname}}%
- \ifnum\catcode`\'=\active
- \let'\'%
- \fi
- \def\~##1{\string##1\string^^ff}%
- \ifnum\catcode`\~=\active
- \let~\~%
- \fi
- \def\"##1{\@ifundefined{esx@index@qq@\string##1}%
- {\string"##1}%
- {\csname esx@index@qq@\string##1\endcsname}}%
- \ifnum\catcode`\"=\active
- \let"\"%
- \fi
- \def\esx@a{#1}%
- \@ifundefined{esx@sort@\expandafter\strip@prefix\meaning\esx@a}%
+ \esx@spanishaccents
+ \def\esindexkey{#1}%
+ % Apply \esindexsort
+ \@ifundefined{esx@sort@\expandafter\strip@prefix\meaning\esindexkey}%
{\@temptokena{#1}}%
{\@temptokena\expandafter\expandafter\expandafter{%
- \csname esx@sort@\expandafter\strip@prefix\meaning\esx@a\endcsname}}%
+ \csname esx@sort@\expandafter\strip@prefix\meaning\esindexkey\endcsname}}%
+ \edef\esindexkey{\the\@temptokena}%
+ % Execute \everyesindex and apply accents, so that \'a becomes a, and
+ % redefinitions in \everyesindex are also "applied"
\the\everyesindex
- % Particles
+ \esindexexpandkey
+ \esx@spanishreplacements
+ \@temptokena\expandafter{\esindexkey}%
+ % Key now in \@temptokena
+ % Particles, with \ignorewords. \esx@remwords works on \@temptokena
\@for\esx@a:=\esx@ignorewords\do{%
\expandafter\esx@remwords\expandafter{\esx@a}}%
- \toks@\expandafter{\esx@g}%
- % Adds @ and removes spaces.
+ \toks@\expandafter{\esx@g}% \esx@g here contains previous ! levels
+ % Key still in \@temptokena, now without particles.
+ % Add current key and @, and also remove spaces if 'ignorespaces'.
\protected@xdef\esx@g{%
\the\toks@
\expandafter\esx@zapspace\the\@temptokena\esx@zapspace
\string &}%
+ % Key built until now in \esx@g (including previous levels,
+ % current level key, but not the current actual entry).
\endgroup
\begingroup
- \def*##1{% <- its lower case is the quote char (")
- \ifcat##1a%
- \@ifundefined{spanish@sh@\string*\string##1@}%
- {\string*##1}%
- {\string*\string*##1}%
- \else
- \string*\string##1%
- \fi}%
- \def\esx@b{#2}%
+ % Used in the protected expansion below, and only for " in spanish:
+ \esx@spanishquotes
+ % Set actual, if there is a saved one with \esindexactual.
+ \def\esx@a{#1}%
+ \@ifundefined{esx@actual@\expandafter\strip@prefix\meaning\esx@a}%
+ {\def\esx@a{#1}}%
+ {\expandafter\let\expandafter\esx@a
+ \csname esx@actual@\expandafter\strip@prefix\meaning\esx@a\endcsname}%
+ % Add actual, and go to the next ! level
\toks@\expandafter{\esx@g}%
- \ifx\esx@b\@empty
- \protected@xdef\esx@g{\the\toks@#1}%
+ \def\esx@b{#2}%
+ \ifx\esx@b\@empty % ie, if no further ! levels
+ \protected@xdef\esx@g{\the\toks@\esx@a}%
\else
- \protected@xdef\esx@g{\the\toks@#1!}%
- \esx@@index#2\@@
+ \protected@xdef\esx@g{\the\toks@\esx@a!}%
+ \esx@@index#2\@@ % if there are, continue
\fi
\endgroup}
}
-\endgroup
+
+\ifesx@spanish
+\lowercase{
+ \def\esx@spanishquotes{%
+ \def*##1{% <- its lower case is the quote char (")
+ \ifcat##1a%
+ \@ifundefined{spanish@sh@\string*\string##1@}%
+ {\string*##1}%
+ {\string*\string*##1}%
+ \else
+ \string*\string##1%
+ \fi}}
+ \gdef\esx@spanishaccents{%
+ \def\'##1{\@ifundefined{esx@index@q@\string##1}%
+ {##1}%
+ {\csname esx@index@q@\string##1\endcsname}}%
+ \def\~##1{\string##1\esindexlastchar}%
+ \def\"##1{\@ifundefined{esx@index@qq@\string##1}%
+ {\string"##1}%
+ {\csname esx@index@qq@\string##1\endcsname}}%
+ \ifnum\catcode`\'=\active
+ \let'\'%
+ \fi
+ \ifnum\catcode`\~=\active
+ \let~\~%
+ \fi
+ \ifnum\catcode`\"=\active
+ \let"\"%
+ \fi}
+}
+\fi
+
+\endgroup % Finishes special catcodes
\def\ignorewords#1{%
\protected@edef\esx@ignorewords{\zap@space#1 \@empty}}
@@ -186,19 +212,105 @@
\def\esx@a{#1}%
\@namedef{esx@sort@\expandafter\strip@prefix\meaning\esx@a}}
+\def\esindexactual#1{%
+ \def\esx@a{#1}%
+ \@namedef{esx@actual@\expandafter\strip@prefix\meaning\esx@a}}
+
\newtoks\everyesindex
-\def\esx@index@q@n{n\string^^ff}
-\def\esx@index@q@N{N\string^^ff}
-\@namedef{esx@index@q@\string\i}{i}
+%-------------------------
+
+\long\def\esx@afterfi#1\fi{\fi#1}
+\def\esx@replace#1#2#3{% in #1 -> repl #2 by #3
+ \toks@{}%
+ \def\esx@replace@aux##1#2##2#2{%
+ \ifx\esx@nil##2%
+ \toks@\expandafter{\the\toks@##1}%
+ \else
+ \toks@\expandafter{\the\toks@##1#3}%
+ \esx@afterfi
+ \esx@replace@aux##2#2%
+ \fi}%
+ \expandafter\esx@replace@aux#1#2\esx@nil#2%
+ \edef#1{\the\toks@}}
+
+\def\esindexreplace#1#2{\esx@replace\esindexkey{#1}{#2}}
+
+%-------------------------
+
+\let\esx@spanishreplacements\relax
+
+\ifesx@spanish
+
+ \def\esx@index@q@n{n\esindexlastchar}
+ \def\esx@index@q@N{N\esindexlastchar}
+ \@namedef{esx@index@q@\string\i}{i}
+
+ \def\esx@index@qq@o{.o}
+ \def\esx@index@qq@O{.O}
+ \def\esx@index@qq@a{.a}
+ \def\esx@index@qq@A{.A}
+ \def\esx@index@qq@u{u}
+ \def\esx@index@qq@U{U}
+ \def\esx@index@qq@c{c}
+ \def\esx@index@qq@C{C}
+
+ \def\esx@@spanishreplacements{%
+ \esindexreplace{á}{a}%
+ \esindexreplace{é}{e}%
+ \esindexreplace{í}{i}%
+ \esindexreplace{ó}{o}%
+ \esindexreplace{ú}{u}%
+ \esindexreplace{ñ}{n\esindexlastchar}%
+ \esindexreplace{ü}{u}%
+ \esindexreplace{Á}{A}%
+ \esindexreplace{É}{E}%
+ \esindexreplace{Í}{I}%
+ \esindexreplace{Ó}{O}%
+ \esindexreplace{Ú}{U}%
+ \esindexreplace{Ñ}{N\esindexlastchar}%
+ \esindexreplace{Ü}{U}}
+
+\fi
+
+\begingroup
+ \catcode`\^=7
+ \ifx\directlua\@undefined
+ \ifx\XeTeXinterchartoks\@undefined
+ \catcode`\^^ff=12
+ \xdef\esindexlastchar{^^ff}
+ \else
+ \catcode`\^^^^ffff=12
+ \xdef\esindexlastchar{^^^^ffff}
+ \global\let\esx@spanishreplacements\esx@@spanishreplacements
+ \fi
+ \else
+ \catcode`\^^^^ffff=12
+ \xdef\esindexlastchar{^^^^ffff}
+ \global\let\esx@spanishreplacements\esx@@spanishreplacements
+ \fi
+\endgroup
+
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
-\def\esx@index@qq@o{.o}
-\def\esx@index@qq@O{.O}
-\def\esx@index@qq@a{.a}
-\def\esx@index@qq@A{.A}
-\def\esx@index@qq@u{u}
-\def\esx@index@qq@U{U}
-\def\esx@index@qq@c{c}
-\def\esx@index@qq@C{C}
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
-\endinput \ No newline at end of file
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/bezos/soulpos.sty b/Master/texmf-dist/tex/latex/bezos/soulpos.sty
index 7035b7e6f4a..d32deec72ba 100644
--- a/Master/texmf-dist/tex/latex/bezos/soulpos.sty
+++ b/Master/texmf-dist/tex/latex/bezos/soulpos.sty
@@ -1,26 +1,13 @@
-% +--------------------------------------------------+
-% | Typeset soulpos.tex to get the documentation. |
-% +--------------------------------------------------+
%
-%% Copyright (C) 2012 Javier Bezos
-%% All Rights Reserved
-%% http://www.tex-tipografia.com
-%%
-%% 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 2003/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% This Current Maintainer of this work is Javier Bezos.
-%%
-%% This work consists of the files soulpos.tex and soulpos.sty.
-
-\ProvidesPackage{soulpos}[2012/02/25 v1.0 Fancy underlining]
+% Copyright (C) 2012-2019 Javier Bezos http://www.texnia.com
+%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
+%
+% Repository: https://github.com/jbezos/esindex
+%
+
+\ProvidesPackage{soulpos}[2012/02/25 v1.1 Fancy underlining]
\newcount\ulp@subcnt
\newcount\ulp@cnt
@@ -271,5 +258,28 @@
\expandafter\@secondoftwo
\fi}
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Master/texmf-dist/tex/latex/bezos/subdocs.sty b/Master/texmf-dist/tex/latex/bezos/subdocs.sty
index 374fab2a182..9cb64cbbd07 100644
--- a/Master/texmf-dist/tex/latex/bezos/subdocs.sty
+++ b/Master/texmf-dist/tex/latex/bezos/subdocs.sty
@@ -1,24 +1,9 @@
-% +--------------------------------------------------+
-% | Documentation in clear text follows |
-% +--------------------------------------------------+
%
-%% Copyright (C) 2009 Javier Bezos
-%% All Rights Reserved
-%% http://www.tex-tipografia.com
-%%
-%% 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 2003/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% This Current Maintainer of this work is Javier Bezos.
-%%
-%% This work consists of this file.
+% Copyright (C) 2009-2019 Javier Bezos http://www.texnia.com
+%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
+%
%
% Usage
% ~~~~~
@@ -149,4 +134,26 @@
\ProcessOptions
\InputIfFileExists{\sdoc@a}{}{}%
-\endinput \ No newline at end of file
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/bezos/tensind.sty b/Master/texmf-dist/tex/latex/bezos/tensind.sty
index 2c9cc1bbc8e..77a42d64b82 100644
--- a/Master/texmf-dist/tex/latex/bezos/tensind.sty
+++ b/Master/texmf-dist/tex/latex/bezos/tensind.sty
@@ -1,19 +1,14 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
%
-% This file is copyrighted (c) 1998 by Javier Bezos.
-% All Rights Reserved.
-%
-% This program can be redistributed and/or modified under the terms
-% of the LaTeX Project Public License Distributed from CTAN
-% archives in directory macros/latex/base/lppl.txt; either
-% version 1 of the License, or any later version.
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
+%
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
+%
%
% Release
% ~~~~~~~
-\ProvidesPackage{tensind}[1998/05/01 v1.0 Tensorial Indexes]
+\ProvidesPackage{tensind}[1998/05/01 v1.1 Tensorial Indexes]
\@tempcnta=\the\catcode`^
\@tempcntb=\the\catcode`_
@@ -75,7 +70,7 @@
\gdef?{\begingroup\catcode`_=8 \catcode`^=7 %
\def\tsi@end{#1}\def?{\endtensor\endgroup}%
\@ifnextchar[{\tsi@otensor}{\tsi@xtensor}}}}}
-
+
\endgroup
\def\tsi@otensor[#1]{\tensorformat{#1}\tsi@xtensor}
@@ -121,7 +116,7 @@
\tsi@appendto{\tsi@thedots}\tsi@thesp
\let\tsi@gap\relax
\def\tsi@thedots{}}
-
+
\def\tsi@switchsb{%
\let\tsi@addindex\tsi@addsb
\iftsi@bot
@@ -159,7 +154,7 @@
\def\tsi@dot#1{%
\setbox\z@\hbox{$\tsi@fam\m@th\tsi@index#1$}%
\hbox to\wd\z@{\hss$\tsi@fam\m@th\tsi@index\indexdot$\hss}}
-
+
\newdimen\primes
\def\endtensor{%
@@ -200,7 +195,6 @@
{\tsi@endtensor\scriptstyle\scriptscriptstyle}%
{\tsi@endtensor\scriptscriptstyle\scriptscriptstyle}}
-
\def\tsi@endtensor#1#2{%
\let\tsi@text#1\let\tsi@index#2%
\setbox\z@ \hbox{$\tsi@fam\m@th#1\tsi@nucl_{x}$}%
@@ -236,7 +230,7 @@
\fi\fi
\fi
\iftsi@top^{\tsi@a\box\tw@\kern-\tsi@dimen\tsi@a\box\z@}\fi}
-
+
\def\tsi@phantom#1{%
\setbox\tw@\null
\setbox\z@\hbox{$\tsi@fam\m@th\tsi@index#1$}%
@@ -246,7 +240,7 @@
\def\whenindex#1#2#3{%
\expandafter\def\csname tsi@cmd\expandafter\string#1\endcsname{%
\def\tsi@theindex{#2}#3}}
-
+
\whenindex{'}{\prime}{}
\def\spadjust#1#2{%
@@ -276,9 +270,32 @@
\fi
\fi
\fi}
-
\def\omitdot{\tsi@nodottrue}
\def\finishdots{\tsi@nodottrue\let\tsi@nodotfalse\relax}
\catcode`^=\@tempcnta\catcode`_=\@tempcntb
+
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.