summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx/siunitx-code.tex
blob: a4c39783107adbf28903fcaf5596a5ba5f763b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
\iffalse meta-comment

File: siunitx-code.tex Copyright (C) 2016-2022 Joseph Wright

It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
license or (at your option) any later version.  The latest version
of this license is in the file

   https://www.latex-project.org/lppl.txt

This file is part of the "siunitx bundle" (The Work in LPPL)
and all files in that bundle must be distributed together.

The released version of this bundle is available from CTAN.

-----------------------------------------------------------------------

The development version of the bundle can be found at

   https://github.com/josephwright/siunitx

for those people who are interested.

-----------------------------------------------------------------------

\fi

\documentclass{l3doc}

% The next line is needed so that \GetFileInfo will be able to pick up
% version data.
\usepackage{siunitx}

% Commands for this document
\ExplSyntaxOn
\makeatletter
\NewDocumentCommand \acro { m }
  {
    \textsc
      {
        \exp_args:NV \tl_if_head_eq_charcode:nNTF \f@series { m }
          { \text_lowercase:n }
          { \use:n }
            {#1}
      }
  }
\makeatother
\ExplSyntaxOff
\NewDocumentCommand\foreign{m}{\textit{#1}}

% Standard settings
\EnableDocumentation
\DisableImplementation

\begin{document}

\GetFileInfo{siunitx.sty}

\title{%
  \pkg{siunitx} -- A comprehensive (SI) units package%
  \thanks{This file describes \fileversion,
    last revised \filedate.}%
}

\author{%
  Joseph Wright%
  \thanks{%
    E-mail:
    \href{mailto:joseph.wright@morningstar2.co.uk}
      {joseph.wright@morningstar2.co.uk}%
  }%
}

\date{Released \filedate}

\pagenumbering{roman}

\maketitle
\tableofcontents
\clearpage
\pagenumbering{arabic}

% Make the separate source files into a single whole, format-wise
\makeatletter
\RenewDocumentCommand\maketitle{}{%
  \clearpage
  \part{\@title}%
}
\makeatother
\renewcommand*\partname{Part}
\DeclareExpandableDocumentCommand\thanks{m}{}

\let\DelayPrintIndex\PrintIndex
\RenewDocumentCommand\PrintIndex{}{}

% Load the source files in order
%\DocInput{siunitx.dtx}
\DocInput{siunitx-angle.dtx}
\DocInput{siunitx-compound.dtx}
\DocInput{siunitx-locale.dtx}
\DocInput{siunitx-number.dtx}
\DocInput{siunitx-print.dtx}
\DocInput{siunitx-quantity.dtx}
\DocInput{siunitx-symbol.dtx}
\DocInput{siunitx-table.dtx}
\DocInput{siunitx-unit.dtx}
\DocInput{siunitx-abbreviation.dtx}
\DocInput{siunitx-binary.dtx}
\DocInput{siunitx-command.dtx}
\DocInput{siunitx-emulation.dtx}
\clearpage

\DelayPrintIndex

\end{document}