summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-05-18 21:09:37 +0000
committerKarl Berry <karl@freefriends.org>2018-05-18 21:09:37 +0000
commit1ecb2b00c0a4ffbeb2df7551525038619e9ce76a (patch)
tree06a2f8581c6d5c5ae8fc1486505870330c4bf597 /Master/texmf-dist/source/latex
parentea830bc30a1fd7ace53e211c3c63e4c4d6856d00 (diff)
siunitx (18may18)
git-svn-id: svn://tug.org/texlive/trunk@47746 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx224
1 files changed, 108 insertions, 116 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index 23929b12d8d..9fc30aa9920 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
@@ -565,116 +565,128 @@ This work consists of the file siunitx.dtx
% number is given}
%\changes{v2.4n}{2012/04/04}{Allow conversion of numbers with more than
% nine digits to scientific notation}
-%\changes{v2.5}{2012/04/07}{Minor change to table code to give fewer underfull
-% boxes when comparators are used}
-%\changes{v2.5}{2012/04/08}{Reduced number of intrinsically-mathematical
-% options}
-%\changes{v2.5a}{2012/04/19}{When creating free-standing unit, allow
-% for \enquote{dynamic} nature of spacing (bug introduced in v2.5)}
-%\changes{v2.5b}{2012/04/20}{Deal correctly with \texttt{\^} and \texttt{\_}
-% in literal units when \pkg{breqn} package is loaded}
-%\changes{v2.5b}{2012/04/20}{Detect \pkg{eulervm} package and alter
-% math mode font setting accordingly}
-%\changes{v2.5c}{2012/04/03}{Allow conversion of numbers with more than
-% nine digits when using fixed exponents}
-%\changes{v2.5c}{2012/05/03}{Detect entirely empty cells in \texttt{s} columns}
-%\changes{v2.5d}{2012/06/11}{Extend range of settings automatically altered
-% to use UTF-8 values is appropriate}
-%\changes{v2.5e}{2012/06/13}{Fix an internal error in unit expansion,
-% introduced in v2.4f}
-%\changes{v2.5f}{2012/07/16}{Track changes in \pkg{expl3}}
-%\changes{v2.5h}{2012/08/28}{Alter literal unit test to allow spaces in
-% units to be ignored}
-%\changes{v2.5i}{2012/09/11}{Fix alignment of values without uncertainties in
-% columns where space is reserved for uncertainties}
-%\changes{v2.5j}{2012/09/18}{Fix rounding when uncertainties are present}
-%\changes{v2.5k}{2012/09/20}{Store fraction function as a macro rather than
-% using \cs{let}: fixes a warning with \pkg{amsmath}}
-%\changes{v2.5k}{2012/11/13}{Skip spaces correctly after start of document}
-%\changes{v2.5l}{2012/11/21}{Track changes in \pkg{expl3}}
-%\changes{v2.5m}{2012/11/27}{Fix bug with UTF8 engines and literal units}
-%\changes{v2.5m}{2012/11/27}{Handle \cs{highlight} correctly in bookmarks}
-%\changes{v2.5m}{2012/11/27}{Load \opt{binary-units} only if requested}
-%\changes{v2.5m}{2012/11/27}{Allow for right-to-left mode with \pkg{bidi}
-% package}
-%\changes{v2.5n}{2012/12/29}{Fix transmission of grouping information by
-% \cs{SendSettingsToPgf}}
-%\changes{v2.5o}{2013/01/09}{Update internals to track \pkg{expl3} changes}
-%\changes{v2.5p}{2013/02/01}{Fix printing of \cs{pm} and \cs{mp} when used
-% as signs in text mode}
-%\changes{v2.5q}{2013/03/10}{Replace active \texttt{-} in numbers with
-% standard hyphen}
-%\changes{v2.5q}{2013/03/10}{Reorder internals to allow for binary units
-% in tables}
-%\changes{v2.5r}{2013/07/11}{Update internals to track \pkg{expl3} changes}
-%\changes{v2.5s}{2013/07/31}{Update internals to track \pkg{expl3} changes}
-% \changes{v2.6}{2013/11/19}{Allow for loading of \pkg{mdwtab}}
-% \changes{v2.6}{2014/09/03}{Produce proper minus sign when \pkg{tex4ht}
-% is in use}
-% \changes{v2.6}{2014/09/03}{Fix spacing when printing comparators}
-% \changes{v2.6}{2014/09/04}{Fix printing of uncertainties when the
+% \changes{v2.5}{2012/04/07}{Fixed table code to give fewer underfull
+% boxes when comparators are used}
+% \changes{v2.5}{2015/04/07}{Added \opt{zero-decimal-to-integer} option}
+% \changes{v2.5}{2012/04/07}{Added \opt{omit-uncertainty} option}
+% \changes{v2.5}{2012/04/08}{Modified \opt{fixed-exponent} such that it can
+% remove an exponent part}
+% \changes{v2.5}{2012/04/08}{Modified number of intrinsically-mathematical
+% options}
+% \changes{v2.5a}{2012/04/19}{Fixed support for \enquote{dynamic} nature of spacing
+% in free standing units (bug introduced in v2.5)}
+% \changes{v2.5b}{2012/04/20}{Fixed treatement \texttt{\^} and \texttt{\_}
+% in literal units when \pkg{breqn} package is loaded}
+% \changes{v2.5b}{2012/04/20}{Added support for \pkg{eulervm} package}
+% \changes{v2.5c}{2012/04/03}{Fixed conversion of numbers with more than
+% nine digits when using fixed exponents}
+% \changes{v2.5c}{2012/05/03}{Modified treatment entirely empty cells in
+% \texttt{s} columns}
+% \changes{v2.5d}{2012/06/11}{Extend range of settings automatically altered
+% to use UTF-8 values is appropriate}
+% \changes{v2.5d}{2012/06/11}{Added \opt{qualifier-phrase} option}
+% \changes{v2.5d}{2012/06/11}{Added \opt{phrase} choice for \opt{qualifier-mode}
+% option}
+% \changes{v2.5e}{2012/06/13}{Fixed an internal error in unit expansion
+% introduced in v2.4f}
+% \changes{v2.5f}{2012/07/16}{Modified internals to track \pkg{expl3} changes}
+% \changes{v2.5g}{2012/07/22}{Fixed \opt{binary-units} option}
+% \changes{v2.5h}{2012/08/28}{Modified literal unit test to allow spaces in
+% units to be ignored}
+% \changes{v2.5i}{2012/09/11}{Fixed alignment of values without uncertainties in
+% columns where space is reserved for uncertainties}
+% \changes{v2.5j}{2012/09/18}{Fixed rounding when uncertainties are present}
+% \changes{v2.5k}{2012/09/20}{Fixed a warning with \pkg{amsmath} related to fraction
+% functions}
+% \changes{v2.5k}{2012/11/13}{Fixed handling spaces correctly after start of document}
+% \changes{v2.5l}{2012/11/21}{Modified internals to track \pkg{expl3} changes}
+% \changes{v2.5m}{2012/11/27}{Fixed bug with UTF-8 engines and literal units}
+% \changes{v2.5m}{2012/11/27}{Fixed \cs{highlight} behavior in bookmarks}
+% \changes{v2.5m}{2012/11/27}{Modified loading of \opt{binary-units}}
+% \changes{v2.5m}{2012/11/27}{Fixed right-to-left mode with \pkg{bidi}
+% package}
+% \changes{v2.5n}{2012/12/29}{Fixed transmission of grouping information by
+% \cs{SendSettingsToPgf}}
+% \changes{v2.5o}{2013/01/09}{Modified internals to track \pkg{expl3} changes}
+% \changes{v2.5p}{2013/02/01}{Fixed printing of \cs{pm} and \cs{mp} when used
+% as signs in text mode}
+% \changes{v2.5q}{2013/03/10}{Fixed use active \texttt{-} in numbersn}
+% \changes{v2.5q}{2013/03/10}{Fixed binary units in tables}
+% \changes{v2.5r}{2013/07/11}{Modified internals to track \pkg{expl3} changes}
+% \changes{v2.5s}{2013/07/31}{Modified internals to track \pkg{expl3} changes}
+% \changes{v2.6}{2013/11/19}{Fixed loading when \pkg{mdwtab} is in use}
+% \changes{v2.6}{2014/09/03}{Fixed minus sign when \pkg{tex4ht} is in use}
+% \changes{v2.6}{2014/09/03}{Fixed spacing when printing comparators}
+% \changes{v2.6}{2014/09/03}{Modified treatment of hard spaces (\texttt{\~}) in
+% argument of \cs{num}}
+% \changes{v2.6}{2014/09/03}{Modified standard setting for \opt{mode} option
+% to \opt{math}}
+% \changes{v2.6}{2014/09/04}{Fixed printing of uncertainties when the
% input is an integer and the uncertainty is given as a separate part}
-% \changes{v2.6}{2014/09/04}{Preserve standard meaning of \cs{fg} in
+% \changes{v2.6}{2014/09/04}{Fixed definition \cs{fg} in
% bookmarks when \pkg{babel} is loaded with the \opt{french} option}
-% \changes{v2.6a}{2014/09/15}{Better glyph selection when \pkg{fontspec}
+% \changes{v2.6}{2014/09/05}{Fixed printing exponent in tables when
+% \opt{output-exponent-marker} is active}
+% \changes{v2.6a}{2014/09/15}{Modified glyph selection when \pkg{fontspec}
% is detected}
-% \changes{v2.6b}{2014/09/27}{Extend range of font shapes which can be
+% \changes{v2.6b}{2014/09/27}{Modified range of font shapes which can be
% detected}
-% \changes{v2.6c}{2014/10/01}{Fix use of \cs{micro} when \pkg{fontspec}
+% \changes{v2.6c}{2014/10/01}{Fixed use of \cs{micro} when \pkg{fontspec}
% is loaded but \pkg{unicode-math} is not}
-% \changes{v2.6d}{2014/10/07}{Fix conversion of \enquote{long} to
+% \changes{v2.6d}{2014/10/07}{Fixed conversion of \enquote{long} to
% \enquote{short} uncertainty values with integer mantissas}
-% \changes{v2.6e}{2015/01/21}{Auto-detect some packages where \pkg{fontspec}
-% should not affect default symbol use}
-% \changes{v2.6f}{2015/04/01}{Fix \opt{table-sign-exponent} and
+% \changes{v2.6e}{2015/01/21}{Modified symbol selection where \pkg{fontspec}
+% and certain other packages are in use}
+% \changes{v2.6f}{2015/04/01}{Fixed \opt{table-sign-exponent} and
% \opt{table-sign-mantissa} options when set \opt{false}}
-% \changes{v2.6f}{2015/04/04}{Further work on \pkg{mathspec}}
-% \changes{v2.6g}{2015/06/24}{Fix issue with empty table cells}
-% \changes{v2.6h}{2015/07/17}{Update internals to track \pkg{expl3} changes}
-% \changes{v2.6i}{2015/08/18}{Fix rounding of numbers with large numbers of
+% \changes{v2.6f}{2015/04/04}{Modified detection of \pkg{mathspec}}
+% \changes{v2.6g}{2015/06/24}{Fixed issue with empty table cells}
+% \changes{v2.6h}{2015/07/17}{Modified internals to track \pkg{expl3} changes}
+% \changes{v2.6i}{2015/08/18}{Fixed rounding of numbers with large numbers of
% digits}
-% \changes{v2.6i}{2015/08/18}{Fix behaviour of \cs{cancel} when printing
+% \changes{v2.6i}{2015/08/18}{Fixed behaviour of \cs{cancel} when printing
% in math mode}
-% \changes{v2.6j}{2015/09/01}{Print all units when \opt{exponent-to-prefix}
-% is set}
-% \changes{v2.6j}{2015/09/01}{Print $\pm$ correctly when
+% \changes{v2.6j}{2015/09/01}{Fixed printing of all units when
+% \opt{exponent-to-prefix} is set}
+% \changes{v2.6j}{2015/09/01}{Fixed appearance of $\pm$ when
% \opt{exponent-to-prefix} is set}
-% \changes{v2.6k}{2015/09/12}{Track \pkg{expl3} changes}
-% \changes{v2.6l}{2015/09/14}{Fix an internal error}
-% \changes{v2.6m}{2015/10/15}{Address an issue with \pkg{mwtab}}
-% \changes{v2.6n}{2015/12/31}{Improve definition for degree Celsius}
-% \changes{v2.6n}{2015/12/31}{Fix angstrom symbol with \LuaTeX{}}
-% \changes{v2.6o}{2016/01/05}{Allow for unit powers when converting exponents
+% \changes{v2.6k}{2015/09/12}{Modified internals to track \pkg{expl3} changes}
+% \changes{v2.6l}{2015/09/14}{Fixed an internal error}
+% \changes{v2.6m}{2015/10/15}{Fixed an issue with \pkg{mwtab}}
+% \changes{v2.6n}{2015/12/31}{Modified definition for degree Celsius}
+% \changes{v2.6n}{2015/12/31}{Fixed {\aa}ngstr{\"o}m symbol with \LuaTeX{}}
+% \changes{v2.6o}{2016/01/05}{Added support for unit powers when converting exponents
% to prefixes}
-% \changes{v2.6p}{2016/01/13}{Allow for reciprocal powers when converting
+% \changes{v2.6p}{2016/01/13}{Added support for reciprocal powers when converting
% exponents to prefixes}
-% \changes{v2.6p}{2016/01/19}{Improve definition for degree Celsius}
-% \changes{v2.6q}{2016/03/01}{Correctly select font when document commands are
+% \changes{v2.6p}{2016/01/19}{Modified definition for degree Celsius}
+% \changes{v2.6q}{2016/03/01}{Fixed font selection when document commands are
% used inside table cells in \texttt{S} columns}
-% \changes{v2.6r}{2016/06/06}{Address color safety issue}
-% \changes{v2.6r}{2016/08/14}{Minor \pkg{expl3} fixes}
-% \changes{v2.6r}{2016/08/21}{Correctly handle \texttt{e0}}
-% \changes{v2.6r}{2016/08/21}{Warn when color support is not available}
-% \changes{v2.6s}{2016/09/02}{Drop one excess warning}
-% \changes{v2.7}{2016/11/11}{Start adding documented code level interfaces}
-% \changes{v2.7}{2016/11/23}{Fix when \pkg{cellspace} is applied to
+% \changes{v2.6r}{2016/06/06}{Fixed color safety issue}
+% \changes{v2.6r}{2016/08/14}{Fixed internal \pkg{expl3} usage issues}
+% \changes{v2.6r}{2016/08/21}{Fixed handling \texttt{e0}}
+% \changes{v2.6r}{2016/08/21}{Added a warning when color support is not available}
+% \changes{v2.6s}{2016/09/02}{Removed one excess warning}
+% \changes{v2.7}{2016/11/11}{Added first documented code level interfaces}
+% \changes{v2.7}{2016/11/23}{Fixed behavior when \pkg{cellspace} is applied to
% math mode material}
-% \changes{v2.7b}{2017/01/28}{Fix an issue with large numbers and
-% scientific mode}
-% \changes{v2.7c}{2017/02/01}{Fix spacing of integers in tables when
+% \changes{v2.7b}{2017/01/28}{Fixed large numbers in scientific mode}
+% \changes{v2.7c}{2017/02/01}{Fixed spacing of integers in tables when
% aligning decimal marker to center}
-% \changes{v2.7d}{2017/02/19}{Avoid doubled pre-number tokens in
-% tables}
-% \changes{v2.7g}{2017/05/19}{Avoid an issue with recent \pkg{expl3}
-% update}
-% \changes{v2.7h}{2017/06/12}{Internal changes}
-% \changes{v2.7i}{2017/07/23}{Rename an incorrect variable}
-% \changes{v2.7k}{2017/11/01}{Fix issues when units are not parsed}
-% \changes{v2.7l}{2018/03/11}{Track \pkg{unicode-math} changes}
-% \changes{v2.7n}{2018/04/27}{Fix issue with symbolic input
-% and digit grouping}
-% \changes{v2.7q}{2018/05/11}{Patch \pkg{cellspace} only if required}
-% \changes{v2.7r}{2018/05/16}{Fix issue in tabulars when REV\TeX{} is in use}
+% \changes{v2.7d}{2017/02/19}{Fixed doubled pre-number tokens in tables}
+% \changes{v2.7e}{2017/03/06}{Modified treatment of \texttt{+} }
+% \changes{v2.7f}{2017/03/23}{Fixed spacing with \opt{reciprocal-positive-first}
+% setting}
+% \changes{v2.7g}{2017/05/19}{Fixed an issue with recent \pkg{expl3} update}
+% \changes{v2.7h}{2017/06/12}{Modified code internals}
+% \changes{v2.7i}{2017/07/23}{Fixed an incorrect variable name}
+% \changes{v2.7k}{2017/11/01}{Fixed formatting of units when not parsed}
+% \changes{v2.7l}{2018/03/11}{Modified \pkg{unicode-math} support}
+% \changes{v2.7m}{2018/03/20}{Modified definition of \cs{astronomicalunit} unit}
+% \changes{v2.7n}{2018/04/27}{Fixed symbolic input and digit grouping}
+% \changes{v2.7q}{2018/05/11}{Fixed patching of \pkg{cellspace} columns}
+% \changes{v2.7r}{2018/05/16}{Fixed issue in tabulars when REV\TeX{} is in use}
+% \changes{v2.7s}{2018/05/17}{Modified package date format}
%
%\begin{abstract}
% Physical quantities have both numbers and units, and each physical
@@ -829,8 +841,6 @@ This work consists of the file siunitx.dtx
%\subsection{Numbers}
%
%\DescribeMacro{\num}
-% \changes{v2.6}{2014/09/03}{Ignore hard spaces (\texttt{\~}) in
-% argument of \cs{num}}
%\begin{syntax}
% \cs{num}\oarg{options}\marg{number}
%\end{syntax}
@@ -1110,7 +1120,6 @@ This work consists of the file siunitx.dtx
%\end{table}
%\begin{table}
% \changes{v2.0j}{2010/06/30}{Correct \cs{hartree} unit appearance}
-% \changes{v2.7m}{2018/03/20}{Update \cs{astronomicalunit} unit}
% \caption{Non-SI units whose values in SI units must be obtained
% experimentally.}
% \label{tab:unit:physical}
@@ -1688,8 +1697,6 @@ This work consists of the file siunitx.dtx
%\end{table}
%
%\DescribeOption{mode}
-% \changes{v2.6}{2014/09/03}{Switch standard setting for \opt{mode} option
-% to \opt{math}}
% The \opt{mode} option determines whether \pkg{siunitx} uses
% math or text mode when printing output. The choices are \opt{math} and
% \opt{text}. When using math mode, text is printed using a math font
@@ -1956,7 +1963,6 @@ This work consists of the file siunitx.dtx
% \num[round-mode = places]{1}
%\end{LaTeXdemo}
% \DescribeOption{zero-decimal-to-integer}
-% \changes{v2.5}{2011/04/07}{New \opt{zero-decimal-to-integer} option}
% It may be desirable to convert decimals to integers if the decimal part is
% zero. This is set up using the \opt{zero-decimal-to-integer} option.
%\begin{LaTeXdemo}
@@ -2090,9 +2096,6 @@ This work consists of the file siunitx.dtx
% \num{0.0100} \\
% \num{1200}
%\end{LaTeXdemo}
-% \changes{v2.5}{2012/04/08}{Slight alteration of code order so that
-% \opt{fixed-exponent} can be used to remove an exponent part from
-% numerical input}
% When used with a \opt{fixed-exponent} of zero, this may be used to remove
% scientific notation from the input
%\begin{LaTeXdemo}
@@ -2103,7 +2106,6 @@ This work consists of the file siunitx.dtx
% zero exponent, \emph{etc.}
%
% \DescribeOption{omit-uncertainty}
-% \changes{v2.5}{2012/04/07}{New \opt{omit-uncertainty} option}
% The printing of an uncertainty can be suppressed entirely using the
% \opt{omit-uncertainty} option.
%\begin{LaTeXdemo}
@@ -2244,8 +2246,6 @@ This work consists of the file siunitx.dtx
%\end{LaTeXdemo}
%\DescribeOption{output-exponent-marker}
%\changes{v2.2}{2011/04/03}{New \opt{output-exponent-marker} option}
-% \changes{v2.6}{2014/09/05}{Fix printing exponent in tables when
-% \opt{output-exponent-marker} is active}
% Alternatively, if the \opt{output-exponent-marker} option is
% set then the value stored will be used in place of the normal
% product and base combination. This will normally be set up to
@@ -2812,7 +2812,6 @@ This work consists of the file siunitx.dtx
%\end{center}
%
% \DescribeOption{binary-units}
-% \changes{v2.5g}{2012/07/22}{Fix \opt{binary-units} option}
% \DescribeMacro{\bit}
% \DescribeMacro{\byte}
% Binary data is expressed in units of bits and bytes. These are
@@ -2959,8 +2958,6 @@ This work consists of the file siunitx.dtx
%\changes{v2.2}{2011/04/05}{Include leading \( 1 \) when \opt{per-mode}
% is set to \opt{symbol} and there are no numerator units in \cs{si}
% arguments}
-% \changes{v2.7f}{2017/03/23}{Fix spacing with \opt{reciprocal-positive-first}
-% setting}
%\DescribeOption{per-symbol}
%\DescribeOption{bracket-unit-denominator}
% The handling of \cs{per} is altered using the \opt{per-mode} choice
@@ -3066,10 +3063,7 @@ This work consists of the file siunitx.dtx
%\DescribeOption{qualifier-mode}
%\changes{v2.1c}{2010/11/13}{New \opt{text} choice for
% \opt{qualifier-mode} option}
-% \changes{v2.5d}{2012/06/11}{New \opt{phrase} choice for \opt{qualifier-mode}
-% option}
% \DescribeOption{qualifier-phrase}
-% \changes{v2.5d}{2012/06/11}{New \opt{qualifier-phrase} option}
% Unit qualifiers can be printed in three different formats, set by the
% \opt{qualifier-mode} option. The standard setting is \opt{subscript},
% while the options \opt{brackets}, \opt{phrase}, \opt{space} and \opt{text}
@@ -3471,7 +3465,6 @@ This work consists of the file siunitx.dtx
% reserved for them.
%
%\DescribeOption{table-format}
-% \changes{v2.7e}{2017/03/06}{Allow \texttt{+} to indicate a sign}
% As a short cut for the preceding options, \pkg{siunitx} also
% provides the \opt{table-format} option. This can be used to give the
% same information about the space to reserve for a number in a
@@ -5228,7 +5221,7 @@ This work consists of the file siunitx.dtx
%
% The usual preliminaries.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2018-05-16} {2.7r}
+\ProvidesExplPackage {siunitx} {2018/05/17} {2.7s}
{A comprehensive (SI) units package}
% \end{macrocode}
%
@@ -5748,7 +5741,6 @@ This work consists of the file siunitx.dtx
% \end{macro}
%
% \begin{macro}{\@@_textsuperscript:n}
-% \changes{v2.6f}{2015/06/15}{FUse private copy of \cs{textsuperscript}}
% This function is set up here so that it can be redefined
% elsewhere as expandable. That is used in the bookmark system so
% that \pkg{hyperref} does not raise any unnecessary warnings. With