diff options
author | Karl Berry <karl@freefriends.org> | 2008-08-15 00:04:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-08-15 00:04:05 +0000 |
commit | 6ba7686ac1ae4d912d3f2ebfa29068fb493f4f7d (patch) | |
tree | 03a0921b6ff9b27d7a2c14e7313d7ccb5d983d42 /Master/texmf-dist/source/latex/siunitx | |
parent | c54b3149ba86bc9fe6b92de5f9f77820776ff247 (diff) |
siunitx 1.0i (14aug08)
git-svn-id: svn://tug.org/texlive/trunk@10351 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 | 60 |
1 files changed, 37 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 7dd7a6dba5f..e04f3c463d8 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -225,7 +225,7 @@ dcolumn, rccol and numprint packages. %</driver> % \fi % -%\CheckSum{9495} +%\CheckSum{9506} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -290,7 +290,8 @@ dcolumn, rccol and numprint packages. %\DoNotIndex{\key@ifundefined,\newrobustcmd,\protected,\scriptspace} %\DoNotIndex{\usebox,\tw@,\ifinner,\usepackage,\texttt,\textsf} %\DoNotIndex{\NC@do,\loop,\l@ngrel@x,\g@addto@macro,\documentclass} -%\DoNotIndex{\document\,\begin,\=,\@ehb,\\,\listfiles} +%\DoNotIndex{\document\,\begin,\=,\@ehb,\\,\listfiles,\nullfont} +%\DoNotIndex{\normalsize} % %\DoNotIndex{\pascalsecond,\amperemetresecond,\ohmmetre} %\DoNotIndex{\newtonmetre,\newtonmetrenp} @@ -3177,11 +3178,11 @@ author. % number, of course. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\newcommand*{\si@svn@ver}{v1.0h} +\newcommand*{\si@svn@ver}{v1.0i} \def\si@svn@id$#1: #2.#3 #4 #5-#6-#7 #8 #9${% \newcommand*{\si@svn@version}{% #5/#6/#7\space\si@svn@ver\space}} -\si@svn@id $Id: siunitx.dtx 118 2008-08-02 06:10:09Z joseph $ +\si@svn@id $Id: siunitx.dtx 121 2008-08-14 14:06:03Z joseph $ \ProvidesPackage{siunitx} [\si@svn@version A comprehensive (SI) units package] % \end{macrocode} @@ -9740,33 +9741,46 @@ author. found}}}} % \end{macrocode} %\end{macro} -%\begin{macro}{\si@inputifexists} -%\changes{v1.0g}{2008/07/18}{Loading of configuration files -% improved to kill spaces} +%\begin{macro}{\ifsi@outerinput} +% At various points, the package needs to know if the +% currently-read configuration file is the +% outer one. +% \begin{macrocode} +\newif\ifsi@outerinput\si@outerinputtrue +% \end{macrocode} +%\end{macro} %\begin{macro}{\si@InputIfFileExists} -%\darg{file} -%\darg{true} -%\darg{false} % To allow reading configuration files after the start of the -% document, a private copy of \cs{InputIfFileExists} is needed. In -% the preamble, this is just a straight copy. However, in the -% document body, |@| is made into a letter and printing is killed, -% while the file is loaded. +% document, a private copy of \cs{InputIfFileExists} is needed. The +% main macro here simply checks if the modified version is needed. % \begin{macrocode} -\newcommand{\si@inputifexists}[3]{% - \IfFileExists{#1}% - {#2\@addtofilelist{#1}\@@input \@filef@und} - {#3}% - \makeatother - \normalsize} \let\si@InputIfFileExists\InputIfFileExists \AtBeginDocument{ \renewcommand*{\si@InputIfFileExists}{% - \makeatletter - \nullfont - \si@inputifexists}} + \ifsi@outerinput + \expandafter\si@outerinput + \else + \expandafter\InputIfFileExists + \fi}} % \end{macrocode} %\end{macro} +%\begin{macro}{\si@outerinput} +%\darg{file} +%\darg{true-code} +%\darg{false-code} +% The outer call to load a file needs to set |@| to a letter and turn +% of printing using \cs{nullfont}. +% \begin{macrocode} +\newcommand*{\si@outerinput}[3]{% + \makeatletter + \nullfont + \si@outerinputfalse + \IfFileExists{#1}% + {#2\@addtofilelist{#1}\@@input \@filef@und\normalsize} + {#3}% + \normalsize + \makeatother} +% \end{macrocode} %\end{macro} %\begin{macro}{\requiresiconfigs} %\darg{config-file} |