diff options
author | Karl Berry <karl@freefriends.org> | 2017-03-13 21:10:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-03-13 21:10:24 +0000 |
commit | ef358fe94be17fdea4c6cc28e6dc730a9a1d3d85 (patch) | |
tree | 3c38004158fc07fc2a7e35f395e983ab79092764 /Master/texmf-dist/source | |
parent | 980656ea4ee513b352a7c4fcb0b065bd7eb2bbd3 (diff) |
l3
git-svn-id: svn://tug.org/texlive/trunk@43488 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
10 files changed, 65 insertions, 29 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/expl3.dtx b/Master/texmf-dist/source/latex/l3kernel/expl3.dtx index 55659a6b4e4..99dea9f36ef 100644 --- a/Master/texmf-dist/source/latex/l3kernel/expl3.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/expl3.dtx @@ -23,8 +23,8 @@ %<*driver|generic|package> \def\ExplFileName{expl3}% \def\ExplFileDescription{L3 programming layer}% -\def\ExplFileDate{2017/03/07}% -\def\ExplFileVersion{6984}% +\def\ExplFileDate{2017/03/11}% +\def\ExplFileVersion{6988}% %</driver|generic|package> %<*driver> \documentclass[full]{l3doc} diff --git a/Master/texmf-dist/source/latex/l3kernel/l3fp-logic.dtx b/Master/texmf-dist/source/latex/l3kernel/l3fp-logic.dtx index 3beb67d2dc4..1c723576874 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3fp-logic.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3fp-logic.dtx @@ -22,7 +22,7 @@ % %<*driver> \documentclass[full]{l3doc} -\GetIdInfo$Id: l3fp-logic.dtx 6967 2017-02-20 14:51:30Z bruno $ +\GetIdInfo$Id: l3fp-logic.dtx 6987 2017-03-11 01:06:52Z bruno $ {L3 Floating-point conditionals} \begin{document} \DocInput{\jobname.dtx} @@ -480,6 +480,26 @@ % % \subsection{Boolean operations} % +% \begin{macro}[int, EXP]{\@@_sign_o:w} +% \begin{macro}[aux, EXP]{\@@_sign_aux_o:w} +% Find the sign of the floating point: \texttt{nan}, |+0|, |-0|, |+1| or |-1|. +% \begin{macrocode} +\cs_new:Npn \@@_sign_o:w ? \s_@@ \@@_chk:w #1#2; @ + { + \if_case:w #1 \exp_stop_f: + \@@_case_return_same_o:w + \or: \exp_after:wN \@@_sign_aux_o:w + \or: \exp_after:wN \@@_sign_aux_o:w + \else: \@@_case_return_same_o:w + \fi: + \s_@@ \@@_chk:w #1 #2; + } +\cs_new:Npn \@@_sign_aux_o:w \s_@@ \@@_chk:w #1 #2 #3 ; + { \@@_exp_after_o:w \s_@@ \@@_chk:w 1#2{1}{1000}{0000}{0000}{0000}; } +% \end{macrocode} +% \end{macro} +% \end{macro} +% % \begin{macro}[int, EXP]{\@@_not_o:w} % Return \texttt{true} or \texttt{false}, with two expansions, one to % exit the conditional, and one to please \pkg{l3fp-parse}. The first diff --git a/Master/texmf-dist/source/latex/l3kernel/l3fp-parse.dtx b/Master/texmf-dist/source/latex/l3kernel/l3fp-parse.dtx index 1aa0956212d..a25ce0967a0 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3fp-parse.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3fp-parse.dtx @@ -22,7 +22,7 @@ % %<*driver> \documentclass[full]{l3doc} -\GetIdInfo$Id: l3fp-parse.dtx 6943 2017-02-17 16:47:59Z bruno $ +\GetIdInfo$Id: l3fp-parse.dtx 6987 2017-03-11 01:06:52Z bruno $ {L3 Floating-point expression parsing} \begin{document} \DocInput{\jobname.dtx} @@ -2040,7 +2040,8 @@ % \@@_parse_word_abs:N , % \@@_parse_word_exp:N , % \@@_parse_word_ln:N , -% \@@_parse_word_sqrt:N , +% \@@_parse_word_sign:N , +% \@@_parse_word_sqrt:N , % } % Unary functions. % \begin{macrocode} @@ -2050,6 +2051,8 @@ { \@@_parse_unary_function:nNN {exp} ? } \cs_new:Npn \@@_parse_word_ln:N { \@@_parse_unary_function:nNN {ln} ? } +\cs_new:Npn \@@_parse_word_sign:N + { \@@_parse_unary_function:nNN {sign} ? } \cs_new:Npn \@@_parse_word_sqrt:N { \@@_parse_unary_function:nNN {sqrt} ? } % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx b/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx index 14b450c1320..5fdc2ebde85 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3fp.dtx @@ -24,7 +24,7 @@ \documentclass[full]{l3doc} %</driver> %<*driver|package> -\GetIdInfo$Id: l3fp.dtx 6923 2017-02-14 03:07:25Z bruno $ +\GetIdInfo$Id: l3fp.dtx 6987 2017-03-11 01:06:52Z bruno $ {L3 Floating points} %</driver|package> %<*driver> @@ -74,7 +74,8 @@ % \item Comparison operators: $x\mathop{\mathtt{<}}y$, % $x\mathop{\mathtt{<=}}y$, $x\mathop{\mathtt{>?}}y$, % $x\mathop{\mathtt{!=}}y$ \emph{etc.} -% \item Boolean logic: negation $\mathop{!}x$, conjunction +% \item Boolean logic: sign $\operatorname{sign} x$, +% negation $\mathop{!}x$, conjunction % $x\mathop{\&\&}y$, disjunction $x\mathop{\vert\vert}y$, ternary % operator $x\mathop{?}y\mathop{:}z$. % \item Exponentials: $\exp x$, $\ln x$, $x^y$. @@ -1015,6 +1016,16 @@ % infinite (this can only happen if $\meta{fpexpr_2}\string<-9984$). % \end{function} % +% \begin{function}[tested = m3fp-logic002]{sign} +% \begin{syntax} +% \cs{fp_eval:n} \{ |sign(| \meta{fpexpr} |)| \} +% \end{syntax} +% Evaluates the \meta{fpexpr} and determines its sign: $+1$ for +% positive numbers and for $+\infty$, $-1$ for negative numbers and +% for $-\infty$, $\pm 0$ for $\pm 0$, and \nan{} for \nan{}. This +% operation does not raise exceptions. +% \end{function} +% % \begin{function}[updated = 2013-11-17, tested = m3fp-trig001] % {sin, cos, tan, cot, csc, sec} % \begin{syntax} diff --git a/Master/texmf-dist/source/latex/l3kernel/l3oldmodules.dtx b/Master/texmf-dist/source/latex/l3kernel/l3oldmodules.dtx index 349c59adbdd..1bba6465684 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3oldmodules.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3oldmodules.dtx @@ -21,7 +21,7 @@ % for those people who are interested. % %<*driver|oldmodules> -\def\ExplFileDate{2017/03/07} +\def\ExplFileDate{2017/03/11} %</driver|oldmodules> %<*driver> \documentclass[full]{l3doc} diff --git a/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx b/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx index 4217a5917b6..6468a2e6c06 100644 --- a/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx +++ b/Master/texmf-dist/source/latex/l3packages/l3keys2e/l3keys2e.dtx @@ -23,8 +23,8 @@ %<*driver|package> % The version of expl3 required is tested as early as possible, as % some really old versions do not define \ProvidesExplPackage. -\RequirePackage{expl3}[2017/03/07] -%<package>\@ifpackagelater{expl3}{2017/03/07} +\RequirePackage{expl3}[2017/03/11] +%<package>\@ifpackagelater{expl3}{2017/03/11} %<package> {} %<package> {% %<package> \PackageError{l3keys2e}{Support package l3kernel too old} @@ -38,8 +38,8 @@ %<package> } \def\ExplFileName{l3keys2e} \def\ExplFileDescription{LaTeX2e option processing using LaTeX3 keys} -\def\ExplFileDate{2017/03/07} -\def\ExplFileVersion{6984} +\def\ExplFileDate{2017/03/11} +\def\ExplFileVersion{6988} %</driver|package> %<*driver> \documentclass[full]{l3doc} diff --git a/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx b/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx index 46d1becb514..cc1e0bb571f 100644 --- a/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xfp/xfp.dtx @@ -23,8 +23,8 @@ %<*driver|package> % The version of expl3 required is tested as early as possible, as % some really old versions do not define \ProvidesExplPackage. -\RequirePackage{expl3}[2017/03/07] -%<package>\@ifpackagelater{expl3}{2017/03/07} +\RequirePackage{expl3}[2017/03/11] +%<package>\@ifpackagelater{expl3}{2017/03/11} %<package> {} %<package> {% %<package> \PackageError{xfpu}{Support package l3kernel too old} @@ -36,10 +36,11 @@ %<package> }% %<package> \endinput %<package> } +%<package>\RequirePackage{xparse} \def\ExplFileName{xfp} \def\ExplFileDescription{LaTeX Floating Point Unit} -\def\ExplFileDate{2017/03/07} -\def\ExplFileVersion{6984} +\def\ExplFileDate{2017/03/11} +\def\ExplFileVersion{6988} %</driver|package> %<*driver> \documentclass[full]{l3doc} @@ -92,7 +93,8 @@ % \item Comparison operators: $x\mathop{\mathtt{<}}y$, % $x\mathop{\mathtt{<=}}y$, $x\mathop{\mathtt{>?}}y$, % $x\mathop{\mathtt{!=}}y$ \emph{etc.} -% \item Boolean logic: negation $\mathop{!}x$, conjunction +% \item Boolean logic: sign $\operatorname{sign} x$, +% negation $\mathop{!}x$, conjunction % $x\mathop{\&\&}y$, disjunction $x\mathop{\vert\vert}y$, ternary % operator $x\mathop{?}y\mathop{:}z$. % \item Exponentials: $\exp x$, $\ln x$, $x^y$. diff --git a/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx b/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx index d593178b19a..363cbbd9460 100644 --- a/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xfrac/xfrac.dtx @@ -24,8 +24,8 @@ %<*driver|package> % The version of expl3 required is tested as early as possible, as % some really old versions do not define \ProvidesExplPackage. -\RequirePackage{expl3}[2017/03/07] -%<package>\@ifpackagelater{expl3}{2017/03/07} +\RequirePackage{expl3}[2017/03/11] +%<package>\@ifpackagelater{expl3}{2017/03/11} %<package> {} %<package> {% %<package> \PackageError{xfrac}{Support package l3kernel too old} @@ -40,8 +40,8 @@ \RequirePackage{amstext,graphicx,l3keys2e,textcomp,xparse,xtemplate} \def\ExplFileName{xfrac} \def\ExplFileDescription{L3 Experimental split-level fractions} -\def\ExplFileDate{2017/03/07} -\def\ExplFileVersion{6984} +\def\ExplFileDate{2017/03/11} +\def\ExplFileVersion{6988} %</driver|package> %<*driver> \documentclass[full]{l3doc} diff --git a/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx b/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx index 353aba233b0..06a424ba694 100644 --- a/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xparse/xparse.dtx @@ -27,8 +27,8 @@ %<*driver|package> % The version of expl3 required is tested as early as possible, as % some really old versions do not define \ProvidesExplPackage. -\RequirePackage{expl3}[2017/03/07] -%<package>\@ifpackagelater{expl3}{2017/03/07} +\RequirePackage{expl3}[2017/03/11] +%<package>\@ifpackagelater{expl3}{2017/03/11} %<package> {} %<package> {% %<package> \PackageError{xparse}{Support package l3kernel too old} @@ -42,8 +42,8 @@ %<package> } \def\ExplFileName{xparse} \def\ExplFileDescription{L3 Experimental document command parser} -\def\ExplFileDate{2017/03/07} -\def\ExplFileVersion{6984} +\def\ExplFileDate{2017/03/11} +\def\ExplFileVersion{6988} %</driver|package> %<*driver> \documentclass[full]{l3doc} diff --git a/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx b/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx index a749c690157..d4a436f4c09 100644 --- a/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx +++ b/Master/texmf-dist/source/latex/l3packages/xtemplate/xtemplate.dtx @@ -27,8 +27,8 @@ %<*driver|package> % The version of expl3 required is tested as early as possible, as % some really old versions do not define \ProvidesExplPackage. -\RequirePackage{expl3}[2017/03/07] -%<package>\@ifpackagelater{expl3}{2017/03/07} +\RequirePackage{expl3}[2017/03/11] +%<package>\@ifpackagelater{expl3}{2017/03/11} %<package> {} %<package> {% %<package> \PackageError{xtemplate}{Support package l3kernel too old} @@ -42,8 +42,8 @@ %<package> } \def\ExplFileName{xtemplate} \def\ExplFileDescription{L3 Experimental prototype document functions} -\def\ExplFileDate{2017/03/07} -\def\ExplFileVersion{6984} +\def\ExplFileDate{2017/03/11} +\def\ExplFileVersion{6988} %</driver|package> %<*driver> \documentclass[full]{l3doc} |