summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-10-28 03:01:02 +0000
committerNorbert Preining <norbert@preining.info>2021-10-28 03:01:02 +0000
commit016f3f774b941f8bae79a383009d4c9521d88b79 (patch)
treede1a4a6b3383d39032edcf92917cef46d02af5c0 /macros
parent2bc4c62a1034b71c0ac674ee8eec19b7390d2334 (diff)
CTAN sync 202110280301
Diffstat (limited to 'macros')
-rw-r--r--macros/latex/contrib/showlabels/README25
-rw-r--r--macros/latex/contrib/showlabels/VERSION2
-rw-r--r--macros/latex/contrib/showlabels/showlabels.dtx272
-rw-r--r--macros/latex/contrib/showlabels/showlabels.html91
-rw-r--r--macros/latex/contrib/showlabels/showlabels.pdfbin236692 -> 218645 bytes
-rw-r--r--macros/latex/contrib/showlabels/style.css31
-rw-r--r--macros/latex/contrib/siunitx/CHANGELOG.md9
-rw-r--r--macros/latex/contrib/siunitx/siunitx-code.pdfbin1515886 -> 1516213 bytes
-rw-r--r--macros/latex/contrib/siunitx/siunitx-complex.dtx13
-rw-r--r--macros/latex/contrib/siunitx/siunitx-symbol.dtx8
-rw-r--r--macros/latex/contrib/siunitx/siunitx.dtx2
-rw-r--r--macros/latex/contrib/siunitx/siunitx.pdfbin638356 -> 638362 bytes
12 files changed, 175 insertions, 278 deletions
diff --git a/macros/latex/contrib/showlabels/README b/macros/latex/contrib/showlabels/README
index 915e7f5308..e1cdab8471 100644
--- a/macros/latex/contrib/showlabels/README
+++ b/macros/latex/contrib/showlabels/README
@@ -1,11 +1,10 @@
Showlabels
==========
-Put the names of `\labels` and other commands into the margins of a draft
-document.
+Put the names of `\labels` and other commands into the margins of a draft document.
-Version 1.9, 2021 October 9;
-<http://purl.org/nxg/dist/showlabels>.
+Version 1.9.1, 2021 October 27;
+<https://purl.org/nxg/dist/showlabels>.
This class option helps you keep track of all the labels in your
documents, by putting the name of the new label into the margin
@@ -26,7 +25,7 @@ it can be useful for `\ref` or `\begin` as well.
Links:
- * Canonical software home page: <http://purl.org/nxg/dist/showlabels>
+ * Canonical software home page: <https://purl.org/nxg/dist/showlabels>
(use this rather than the URL it redirects to).
* On CTAN: <https://www.ctan.org/pkg/showlabels>
@@ -39,10 +38,24 @@ Links:
This work is Copyright 1999, 2001-09, 2013-21, Norman Gray, and may be
distributed and/or modified under the conditions of the LaTeX Project
-Public Licence, either version 1.3 of this licence or (at your option)
+Public Licence, either version 1.3c of this licence or (at your option)
any later version. See the distributed file lppl.txt for details.
For more information, see showlabels.html in the distribution.
+
+CTAN upload info
+----------------
+
+ * Name: showlabels
+ * Version: 1.9.1
+ * Maintainer: gray@nxg.name
+ * Summary: Put the names of `\labels` and other commands into the margins of a draft document.
+ * CTAN directory: /macros/latex/contrib/showlabels
+ * Licence: LPPL 1.3c
+ * Home page: https://purl.org/nxg/dist/showlabels
+ * Bug tracker: https://todo.sr.ht/~nxg/showlabels
+ * Repository: https://hg.sr.ht/~nxg/showlabels
+
Norman Gray
https://nxg.me.uk
diff --git a/macros/latex/contrib/showlabels/VERSION b/macros/latex/contrib/showlabels/VERSION
index 2e0e38c63a..9ab8337f39 100644
--- a/macros/latex/contrib/showlabels/VERSION
+++ b/macros/latex/contrib/showlabels/VERSION
@@ -1 +1 @@
-1.9
+1.9.1
diff --git a/macros/latex/contrib/showlabels/showlabels.dtx b/macros/latex/contrib/showlabels/showlabels.dtx
index c1a72a27ff..ef6f107f60 100644
--- a/macros/latex/contrib/showlabels/showlabels.dtx
+++ b/macros/latex/contrib/showlabels/showlabels.dtx
@@ -5,11 +5,11 @@
%%%% Copyright 1999, 2001-09, 2013-21, Norman Gray
%%
%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public Licence, either version 1.3
+%% conditions of the LaTeX Project Public Licence, either version 1.3c
%% of this licence or (at your option) any later version.
%% The latest version of this licence is in
%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of LaTeX
+%% 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'.
@@ -20,12 +20,12 @@
%% and the derived file showlabels.sty.
%%%% File: showlabels.dtx
-%%%% Source: 5b2959804f35, 2021-10-09T20:59:45+01:00
+%%%% Source: 1f8b1fcbe557, 2021-10-27T16:06:03+01:00
-% This is revision 5b2959804f35, 2021-10-09T20:59:45+01:00.
+% This is revision 1f8b1fcbe557, 2021-10-27T16:06:03+01:00.
%<+package>\NeedsTeXFormat{LaTeX2e}
-%<+package>\ProvidesPackage{showlabels}[2021-10-09\space v1.9]
-%<+package>\typeout{Package: `showlabels' v1.9\space<2021-10-09>}
+%<+package>\ProvidesPackage{showlabels}[2021/10/27\space v1.9.1]
+%<+package>\typeout{Package: `showlabels' v1.9.1\space<2021/10/27>}
%
%<*driver>
\documentclass{ltxdoc}
@@ -64,7 +64,7 @@
%
% \title{The \texttt{showlabels} package}
% \author{Norman Gray\\|gray@nxg.name|}
-% \date{Version 1.9, 2021 October 9}
+% \date{Version 1.9.1, 2021 October 27}
%
% \maketitle
%
@@ -113,14 +113,24 @@
% to partner the \Lopt{final} option.
%
% \DescribeMacro{\showlabels}
-% If you wish the package to do its magic with the command |\foo|
-% (most typically |\cite|), then give the command |\showlabels{foo}|.
+% If you wish the package to do its magic with another command |\foo|
+% which takes at least one argument (for example |\cite|),
+% then give the command |\showlabels{foo}|.
% The default behaviour of the package is to give the command
% |\showlabels{label}| internally; if you don't want this to happen --
% perhaps because you \emph{only} want |\cite| commands highlighted --
% then give the option \Lopt{nolabel} to the |\usepackage| command:
% |\usepackage[nolabel]{showlabels}|.
%
+% You can call |\showlabels{foo}| with commands which have starred
+% forms, |\foo*{arg}|, or optional arguments, |\foo[opt]{arg}|. A
+% technical wrinkle is that, in each case, the |{arg}| is read with
+% all of its characters being catcode `other'; I~can't think of a
+% realistic case where this is a problem, since the commands typically
+% given to |\showlabels| will almost certainly do something equivalent
+% to this anyway, but it is a mild change from the default behaviour
+% of the command |\foo|.
+%
% You can do this |\showlabels| step even with commands that you
% invoke only implicitly. If, for example, you want to label each of the
% entries in your bibliography, then |\showlabels{bibitem}|
@@ -268,13 +278,13 @@
% The package might still work with \LaTeX2.09, but that's neither
% supported, nor even still tested.
%
-% This software is copyright, 1999, 2001--09, 2013--16 Norman Gray.
-% It is released under the terms of the LaTeX Project Public Licence.
+% This software is copyright, 1999, 2001-09, 2013-21 Norman Gray.
+% It is released under the terms of the \LaTeX\ Project Public Licence.
% See the copyright declaration at the top of file \texttt{showlabels.dtx},
% and the file \texttt{lppl.txt}, for the licence conditions.
%
% The canonical home page of the package is
-% \url{http://purl.org/nxg/dist/showlabels}, and it is on CTAN at
+% \url{https://purl.org/nxg/dist/showlabels}, and it is on CTAN at
% \url{https://www.ctan.org/pkg/showlabels}. The source is in
% a repository online: \url{https://hg.sr.ht/~nxg/showlabels}.
%
@@ -335,197 +345,87 @@
% \fi
% \catcode`\~=12
% \iffalse @RELEASENOTES@ \fi
-% \begin{description}
-%
-% \item[1.9, 2021 October 9]\relax
-% \begin{itemize}
-% \item Robustness fix: macros in arguments are now handled, so that
+% \begin{description}\item[1.9.1, 2021 October 27]\relax Commands with optional arguments, such as
+% |\bibitem[P\'olya]{polya_54}| are now handled with the
+% correct catcodes.
+% Fixes issue 1\footnote{\url{https://todo.sr.ht/~nxg/showlabels/1}}
+% (new sequencing for issues).
+% Thanks to Michael Levitin for the report here.\par \item[1.9, 2021 October 9]\relax \P\thinspace Robustness fix: macros in arguments are now handled, so that
% (after |\showlabel{index}|),
-% |\index{Poincar\'e}| doesn't cause an error.
-% \item The |\showlabel[optarg]{command}| optional argument
-% can now take a one-argument command.
-% \item The macro |\showlabeltype| expands to the current
-% label type, for possible use in |\showlabelsetlabel|.
-% \item The code has moved from Bitbucket to
+% |\index{Poincar\'e}| doesn't cause an error. \P\thinspace The |\showlabel[optarg]{command}| optional argument
+% can now take a one-argument command. \P\thinspace The macro |\showlabeltype| expands to the current
+% label type, for possible use in |\showlabelsetlabel|. \P\thinspace The code has moved from Bitbucket to
% Sourcehut\footnote{\url{https://sourcehut.org}}: the new repository is
% https://hg.sr.ht/~nxg/showlabels\footnote{\url{https://hg.sr.ht/~nxg/showlabels}}.
-% The issues links in the list below are therefore broken.
-% \end{itemize}
-%
-%
-% \item[1.8, 2016 June 9]\relax
-% The |ntheorem| package exposed an apparently
+% The issues links in the list below are therefore broken.\par\item[1.8, 2016 June 9]\relax The |ntheorem| package exposed an apparently
% long-standing incompleteness in the handling of |amsmath|
% documents.
-% Fixes issue 9\footnote{\url{https://bitbucket.org/nxg/showlabels/issues/9/}}.
-%
-%
-%
-% \item[1.7, 2015 December 8]\relax
-% Release v1.7.
-%
-%
-%
-% \item[1.7b2, 2015 December 7]\relax
-% Make the combination of amsmath and [inline] mode work
+% Fixes issue 9\footnote{\url{https://bitbucket.org/nxg/showlabels/issues/9/}}.\par \item[1.7, 2015 December 8]\relax Release v1.7.\par \item[1.7b2, 2015 December 7]\relax Make the combination of amsmath and [inline] mode work
% (fixes issue 8\footnote{\url{https://bitbucket.org/nxg/showlabels/issue/8/}}
% – thanks to A L Dukeman for the report;
-% what is it about showlabels and 6 December?!).
-%
-%
-%
-% \item[1.7b1, 2014 December 6]\relax
-% This is a much-delayed bugfix release (by coincidence
-% \emph{exactly} a year after the previous release!).
-%
-% \begin{itemize}
-% \item Give |\showlabels| an optional formatting argument
+% what is it about showlabels and 6 December?!).\par \item[1.7b1, 2014 December 6]\relax This is a much-delayed bugfix release (by coincidence
+% \emph{exactly} a year after the previous release!).\par \P\thinspace Give |\showlabels| an optional formatting argument
% (implements issue 1\footnote{\url{https://bitbucket.org/nxg/showlabels/issue/1/}}
-% – thanks to Francesco Biccari for the suggestion).
-% \item Special-case the IEEEtrantools package
+% – thanks to Francesco Biccari for the suggestion). \P\thinspace Special-case the IEEEtrantools package
% (fixes issue 2\footnote{\url{https://bitbucket.org/nxg/showlabels/issue/2/}}
% – thanks to Boris Kheyfets for the report and test case, and to
-% Ben William Carabelli for additional analysis and a draft fix).
-% \item The |[final]| option now works with the
+% Ben William Carabelli for additional analysis and a draft fix). \P\thinspace The |[final]| option now works with the
% |{amsmath}| package
% (fixes issue 3\footnote{\url{https://bitbucket.org/nxg/showlabels/issue/3/}}
% – thanks to Guillermo Garza and Enno Nagel for the report, and to
-% Guillermo for the test case).
-% \item Handle the hyperref package's |\ref*{label}| variant
+% Guillermo for the test case). \P\thinspace Handle the hyperref package's |\ref*{label}| variant
% (fixes issue 4\footnote{\url{https://bitbucket.org/nxg/showlabels/issue/4/}}
-% – thanks to Alex Watson for the report and test case).
-% \item Handle the case where a label is in a display, but not in maths mode
+% – thanks to Alex Watson for the report and test case). \P\thinspace Handle the case where a label is in a display, but not in maths mode
% (fixes issue 5\footnote{\url{https://bitbucket.org/nxg/showlabels/issue/5/}}
-% – thanks to ‘bartgol’ on Stackexchange for the report and test case).
-% \end{itemize}
-%
-%
-% \item[1.6.6, 2013 December 6]\relax
-% \begin{itemize}
-% \item Add configuration interface |\showlabelrefline| and
+% – thanks to ‘bartgol’ on Stackexchange for the report and test case).\par\item[1.6.6, 2013 December 6]\relax \P\thinspace Add configuration interface |\showlabelrefline| and
% ensure that |\color| works in
-% |\showlabelfont|.
-% \item Various documentation tweaks
-% \item Change licence from GPL to LPPL
-% \item Fix link to repository
-% \end{itemize}
-%
-%
-% \item[1.6.5, 2009 May 27]\relax
-% Fixed a bug in the way that labels including underscores (and
-% other ‘exotic’ characters) were displayed.
-%
-%
-%
-% \item[1.6.4, 2008 October 10]\relax
-% Fixed another poor interaction between eqnarray and amsart. Now
+% |\showlabelfont|. \P\thinspace Various documentation tweaks. \P\thinspace Change licence from GPL to LPPL. \P\thinspace Fix link to repository.\par\item[1.6.5, 2009 May 27]\relax Fixed a bug in the way that labels including underscores (and
+% other ‘exotic’ characters) were displayed.\par \item[1.6.4, 2008 October 10]\relax Fixed another poor interaction between eqnarray and amsart. Now
% we get equation labels in eqnarray, and we don't get marginal notes
-% about |\eqref| (which is good; might this finally be fixed?).
-%
-%
-%
-% \item[1.6.3, 2008 July 24]\relax
-% Release 1.6.2 broke compatibility with the \emph{rest} of
+% about |\eqref| (which is good; might this finally be fixed?).\par \item[1.6.3, 2008 July 24]\relax Release 1.6.2 broke compatibility with the \emph{rest} of
% amsmath (|eqnarray| became the only thing that worked
-% within amsmath)! Fixed. Doh!
-%
-%
-%
-% \item[1.6.2, 2008 June 27]\relax
-% The reimplementation of eqnarray within amsart was such that
-% equation labels disappeared in that case. Fixed.
-%
-%
-%
-% \item[1.6.1, 2007 June 17]\relax
-% Fix an errant test, which mangled equation labels starting
-% with two identical letters.
-%
-%
-%
-% \item[1.6, 2006 May 26]\relax
-% The |\showlabels| command will now work with commands
+% within amsmath)! Fixed. Doh!\par \item[1.6.2, 2008 June 27]\relax The reimplementation of eqnarray within amsart was such that
+% equation labels disappeared in that case. Fixed.\par \item[1.6.1, 2007 June 17]\relax Fix an errant test, which mangled equation labels starting
+% with two identical letters.\par \item[1.6, 2006 May 26]\relax The |\showlabels| command will now work with commands
% (such as |\cite| or |\includegraphics|) which
-% take an optional argument.
-%
-%
-%
-% \item[1.5a, 2005 March 17]\relax
-% Defined |\showlabelfont| using
+% take an optional argument.\par \item[1.5a, 2005 March 17]\relax Defined |\showlabelfont| using
% |\ttfamily| rather than |\tt| (I'd
% avoided doing this before to avoid a seemingly pointless
% incompatibility with LaTeX 2.09, but (a) I imagine the
% package is incompatible with that for other reasons, and (b)
-% it's really not worth the hassle...).
-%
-%
-%
-% \item[1.5, 2004 October 8]\relax
-% Added |\showlabelfont| and
+% it's really not worth the hassle...).\par \item[1.5, 2004 October 8]\relax Added |\showlabelfont| and
% |\showlabelsetlabel| commands, allowing
% customisation of the printed labels. Added and documented
% options [final], [draft] (the former makes this package do
-% nothing; the latter is the default behaviour).
-%
-%
-%
-% \item[1.4a, 2003 January 28]\relax
-% Acquired the |[left]| and
+% nothing; the latter is the default behaviour).\par \item[1.4a, 2003 January 28]\relax Acquired the |[left]| and
% |[right]| options, and fixed a bug which affected
-% |\label| commands in captions.
-%
-%
-%
-% \item[1.4, 2001 July 24]\relax
-% Became (more) compatible with the
+% |\label| commands in captions.\par \item[1.4, 2001 July 24]\relax Became (more) compatible with the
% wrapfig package. Also, I added the
% |\showlabels| command, to have the package display
% references to commands other than |\label|
% (|\cite| and |\ref| are obvious ones),
% and an |[inline]| option to have labels (etc.)
% displayed inline where possible, rather than always in the
-% margin.
-%
-%
-%
-% \item[1.3e, 2001 May 30]\relax
-% Became compatible with the hyperref package in
+% margin.\par \item[1.3e, 2001 May 30]\relax Became compatible with the hyperref package in
% particular, and in general with other packages which
% themselves modify the |\label| command. This will
% work, however, only if the showlabels package is loaded after
% other packages which do this. Notwithstanding Sebastian
% Rahtz's excellent general advice on this, showlabels should
-% indeed be loaded after hyperref.
-%
-%
-%
-% \item[1.3e, 2001 May 31]\relax
-% After a long delay, here is an updated version of my showlabels
+% indeed be loaded after hyperref.\par \item[1.3e, 2001 May 31]\relax After a long delay, here is an updated version of my showlabels
% package. It corrects all the reported bugs which I could reproduce,
-% namely:
-%
-% \begin{itemize}
-% \item The package now formats labels correctly when the
+% namely:\par \P\thinspace The package now formats labels correctly when the
% |\label| command appears outside either an equation or a
-% |\caption| (silly of me).
-%
-% \item A couple of people reported problems in the interaction with the
+% |\caption| (silly of me). \P\thinspace A couple of people reported problems in the interaction with the
% amsmath package. Either these were confined to that package's earlier
% incarnations as AMS-LaTeX or the amstex package, or else there's some
% arcane circumstance I can't reproduce, so I haven't found anything to
% fix on this matter. Note that the
% |\usepackage{showlabels}| command must come \emph{after}
% the |\usepackage{amsmath}| command. Bug-sightings here
-% will be warmly appreciated.
-%
-% \item I haven't worried too much about the precise formatting of the
+% will be warmly appreciated. \P\thinspace I haven't worried too much about the precise formatting of the
% labels – this is, after all, supposed to be a draft-only
-% package.
-% \end{itemize}
-%
-%
-% \item[1.1, 2001 January 1]\relax
-% Modified to conform to the slightly
+% package.\par\item[1.1, 2001 January 1]\relax Modified to conform to the slightly
% different mechanism that |amsmath| uses to produce equation
% numbers. I don't habitually use |amsmath|, so I won't
% discover any bugs or weaknesses with its support here, and I'd
@@ -537,24 +437,11 @@
% to have been declared ‘obsolete’ in favour of the |amsmath|
% package. This package now claims conformance with the
% |amsmath| package alone, though it will probably work with
-% older versions in fact.
-%
-%
-%
-% \item[Updated, 1992 January 29]\relax
-% On 1992 January 29, Darrel Hankerson
+% older versions in fact.\par This is the first version of the package to be distributed under
+% the name |showlabels|.\par \item[Updated, 1992 January 29]\relax On 1992 January 29, Darrel Hankerson
% (|hank@ducvax.auburn.edu|), made the update to NFSS, and
-% changed the name to |showlabel.sty|.
-%
-%
-%
-% \item[Original, 1991 September 21]\relax
-% The package was originally released by me on 1991 September 21, under the name
-% |labels.sty|.
-%
-%
-%
-% \end{description}% \endgroup
+% changed the name to |showlabel.sty|.\par \item[Original, 1991 September 21]\relax The package was originally released by me on 1991 September 21, under the name
+% |labels.sty|.\par \end{description}% \endgroup
%
% \StopEventually{}
%
@@ -748,7 +635,8 @@
% normally.
%
% The net result of all this is that a |\showlabels{foo}| command
-% arranges things so that, after |\begin{document}|, |\foo{bar}| expands into
+% arranges things so that, after |\begin{document}|, the original
+% version of |\foo| is saved in |\SL@origfoo|, and |\foo{bar}| expands into
% |\SL@setlabel{bar}\SL@origfoo{bar}|.
%
% First, define a command |\SL@initfoo|, which, when executed, will
@@ -763,7 +651,7 @@
% |\the\@temptokena| causes the token contents of |\@temptokena| to be
% included unexpanded in the definition, despite the |\edef|.
%
-% If the optional argument is present, then use this as per-command
+% If the optional |\showlabels| argument is present, then use this as per-command
% formatting, so that, for example |\cite| instances may be formatted
% distinctively from |\label|.
% \begin{macrocode}
@@ -836,12 +724,21 @@
% |\showlabels{ref}| and use |\ref| in a caption (see test case t3).
% We actually handle three distinct cases here, for |\foo{label}|,
% |\foo[opt]{label}| and |\foo*{label}| (the last is to handle the
-% \Lpackage{hyperref} package's |\ref*{label}| variant; see test case t14).
+% \Lpackage{hyperref} package's |\ref*{label}| variant; see test case
+% t14).
+%
+% Note that in each case, the |label| is read with sanitised
+% catcodes. That is, I think, always an acceptable thing to do, in
+% the sense that I can't think of cases where this breaks anything.
%
% We open a group in order to call |\@sanitize|; we're able to close
% it immediately, within the called macros. We call |\@sanitize| in
% order to cope with eg |\index{Poincar\'e}| (see discussion of
-% |\SL@prlabelname| above).
+% |\SL@prlabelname| above). We carefully \emph{avoid} calling
+% |\@sanitize| before reading an optional argument: this is so that
+% we read that argument with the existing catcode
+% assignments, so that eg |\bibitem[P{\'o}lya]{polya54}| works as
+% expected (see test t20).
%
% We declare |\showlabeltype| to be the `current' label type. It
% would be good to put this inside a group, so that it's only visible
@@ -858,31 +755,30 @@
\@bsphack
\expandafter\let\expandafter\SL@orig@@next\csname SL@orig#1\endcsname
\def\showlabeltype{#1}%
- \begingroup\@sanitize
+ \begingroup
\@ifstar
- {\SL@showlabelsplainstar}
+ {\@sanitize\SL@showlabelsplainstar}
{\@ifnextchar[
{\SL@showlabelsopt}
- {\SL@showlabelsplain}}
-}
-\def\SL@showlabelsopt[#1]#2{%
+ {\@sanitize\SL@showlabelsplain}}}
+\def\SL@showlabelsopt[#1]{% #1 is read before \@sanitize
+ \@sanitize
+ \SL@showlabelsopt@ii{#1}}
+\def\SL@showlabelsopt@ii#1#2{%
\endgroup
\SL@setlabel{#2}\relax
\ifhmode \spacefactor\@savsf \ifdim\@savsk>\z@ \hskip1sp \fi\fi
- \SL@orig@@next[#1]{#2}%
-}
+ \SL@orig@@next[#1]{#2}}
\def\SL@showlabelsplain#1{%
\endgroup
\SL@setlabel{#1}\relax
\ifhmode \spacefactor\@savsf \ifdim\@savsk>\z@ \hskip1sp \fi\fi
- \SL@orig@@next{#1}%
-}
+ \SL@orig@@next{#1}}
\def\SL@showlabelsplainstar#1{%
\endgroup
\SL@setlabel{#1}\relax
\ifhmode \spacefactor\@savsf \ifdim\@savsk>\z@ \hskip1sp \fi\fi
- \SL@orig@@next*{#1}%
-}
+ \SL@orig@@next*{#1}}
% \end{macrocode}
% \end{macro}
%
diff --git a/macros/latex/contrib/showlabels/showlabels.html b/macros/latex/contrib/showlabels/showlabels.html
index fbdf4164b0..580b04d566 100644
--- a/macros/latex/contrib/showlabels/showlabels.html
+++ b/macros/latex/contrib/showlabels/showlabels.html
@@ -6,8 +6,6 @@
<link href="https://nxg.me.uk" rev="author"/>
<!-- content of style file, to make this document standalone... -->
<style type='text/css'>
-/* Installed from repo: 2021-09-14T22:35:45+01:00, Hg:1d9954537983 */
-
body {
color: #333;
background: white;
@@ -63,32 +61,15 @@ body {
}
*/
-/* The class='topsidebar' is formatting, typically div or ul,
- for auxiliary stuff, placed at the top of the right-hand column.
- The element with this class should go just _after_ the <h1> heading. */
-.topsidebar {
+div.topsidebar {
float: right;
width: 50%; /* ...of the body width (ie, 50% x 50% of screen) */
font-size: smaller;
- line-height: 140%; /* ...of the font size*/
margin-left: 1em;
padding-left: 1em;
border-left: solid thin #AAA;
}
-/*
-I have in the past styled `.topsidebar li` like this,
-but I think this is too much detail for this location:
-I should restrict the styling here to the location and general appearance of the sidebar
-and I should leave such details to more local stylesheets
-(and in any case I think it's only my blog that actually uses this class)
-.topsidebar li {
- list-style-type: none;
- text-align: right;
- line-height: 150%;
-}
-*/
-
/* On wider screens, move the sidebar out to the right hand side */
/* This uses CSS3 media queries: http://www.w3.org/TR/css3-mediaqueries/ */
@media screen and (min-width: 700pt) and (max-width: 850pt) {
@@ -97,7 +78,7 @@ and I should leave such details to more local stylesheets
width: 350pt; /* 50% of 700pt */
margin-right: auto;
}
- .topsidebar {
+ div.topsidebar {
position: absolute;
/* I feel this size should be 595pt (350 + 210 + 0.05*700),
but that's clearly not right -- I don't think I understand what the -5%
@@ -108,7 +89,6 @@ and I should leave such details to more local stylesheets
padding-left: 0pt;
border: none;
}
- /* .topsidebar li { text-align: center; } */
}
/* On still-wider screens, expand the left-margin, keeping the sidebar attached to the right-hand edge.
When the screen is 850pt wide (expanding from the @media case above),
@@ -119,7 +99,7 @@ and I should leave such details to more local stylesheets
width: 350pt;
margin-left: auto; /* ...takes up the slack */
}
- .topsidebar {
+ div.topsidebar {
position: absolute;
width: 290pt; /* same 290pt as above */
left: auto;
@@ -127,7 +107,6 @@ and I should leave such details to more local stylesheets
padding-left: 0pt;
border: none;
}
- /* .topsidebar li { text-align: center; } */
}
@@ -230,8 +209,8 @@ div.signature {
margin-right: -5%;
margin-top: 4ex;
text-align: right;
- border-top: solid thin #666;
- padding-top: 0.3em;
+ border: solid thin #666;
+ padding: 0.3em;
clear: both;
}
@@ -309,10 +288,10 @@ div#toc li li:after {
<div class="abstract">
<p>Put the names of <code>\label</code>s and other commands into
the margins of a draft document.</p>
-<!-- This is revision 5b2959804f35, 2021-10-09T20:59:45+01:00 -->
-<p>Version 1.9, 2021 October 9,
- <a href='http://purl.org/nxg/dist/showlabels'
- ><code>http://purl.org/nxg/dist/showlabels</code></a>.</p>
+<!-- This is revision 1f8b1fcbe557, 2021-10-27T16:06:03+01:00 -->
+<p>Version 1.9.1, 2021 October 27,
+ <a href='https://purl.org/nxg/dist/showlabels'
+ ><code>https://purl.org/nxg/dist/showlabels</code></a>.</p>
</div>
<p>This class option helps you keep track of all the labels in your
@@ -358,9 +337,9 @@ problem, typically by email to me.</p>
<ol>
<li>Download the file
-<a href="showlabels-1.9.tar.gz" >showlabels-1.9.tar.gz</a>
+<a href="showlabels-1.9.1.tar.gz" >showlabels-1.9.1.tar.gz</a>
or
-<a href="showlabels-1.9.zip" >showlabels-1.9.zip</a>
+<a href="showlabels-1.9.1.zip" >showlabels-1.9.1.zip</a>
and unpack it.</li>
<li>Run LaTeX on the file <code>showlabels.ins</code> &#x2013; this will
@@ -374,8 +353,8 @@ documentation.</li>
<p>Links:</p>
<ul>
<li>Canonical package home page:
-<a href="http://purl.org/nxg/dist/showlabels"
- ><code>http://purl.org/nxg/dist/showlabels</code></a></li>
+<a href="https://purl.org/nxg/dist/showlabels"
+ ><code>https://purl.org/nxg/dist/showlabels</code></a></li>
<li>On CTAN:
<a href='https://www.ctan.org/pkg/showlabels'
@@ -395,13 +374,22 @@ mail me.</li>
<p>This work is Copyright 1999, 2001-09, 2013-21, Norman Gray, and may be distributed and/or modified under the
conditions of the <a href='http://www.latex-project.org/lppl.txt'>LaTeX Project Public Licence</a>,
-either version 1.3 of this licence or (at your option) any later version.</p>
+either version 1.3c of this licence or (at your option) any later version.</p>
<h2>History</h2>
<!-- @RELEASENOTES@ -->
<h:dl xmlns:h="http://www.w3.org/1999/xhtml">
-<h:dt><h:span class="attention">1.9, 2021 October 9</h:span></h:dt><h:dd>
+ <h:dt><h:span class="attention">1.9.1, 2021 October 27</h:span></h:dt><h:dd>
+ <p xmlns="http://www.w3.org/1999/xhtml">Commands with optional arguments, such as
+ <code>\bibitem[P\'olya]{polya_54}</code> are now handled with the
+ correct catcodes.
+ Fixes <a href="https://todo.sr.ht/~nxg/showlabels/1">issue 1</a>
+ (new sequencing for issues).
+ Thanks to Michael Levitin for the report here.</p>
+ </h:dd>
+
+<h:dt>1.9, 2021 October 9</h:dt><h:dd>
<ul xmlns="http://www.w3.org/1999/xhtml">
<li>Robustness fix: macros in arguments are now handled, so that
(after <code>\showlabel{index}</code>),
@@ -411,8 +399,8 @@ either version 1.3 of this licence or (at your option) any later version.</p>
<li>The macro <code>\showlabeltype</code> expands to the current
label type, for possible use in <code>\showlabelsetlabel</code>.</li>
<li>The code has moved from Bitbucket to
- <a>Sourcehut</a>: the new repository is
- <a>https://hg.sr.ht/~nxg/showlabels</a>.
+ <a href="https://sourcehut.org">Sourcehut</a>: the new repository is
+ <a href="https://hg.sr.ht/~nxg/showlabels">https://hg.sr.ht/~nxg/showlabels</a>.
The issues links in the list below are therefore broken.</li>
</ul>
</h:dd>
@@ -421,7 +409,7 @@ either version 1.3 of this licence or (at your option) any later version.</p>
<p xmlns="http://www.w3.org/1999/xhtml">The <code>ntheorem</code> package exposed an apparently
long-standing incompleteness in the handling of <code>amsmath</code>
documents.
-Fixes <a>issue 9</a>.</p>
+Fixes <a href="https://bitbucket.org/nxg/showlabels/issues/9/">issue 9</a>.</p>
</h:dd>
<h:dt>1.7, 2015 December 8</h:dt><h:dd>
@@ -430,7 +418,7 @@ Fixes <a>issue 9</a>.</p>
<h:dt>1.7b2, 2015 December 7</h:dt><h:dd>
<p xmlns="http://www.w3.org/1999/xhtml">Make the combination of amsmath and [inline] mode work
-(fixes <a>issue 8</a>
+(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/8/">issue 8</a>
– thanks to A L Dukeman for the report;
what is it about showlabels and 6 December?!).</p>
</h:dd>
@@ -440,22 +428,22 @@ what is it about showlabels and 6 December?!).</p>
<em>exactly</em> a year after the previous release!).</p>
<ul xmlns="http://www.w3.org/1999/xhtml">
<li>Give <code>\showlabels</code> an optional formatting argument
-(implements <a>issue 1</a>
+(implements <a href="https://bitbucket.org/nxg/showlabels/issue/1/">issue 1</a>
– thanks to Francesco Biccari for the suggestion).</li>
<li>Special-case the IEEEtrantools package
-(fixes <a>issue 2</a>
+(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/2/">issue 2</a>
– thanks to Boris Kheyfets for the report and test case, and to
Ben William Carabelli for additional analysis and a draft fix).</li>
<li>The <code>[final]</code> option now works with the
<code>{amsmath}</code> package
-(fixes <a>issue 3</a>
+(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/3/">issue 3</a>
– thanks to Guillermo Garza and Enno Nagel for the report, and to
Guillermo for the test case).</li>
<li>Handle the hyperref package's <code>\ref*{label}</code> variant
-(fixes <a>issue 4</a>
+(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/4/">issue 4</a>
– thanks to Alex Watson for the report and test case).</li>
<li>Handle the case where a label is in a display, but not in maths mode
-(fixes <a>issue 5</a>
+(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/5/">issue 5</a>
– thanks to ‘bartgol’ on Stackexchange for the report and test case).</li>
</ul>
</h:dd>
@@ -465,9 +453,9 @@ Guillermo for the test case).</li>
<li>Add configuration interface <code>\showlabelrefline</code> and
ensure that <code>\color</code> works in
<code>\showlabelfont</code>.</li>
-<li>Various documentation tweaks</li>
-<li>Change licence from GPL to LPPL</li>
-<li>Fix link to repository</li>
+<li>Various documentation tweaks.</li>
+<li>Change licence from GPL to LPPL.</li>
+<li>Fix link to repository.</li>
</ul>
</h:dd>
@@ -586,6 +574,9 @@ to have been declared ‘obsolete’ in favour of the <code>amsmath</code>
package. This package now claims conformance with the
<code>amsmath</code> package alone, though it will probably work with
older versions in fact.</p>
+
+<p xmlns="http://www.w3.org/1999/xhtml">This is the first version of the package to be distributed under
+the name <code>showlabels</code>.</p>
</h:dd>
<h:dt>Updated, 1992 January 29</h:dt><h:dd>
@@ -602,9 +593,9 @@ changed the name to <code>showlabel.sty</code>.</p>
</h:dl>
<div class="signature">
-<a href="http://www.astro.gla.ac.uk/users/norman/"
+<a href="https://nxg.me.uk"
>Norman Gray</a><br/>
-2021 October 9
+2021 October 27
</div>
</body>
diff --git a/macros/latex/contrib/showlabels/showlabels.pdf b/macros/latex/contrib/showlabels/showlabels.pdf
index 2ede44d9d1..b7526ed222 100644
--- a/macros/latex/contrib/showlabels/showlabels.pdf
+++ b/macros/latex/contrib/showlabels/showlabels.pdf
Binary files differ
diff --git a/macros/latex/contrib/showlabels/style.css b/macros/latex/contrib/showlabels/style.css
index f2e25ff6ea..f0a3150cca 100644
--- a/macros/latex/contrib/showlabels/style.css
+++ b/macros/latex/contrib/showlabels/style.css
@@ -1,5 +1,3 @@
-/* Installed from repo: 2021-09-14T22:35:45+01:00, Hg:1d9954537983 */
-
body {
color: #333;
background: white;
@@ -55,32 +53,15 @@ body {
}
*/
-/* The class='topsidebar' is formatting, typically div or ul,
- for auxiliary stuff, placed at the top of the right-hand column.
- The element with this class should go just _after_ the <h1> heading. */
-.topsidebar {
+div.topsidebar {
float: right;
width: 50%; /* ...of the body width (ie, 50% x 50% of screen) */
font-size: smaller;
- line-height: 140%; /* ...of the font size*/
margin-left: 1em;
padding-left: 1em;
border-left: solid thin #AAA;
}
-/*
-I have in the past styled `.topsidebar li` like this,
-but I think this is too much detail for this location:
-I should restrict the styling here to the location and general appearance of the sidebar
-and I should leave such details to more local stylesheets
-(and in any case I think it's only my blog that actually uses this class)
-.topsidebar li {
- list-style-type: none;
- text-align: right;
- line-height: 150%;
-}
-*/
-
/* On wider screens, move the sidebar out to the right hand side */
/* This uses CSS3 media queries: http://www.w3.org/TR/css3-mediaqueries/ */
@media screen and (min-width: 700pt) and (max-width: 850pt) {
@@ -89,7 +70,7 @@ and I should leave such details to more local stylesheets
width: 350pt; /* 50% of 700pt */
margin-right: auto;
}
- .topsidebar {
+ div.topsidebar {
position: absolute;
/* I feel this size should be 595pt (350 + 210 + 0.05*700),
but that's clearly not right -- I don't think I understand what the -5%
@@ -100,7 +81,6 @@ and I should leave such details to more local stylesheets
padding-left: 0pt;
border: none;
}
- /* .topsidebar li { text-align: center; } */
}
/* On still-wider screens, expand the left-margin, keeping the sidebar attached to the right-hand edge.
When the screen is 850pt wide (expanding from the @media case above),
@@ -111,7 +91,7 @@ and I should leave such details to more local stylesheets
width: 350pt;
margin-left: auto; /* ...takes up the slack */
}
- .topsidebar {
+ div.topsidebar {
position: absolute;
width: 290pt; /* same 290pt as above */
left: auto;
@@ -119,7 +99,6 @@ and I should leave such details to more local stylesheets
padding-left: 0pt;
border: none;
}
- /* .topsidebar li { text-align: center; } */
}
@@ -222,8 +201,8 @@ div.signature {
margin-right: -5%;
margin-top: 4ex;
text-align: right;
- border-top: solid thin #666;
- padding-top: 0.3em;
+ border: solid thin #666;
+ padding: 0.3em;
clear: both;
}
diff --git a/macros/latex/contrib/siunitx/CHANGELOG.md b/macros/latex/contrib/siunitx/CHANGELOG.md
index e565a16b50..4db74bbc00 100644
--- a/macros/latex/contrib/siunitx/CHANGELOG.md
+++ b/macros/latex/contrib/siunitx/CHANGELOG.md
@@ -7,6 +7,12 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [Unreleased]
+## [v3.0.34]
+
+### Fixed
+- Printing of exponent for complex values when converting to a prefix (see
+ issue [#555](https://github.com/josephwright/siunitx/issues/555))
+
## [v3.0.33]
### Changed
@@ -1607,7 +1613,8 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
### Added
- First public testing release (as `si`)
-[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.33...HEAD
+[Unreleased]: https://github.com/josephwright/siunitx/compare/v3.0.34...HEAD
+[v3.0.34]: https://github.com/josephwright/siunitx/compare/v3.0.33...v3.0.34
[v3.0.33]: https://github.com/josephwright/siunitx/compare/v3.0.32...v3.0.33
[v3.0.32]: https://github.com/josephwright/siunitx/compare/v3.0.31...v3.0.32
[v3.0.31]: https://github.com/josephwright/siunitx/compare/v3.0.30...v3.0.31
diff --git a/macros/latex/contrib/siunitx/siunitx-code.pdf b/macros/latex/contrib/siunitx/siunitx-code.pdf
index c780176578..5ea13cc569 100644
--- a/macros/latex/contrib/siunitx/siunitx-code.pdf
+++ b/macros/latex/contrib/siunitx/siunitx-code.pdf
Binary files differ
diff --git a/macros/latex/contrib/siunitx/siunitx-complex.dtx b/macros/latex/contrib/siunitx/siunitx-complex.dtx
index a1783bf8c0..247d9acc0d 100644
--- a/macros/latex/contrib/siunitx/siunitx-complex.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-complex.dtx
@@ -126,8 +126,9 @@
%
% \subsection{General setup}
%
-% \begin{variable}{\l_@@_tmp_tl}
+% \begin{variable}{\l_@@_tmp_fp, \l_@@_tmp_tl}
% \begin{macrocode}
+\fp_new:N \l_@@_tmp_fp
\tl_new:N \l_@@_tmp_tl
% \end{macrocode}
% \end{variable}
@@ -766,6 +767,8 @@
% }
% \begin{macro}{\@@_format_extract-exponent:N}
% \begin{macro}[EXP]{\@@_extract_exp:nnnnnnn}
+% \begin{macro}{\@@_drop_exp:N}
+% \begin{macro}[EXP]{\@@_drop_exp:nnnnnnnN}
% Formatting units needs to know the settings from the main module, and
% the flow is then much the same as in \pkg{siunitx-compound}. We only
% have to watch the fact there are two numbers to format.
@@ -788,6 +791,8 @@
\siunitx_number_process:NN \l_@@_img_tl \l_@@_img_tl
\fp_set:Nn \l_@@_tmp_fp
{ \exp_after:wN \@@_extract_exp:nnnnnnn \l_@@_img_tl }
+ \@@_drop_exp:N \l_@@_real_tl
+ \@@_drop_exp:N \l_@@_img_tl
\siunitx_unit_format_combine_exponent:nnN {#1}
\l_@@_tmp_fp \l_@@_unit_tl
}
@@ -816,11 +821,17 @@
\siunitx_unit_format:nN {#1} \l_@@_unit_tl
}
\cs_new:Npn \@@_extract_exp:nnnnnnn #1#2#3#4#5#6#7 { #6#7 }
+\cs_new_protected:Npn \@@_drop_exp:N #1
+ { \exp_after:wN \@@_drop_exp:nnnnnnnN #1 #1 }
+\cs_new_protected:Npn \@@_drop_exp:nnnnnnnN #1#2#3#4#5#6#7#8
+ { \tl_set:Nn #8 { {#1} {#2} {#3} {#4} {#5} { } { 0 } } }
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
+% \end{macro}
%
% \subsection{Messages}
%
diff --git a/macros/latex/contrib/siunitx/siunitx-symbol.dtx b/macros/latex/contrib/siunitx/siunitx-symbol.dtx
index 4fa17bde89..8952aabeab 100644
--- a/macros/latex/contrib/siunitx/siunitx-symbol.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-symbol.dtx
@@ -232,7 +232,7 @@
% \begin{macrocode}
\@@_if_replace:NnT \ohm { "03A9 }
{
- \tl_set:Nx \l_@@_tmp_tl
+ \tl_set:Nx \l_@@_tmpa_tl
{
\cs_if_exist:NTF \upOmega
{ \exp_not:N \upOmega }
@@ -243,7 +243,7 @@
\@ifpackageloaded { fourier }
{
\exp_not:N \ensuremath
- { \exp_not:V \l_@@_tmp_tl }
+ { \exp_not:V \l_@@_tmpa_tl }
}
{
\exp_not:N \ifmmode
@@ -252,10 +252,10 @@
\exp_not:N \text
{
\exp_not:N \ensuremath
- { \exp_not:V \l_@@_tmp_tl }
+ { \exp_not:V \l_@@_tmpa_tl }
}
}
- { \exp_not:V \l_@@_tmp_tl }
+ { \exp_not:V \l_@@_tmpa_tl }
\exp_not:N \else
\exp_not:N \text
{
diff --git a/macros/latex/contrib/siunitx/siunitx.dtx b/macros/latex/contrib/siunitx/siunitx.dtx
index adb8063b9d..cdf49b261c 100644
--- a/macros/latex/contrib/siunitx/siunitx.dtx
+++ b/macros/latex/contrib/siunitx/siunitx.dtx
@@ -121,7 +121,7 @@
%
% Identify the package and give the over all version information.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2021-10-15} {3.0.33}
+\ProvidesExplPackage {siunitx} {2021-10-26} {3.0.34}
{A comprehensive (SI) units package}
% \end{macrocode}
%
diff --git a/macros/latex/contrib/siunitx/siunitx.pdf b/macros/latex/contrib/siunitx/siunitx.pdf
index d6c3830cb5..d1dadd2e95 100644
--- a/macros/latex/contrib/siunitx/siunitx.pdf
+++ b/macros/latex/contrib/siunitx/siunitx.pdf
Binary files differ