summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx/siunitx-code.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-18 03:01:12 +0000
committerNorbert Preining <norbert@preining.info>2021-05-18 03:01:12 +0000
commit97eca13a92a0b8ad423b606c8970c9ce64d9b2bf (patch)
tree7275ec8351efb8f8108d65ec87d4cc81512a295a /macros/latex/contrib/siunitx/siunitx-code.tex
parentd999da47ff375df843c0c9bbfd5911236dd9d40a (diff)
CTAN sync 202105180301
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-code.tex')
-rw-r--r--macros/latex/contrib/siunitx/siunitx-code.tex102
1 files changed, 102 insertions, 0 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-code.tex b/macros/latex/contrib/siunitx/siunitx-code.tex
new file mode 100644
index 0000000000..7396975f44
--- /dev/null
+++ b/macros/latex/contrib/siunitx/siunitx-code.tex
@@ -0,0 +1,102 @@
+\iffalse meta-comment
+
+File: siunitx-code.tex Copyright (C) 2016-2021 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
+\cs_new_eq:NN \LowerCaseText \tl_lower_case:n
+\ExplSyntaxOff
+\NewDocumentCommand\acro{m}{\textsc{\LowerCaseText{#1}}}
+\NewDocumentCommand\foreign{m}{\textit{#1}}
+
+\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}