diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/SIunits/SIunits.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/SIunits/SIunits.dtx | 105 |
1 files changed, 37 insertions, 68 deletions
diff --git a/Master/texmf-dist/source/latex/SIunits/SIunits.dtx b/Master/texmf-dist/source/latex/SIunits/SIunits.dtx index 465394cfc14..4924b360f3e 100644 --- a/Master/texmf-dist/source/latex/SIunits/SIunits.dtx +++ b/Master/texmf-dist/source/latex/SIunits/SIunits.dtx @@ -42,8 +42,8 @@ % \iffalse %<+package|binary>\def\SIunits@RCS$#1: #2 #3${#2} %<+package|binary>\def\filename{SIunits.dtx}%Source File Name -%<+package|binary>\xdef\fileversion{\SIunits@RCS$Revision: 1.34 $}%Revision generated by CS-RCS -%<+package|binary>\xdef\filedate{\SIunits@RCS$Date: 2007/11/22 11:20:00 $}%Date generated by CS-RCS +%<+package|binary>\xdef\fileversion{\SIunits@RCS$Revision: 1.35 $}%Revision generated by CS-RCS +%<+package|binary>\xdef\filedate{\SIunits@RCS$Date: 2007/11/24 11:20:00 $}%Date generated by CS-RCS %<+package|binary>\let\docversion=\fileversion %<+package|binary>\let\docdate=\filedate %<+package|binary>\NeedsTeXFormat{LaTeX2e}[1997/12/01] @@ -194,6 +194,8 @@ Comprehensive TeX Archive Network (CTAN). \end{filecontents} %</batchfile> %<*driver> +\immediate\write18{makeindex -s gind.ist -o \jobname.ind \jobname.idx} +\immediate\write18{makeindex -s gglo.ist -o \jobname.gls \jobname.glo} \documentclass[a4paper]{ltxdoc} \IfFileExists{hyperref.sty} {\usepackage{hyperref}}{\relax} \IfFileExists{SIunits.sty} @@ -384,7 +386,7 @@ Comprehensive TeX Archive Network (CTAN). %\GetFileInfo{SIunits.sty} % \changes{\fileversion}{\filedate}{Current version submitted to CTAN} %\title{The \pkgname{SIunits}\ package\thanks{This file has version number \fileversion{}, last revised -%\filedate{} \packagemessage}\\{\large support for the \textsf{International System of Units}}} +%\filedate{} \packagemessage}\\{Consistent application of SI units}} %\author{Marcel Heldoorn\thanks{Now maintained by Joseph Wright, e-mail: % %joseph.wright@morningstar2.co.uk}} %\date{File date \filedate} @@ -416,54 +418,23 @@ Comprehensive TeX Archive Network (CTAN). %The \pkgname{SIunits}\ package can be used to standardise the use of units in your %writings. Most macros are easily adaptable to personal preferences. However, you are %welcome (and strongly invited\footnote{There is an enormous \LaTeX\ Knowledge Base out -%there.}) to suggest any improvements. \\*[3mm] {\itshape Enjoy the \pkgname{SIunits}\ -%package!\raisebox{-\baselineskip}[0pt][0pt]{marcel h.}} +%there.}) to suggest any improvements. %\end{abstract} %\newpage %\section*{What's new?} +%\subsubsection*{New in version~1.35} +%\begin{enumerate} +% \item Improved \cs{elecronvolt} appearance\footnote{All changes for this version suggested by Philip Ratcliffe} +% \item Added \cs{dalton}, \cs{atomicmassunit} units (both formally non-SI) +% \item Minor improvements to the documentation +%\end{enumerate} %\subsubsection*{New in version~1.34} %\begin{enumerate} % \item Maintainer is now Joseph Wright (\href{mailto:joseph.wright@morningstar2.co.uk}% % {\texttt{joseph.wright@morningstar2.co.uk}}) -% \item Bug fix for negative signs in textstyle mode +% \item Bug fix for negative signs in textstyle mode\footnote{Thanks to Stefan Pinnow} % \item License changed to LPPL 1.3 or later %\end{enumerate} -%\subsubsection*{New in version~1.33} -%\begin{enumerate} -%\item Adaptive spacing of |\degree|, |\paminute|, |\arcminute|, |\pasecond| and |\arcsecond|: no space between quantity and unit. -%\item Solved bug: extra space in ready to use ready-to-use units when using \opt{textstyle} option. Thanks to Svend Tollak Munkejord. -%\item Option \opt{italian} added to solve interference problem with the babel package and language italian: Babel defines |\unit|. When using the option \opt{italian}, use |\unita| instead. Thanks to Lorenzo Cappelletti and Luca Rossato. -%\end{enumerate} -%\subsubsection*{New in version~1.\textit{x}} -%\begin{enumerate} -%\item \pkgname{binary.sty} style with binary prefixes and units added (see table~\ref{table:bipre}); -%\item \pkgname{binary.sty} can be loaded by using the \opt{binary} package option (see page~\pageref{sec:options}); -%\item unit \cmd{\one} added: the derived unit for a derived quantity of dimension one is also the number one; -%\item In the |pstricks| package the command |\gray| is defined. This will cause error messages -%when the |pstricks| package is used in combination with the \pkgname{SIunits}\ package. To prevent -%errors one can choose two different options: -%\begin{labeling}{\hspace{15mm}} -%\item[\opt{pstricks}]This option redefines the \texttt{pstricks} command |\gray| to get the desired -%\pkgname{SIunits}\ definition of the command.\\ \textbf{Note: }When using this option, the \texttt{pstricks} command -%|\gray| is \textbf{redefined}. -%\item[\opt{Gray}]This option defines a new command |\Gray| that can be used instead of the -%\pkgname{SIunits}\ command |\gray|.\\ \textbf{Note: }When using this option, -%|\gray| is defined in the \texttt{pstricks} package. -%\end{labeling} -%\item When using the option \opt{textstyle} units are printed in the typeface of the -%enclosing text, automatically. -%\item the . (period) was made active in the second argument of the \cmd{\unit} macro: it will act like a unit skip -%(\cmd{\usk}), \fe use |\unit{1}{\newton.\metre}| instead of |\unit{1}{\newton\usk\metre}|. -%\item \cmd{\katal} added: ``\textit{The 21st Conf\'{e}rence G\'{e}n\'{e}rale des Poids et Mesures decides to adopt the special name katal, -% symbol \katal, for the SI unit mole per second to express catalytic activity, especially -% in the fields of medicine and biochemistry, ...}" (21th CGPM (1999), Resolution 12). -%\item The ready-to-use units used \cmd{\square} instead of \cmd{\squaren} when using the option \opt{squaren}. \textsf{Fixed!} -%\item Fixed index and change history generation error. -%\item Documentation update: implementation of \textit{SI-brochure Supplement 2000}. -%\item Documentation updated/corrected: table heads. -%\item E-mail changed: \texttt{SIunits@webschool.nl} -%\item Solved bug: Defining units using |\addunit| in combination with the \opt{cdot} and \opt{textstyle} options. Thanks to Michael M\"{u}ller. -%\end{enumerate} %\newpage\tableofcontents\newpage %\section{Introduction} % @@ -1298,9 +1269,9 @@ Comprehensive TeX Archive Network (CTAN). % \usepackage[options]{SIunits} % % \begin{document} -% \ldots +% ... % \SIunits[options] -% \ldots +% ... % \end{document} % \end{verbatim} % @@ -1732,23 +1703,8 @@ Comprehensive TeX Archive Network (CTAN). % \item \textsf{David Barlett}, % \textit{The Metric System: a concise reference guide:} \\ |http://subnet.virtual-pc.com/ba424872/| % \end{enumerate} -% \subsection{Bye} -% I hope that some users will find the package -% useful and not too bugful. :--) \\Comments and suggestions -% for improvements are always most welcome!\\*[3mm] -% {\itshape \LaTeX, enjoy it! \raisebox{-\baselineskip}[0pt][0pt]{marcel h.}} -% \StopEventually{\vfill\hfill\scriptsize Copyright \copyright 2001 Marcel Heldoorn. -% \vspace{1cm} -% -% -% This program may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.2 -% of this license or (at your option) any later version. -% The latest version of this license is in -% |http://www.latex-project.org/lppl.txt| -% and version 1.2 or later is part of all distributions of LaTeX -% version 1999/12/01 or later.} -% \newpage +% \StopEventually{} +% % \section{The Magic Code} % \subsection{Hello world} % \iffalse @@ -2140,10 +2096,11 @@ Comprehensive TeX Archive Network (CTAN). % \end{macrocode} % \end{macro} % \begin{macro}{\squared} +%\changes{v1.35}{2007/11/24}{Bug fix for textstyle mode} % The above example can be realised in a more intuitive way: |\square\metre|: m\(^{2}\). % The same goes for |\cubic| \& |\fourth|: m\(^{3}\) \& m\(^{4}\). % \begin{macrocode} -\DeclareRobustCommand*{\squared}{\ensuremath{^{\mathrm{2}}}} +\DeclareRobustCommand*{\squared}{\ensuremath{^{\SI@fstyle{2}}}} % \end{macrocode} % \end{macro} % \begin{macro}{\cubic} @@ -2152,8 +2109,9 @@ Comprehensive TeX Archive Network (CTAN). % \end{macrocode} % \end{macro} % \begin{macro}{\cubed} +%\changes{v1.35}{2007/11/24}{Bug fix for textstyle mode} % \begin{macrocode} -\DeclareRobustCommand*{\cubed}{\ensuremath{^{\mathrm{3}}}} +\DeclareRobustCommand*{\cubed}{\ensuremath{^{\SI@fstyle{3}}}} % \end{macrocode} % \end{macro} % \begin{macro}{\fourth} @@ -2187,18 +2145,19 @@ Comprehensive TeX Archive Network (CTAN). % \end{macrocode} % \end{macro} % \begin{macro}{\rpsquared} +%\changes{v1.35}{2007/11/24}{Bug fix for textstyle mode} % \begin{macrocode} -\DeclareRobustCommand*{\rpsquared}{\ensuremath{^{\mathrm{\SIminus2}}}} +\DeclareRobustCommand*{\rpsquared}{\ensuremath{^{\SI@fstyle{\SIminus2}}}} % \end{macrocode} -% \end{macro} -% \begin{macro}{\rpcubic} +% \end% \begin{macro}{\rpcubic} % \begin{macrocode} \DeclareRobustCommand*{\rpcubic}[1]{\power{#1}{\SIminus3}} % \end{macrocode} % \end{macro} % \begin{macro}{\rpcubed} +%\changes{v1.35}{2007/11/24}{Bug fix for textstyle mode} % \begin{macrocode} -\DeclareRobustCommand*{\rpcubed}{\ensuremath{^{\mathrm{\SIminus3}}}} +\DeclareRobustCommand*{\rpcubed}{\ensuremath{^{\SI@fstyle{\SIminus3}}}} % \end{macrocode} % \end{macro} % \begin{macro}{\rpfourth} @@ -2713,16 +2672,25 @@ Comprehensive TeX Archive Network (CTAN). % \end{macro} % \paragraph{Energy} electronvolt --- \electronvolt % \begin{macro}{\electronvolt} +%\changes{v1.35}{2007/11/23}{Improved appearance} % \begin{macrocode} -\addunit{\electronvolt}{e\volt} +\addunit{\electronvolt}{e\kern-0.05ex\volt} % \end{macrocode} % \end{macro} % \paragraph{Unified atomic mass unit} atomic mass --- \atomicmass % \begin{macro}{\atomicmass} +% \begin{macro}{\atomicmassunit} +%\changes{v1.35}{2007/11/23}{New unit} +% \begin{macro}{\dalton} +%\changes{v1.35}{2007/11/23}{New unit} % \begin{macrocode} \addunit{\atomicmass}{u} +\addunit{\atomicmassunit}{u} +\addunit{\dalton}{Da} % \end{macrocode} % \end{macro} +% \end{macro} +% \end{macro} % \paragraph{Area} are --- \are; hectare --- \hectare; barn --- \barn % \begin{macro}{\are} % \begin{macrocode} @@ -3090,6 +3058,7 @@ Comprehensive TeX Archive Network (CTAN). \addunit{\kilogrampersecondcubicmetre}{\kilogram\per\second\usk\cubicmetre} \addunit{\kilogrampersecondcubicmetrenp}{\kilogram\usk\reciprocal\second\usk\rpcubic\metre} % \end{macrocode} + % \subsection{Option handling} % \changes{v0.99}{1999/07/23}{LaTeX2e option handling implemented.} % \DescribeMacro{Options} |