diff options
author | Karl Berry <karl@freefriends.org> | 2015-06-17 22:42:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-06-17 22:42:04 +0000 |
commit | 3bbdd3af65aaba1e1e9b25e12eed598c032ac9b8 (patch) | |
tree | 5fe4ae93da09917efe81bf79374c7238e079ea6a /Master/texmf-dist/source/latex/siunitx | |
parent | 0904e30ef59894e483d50ac5a550070517845b60 (diff) |
siunitx (17jun15)
git-svn-id: svn://tug.org/texlive/trunk@37589 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 69 |
1 files changed, 42 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 018ccbaf468..fa0525eeb9b 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -128,13 +128,14 @@ This work consists of the file siunitx.dtx \RequirePackage{expl3,xparse} %</driver|package> %<*driver> -\documentclass[german,french,english,UKenglish]{l3doc} +\documentclass[german,french,spanish,english,UKenglish]{l3doc} \usepackage[table]{xcolor} \usepackage{amsmath,babel,booktabs,cancel,caption,colortbl,csquotes} \usepackage{datatool,helvet,multirow,pgfplots,siunitx,xfrac,xtab} \usepackage[capitalise]{cleveref} \usepackage[final]{listings} \usepackage[osf]{mathpazo} +\AtBeginDocument{\shorthandoff{<>}} \crefformat{section}{#2Section~#1#3} \Crefformat{section}{#2Section~#1#3} \crefformat{subsection}{#2Section~#1#3} @@ -623,6 +624,9 @@ This work consists of the file siunitx.dtx % \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 +% \opt{table-sign-mantissa} options when set \opt{false}} +% \changes{v2.6f}{2015/04/04}{Further work on \pkg{mathspec}} % %\begin{abstract} % Physical quantities have both numbers and units, and each physical @@ -4029,7 +4033,7 @@ This work consists of the file siunitx.dtx %\end{LaTeXdemo} % If the current language is known to the \pkg{translator} package % then the result will be localised text. The preamble for this manual -% loads English, French and German as options, and also loads the +% loads English, French, German and Spanish as options, and also loads the % \pkg{babel} package: %\begin{LaTeXdemo} % % In English by default @@ -4041,6 +4045,9 @@ This work consists of the file siunitx.dtx % \selectlanguage{german}% % \SIlist{1;2;3}{\metre} \\ % \SIrange{1}{10}{\degreeCelsius} \\ +% \selectlanguage{spanish}% +% \SIlist{1;2;3}{\metre} \\ +% \SIrange{1}{10}{\degreeCelsius} \\ %\end{LaTeXdemo} % % Note that the in order for this to work correctly, languages should @@ -5106,19 +5113,13 @@ This work consists of the file siunitx.dtx % % Feedback can be sent in a range of ways. The development code % is hosted by -% \href{http://bitbucket.org/josephwright/siunitx}{BitBucket}, +% \href{https://github.com/josephwright/siunitx/}{GitHub}, % and the site includes an issue tracker. Adding feedback directly % to the database means that other users can see it, and also % ensures that it does not get forgotten. E-mailing directly % will also definitely get attention: % \href{mailto:joseph.wright@morningstar2.co.uk} -% {\texttt{joseph.wright@morningstar2.co.uk}}. I also keep an eye -% on various groups, for example -% \href{http://groups.google.com/group/comp.text.tex/topics} -% {\texttt{comp.text.tex}} and -% \href{http://www.latex-community.org/forum/}{The \LaTeX{} Community}. -% Sometimes I miss posts to these places, so it's useful if you also -% e-mail me pointing to the appropriate thread. +% {\texttt{joseph.wright@morningstar2.co.uk}}. % %\section{Thanks} % @@ -5149,7 +5150,7 @@ This work consists of the file siunitx.dtx % % The usual preliminaries. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2015/01/21} {2.6e} +\ProvidesExplPackage {siunitx} {2015/06/16} {2.6f} {A comprehensive (SI) units package} % \end{macrocode} % @@ -5292,16 +5293,12 @@ This work consists of the file siunitx.dtx \AtBeginDocument { \@ifpackageloaded { fontspec } { - \@ifpackageloaded { mathspec } + \@ifpackageloaded { eulervm } { } { - \@ifpackageloaded { eulervm } - { } - { - \int_const:Nn \c_@@_minus_int { 8722 } - \tl_set:Nn \c_@@_minus_tl - { \tex_char:D \c_@@_minus_int } - } + \int_const:Nn \c_@@_minus_int { 8722 } + \tl_set:Nn \c_@@_minus_tl + { \tex_char:D \c_@@_minus_int } } } { } @@ -5678,11 +5675,19 @@ 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. +% that \pkg{hyperref} does not raise any unnecessary warnings. With +% \pkg{fontspec} loaded the kernel defintion for \cs{textsuperscript} +% may get altered so a private copy of the orignal code is used. (Yes, +% this really should be done like Con\TeX{}t % \begin{macrocode} -\cs_new_eq:NN \@@_textsuperscript:n \textsuperscript +\cs_new_protected:Npn \@@_textsuperscript:n #1 + { + \m@th + \ensuremath { ^ { \mbox { \fontsize \sf@size \z@ \selectfont #1 } } } + } % \end{macrocode} % \end{macro} % @@ -13676,7 +13681,7 @@ This work consists of the file siunitx.dtx { \cs_set_eq:NN \@@_table_collect_next: ##1 } } \tl_map_function:nN - { \cs:w \scan_stop: \@@_table_print: } + { \cs:w \@@_table_print: } \@@_table_collect_not_braced_aux_ii:N \token_if_eq_meaning:NNT \@@_table_collect_next: \@@_table_collect_get: @@ -14173,10 +14178,18 @@ This work consists of the file siunitx.dtx table-parse-only .bool_set:N = \l_@@_table_parse_only_bool, table-space-text-pre .tl_set:N = \l_@@_table_pre_tl, table-space-text-post .tl_set:N = \l_@@_table_post_tl, - table-sign-exponent .code:n = + table-sign-exponent .choice:, + table-sign-exponent / true .code:n = { \prop_put:Nnn \l_@@_table_model_prop { exponent-sign } { - } }, - table-sign-mantissa .code:n = + table-sign-exponent / false .code:n = + { \prop_remove:Nn \l_@@_table_model_prop { exponent-sign } }, + table-sign-exponent .default:n = true, + table-sign-mantissa .choice:, + table-sign-mantissa / true .code:n = { \prop_put:Nnn \l_@@_table_model_prop { mantissa-sign } { - } }, + table-sign-mantissa / false .code:n = + { \prop_remove:Nn \l_@@_table_model_prop { mantissa-sign } }, + table-sign-mantissa .default:n = true, } % \end{macrocode} % \end{variable} @@ -16529,6 +16542,8 @@ This work consists of the file siunitx.dtx { to~(numerical~range) } { \`a } \providetranslation [ to = German ] { to~(numerical~range) } { bis } + \providetranslation [ to = Spanish ] + { to~(numerical~range) } { a } \sisetup { list-final-separator = { ~ \translate { and } ~ }, @@ -16655,7 +16670,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-version-1.cfg} {2015/01/21} {2.6e} +\ProvidesExplFile {siunitx-version-1.cfg} {2015/06/16} {2.6f} {siunitx: Version 1 settings} % \end{macrocode} % @@ -17597,7 +17612,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-abbreviations.cfg} {2015/01/21} {2.6e} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2015/06/16} {2.6f} {siunitx: Abbreviated units} % \end{macrocode} % @@ -17779,7 +17794,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-binary.cfg} {2015/01/21} {2.6e} +\ProvidesExplFile {siunitx-binary.cfg} {2015/06/16} {2.6f} {siunitx: Binary units} % \end{macrocode} % |