| 1 |
\iffalse meta-comment |
| 2 |
|
| 3 |
File: siunitx-code.tex Copyright (C) 2016-2024,2026 Joseph Wright |
| 4 |
|
| 5 |
It may be distributed and/or modified under the conditions of the |
| 6 |
LaTeX Project Public License (LPPL), either version 1.3c of this |
| 7 |
license or (at your option) any later version. The latest version |
| 8 |
of this license is in the file |
| 9 |
|
| 10 |
https://www.latex-project.org/lppl.txt |
| 11 |
|
| 12 |
This file is part of the "siunitx bundle" (The Work in LPPL) |
| 13 |
and all files in that bundle must be distributed together. |
| 14 |
|
| 15 |
The released version of this bundle is available from CTAN. |
| 16 |
|
| 17 |
----------------------------------------------------------------------- |
| 18 |
|
| 19 |
The development version of the bundle can be found at |
| 20 |
|
| 21 |
https://github.com/josephwright/siunitx |
| 22 |
|
| 23 |
for those people who are interested. |
| 24 |
|
| 25 |
----------------------------------------------------------------------- |
| 26 |
|
| 27 |
\fi |
| 28 |
|
| 29 |
\documentclass{l3doc} |
| 30 |
|
| 31 |
% The next line is needed so that \GetFileInfo will be able to pick up |
| 32 |
% version data. |
| 33 |
\usepackage{siunitx} |
| 34 |
|
| 35 |
% Commands for this document |
| 36 |
\ExplSyntaxOn |
| 37 |
\makeatletter |
| 38 |
\NewDocumentCommand \acro { m } |
| 39 |
{ |
| 40 |
\textsc |
| 41 |
{ |
| 42 |
\exp_args:NV \tl_if_head_eq_charcode:nNTF \f@series { m } |
| 43 |
{ \text_lowercase:n } |
| 44 |
{ \use:n } |
| 45 |
{#1} |
| 46 |
} |
| 47 |
} |
| 48 |
\makeatother |
| 49 |
\ExplSyntaxOff |
| 50 |
\NewDocumentCommand\email{m}{\href{mailto:#1}{\nolinkurl{#1}}} |
| 51 |
\NewDocumentCommand\foreign{m}{\textit{#1}} |
| 52 |
\NewDocumentCommand\version{m}{\ensuremath{#1}} |
| 53 |
\ExpandArgs{c}\NewDocumentCommand{version (pdfstring context)}{m}{#1} |
| 54 |
\pdfstringdefDisableCommands{% |
| 55 |
\ExpandArgs{Nc}\DeclareCommandCopy\version{version (pdfstring context)}} |
| 56 |
|
| 57 |
% Standard settings |
| 58 |
\EnableDocumentation |
| 59 |
\DisableImplementation |
| 60 |
|
| 61 |
\begin{document} |
| 62 |
|
| 63 |
\GetFileInfo{siunitx.sty} |
| 64 |
|
| 65 |
\title{% |
| 66 |
\pkg{siunitx} -- A comprehensive (SI) units package% |
| 67 |
\thanks{This file describes \fileversion, |
| 68 |
last revised \filedate.}% |
| 69 |
} |
| 70 |
|
| 71 |
\author{% |
| 72 |
Joseph Wright% |
| 73 |
\thanks{% |
| 74 |
E-mail: |
| 75 |
\email{[email protected]}% |
| 76 |
}% |
| 77 |
} |
| 78 |
|
| 79 |
\date{Released \filedate} |
| 80 |
|
| 81 |
\pagenumbering{roman} |
| 82 |
|
| 83 |
\maketitle |
| 84 |
\tableofcontents |
| 85 |
\clearpage |
| 86 |
\pagenumbering{arabic} |
| 87 |
|
| 88 |
% Make the separate source files into a single whole, format-wise |
| 89 |
\RenewDocumentCommand\maketitle{}{} |
| 90 |
|
| 91 |
\let\DelayPrintIndex\PrintIndex |
| 92 |
\RenewDocumentCommand\PrintIndex{}{} |
| 93 |
|
| 94 |
% Load the source files in order |
| 95 |
%\DocInput{siunitx.dtx} |
| 96 |
\DocInput{siunitx-complex.dtx} |
| 97 |
\DocInput{siunitx-compound.dtx} |
| 98 |
\DocInput{siunitx-locale.dtx} |
| 99 |
\DocInput{siunitx-number.dtx} |
| 100 |
\DocInput{siunitx-print.dtx} |
| 101 |
\DocInput{siunitx-quantity.dtx} |
| 102 |
\DocInput{siunitx-sexagesimal.dtx} |
| 103 |
%\DocInput{siunitx-symbol.dtx} |
| 104 |
\DocInput{siunitx-table.dtx} |
| 105 |
\DocInput{siunitx-unit.dtx} |
| 106 |
\DocInput{siunitx-abbreviation.dtx} |
| 107 |
\DocInput{siunitx-binary.dtx} |
| 108 |
\DocInput{siunitx-command.dtx} |
| 109 |
%\DocInput{siunitx-emulation.dtx} |
| 110 |
\clearpage |
| 111 |
|
| 112 |
\DelayPrintIndex |
| 113 |
|
| 114 |
\end{document} |