| 1 |
%% |
| 2 |
%% This is file `dcolumn.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% dcolumn.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs/ |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2026 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'. |
| 21 |
%% -------------------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2005/12/01 or later. |
| 30 |
%% |
| 31 |
%% This file may only be distributed together with a copy of the LaTeX |
| 32 |
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle' |
| 33 |
%% without such generated files. |
| 34 |
%% |
| 35 |
%% The list of all files belonging to the LaTeX `Tools Bundle' is |
| 36 |
%% given in the file `manifest.txt'. |
| 37 |
%% |
| 38 |
%% File: dcolumn.dtx Copyright (C) 1992-1996 1999-2001 David Carlisle |
| 39 |
\NeedsTeXFormat{LaTeX2e} |
| 40 |
\ProvidesPackage{dcolumn} |
| 41 |
[2025/10/21 v1.06 decimal alignment package (DPC)] |
| 42 |
\RequirePackage{array} |
| 43 |
\def\DC@#1#2#3{% |
| 44 |
\uccode`\~=`#1\relax |
| 45 |
\m@th |
| 46 |
\afterassignment\DC@x\count@#3\relax{#1}{#2}} |
| 47 |
\def\DC@x#1\relax#2#3{% |
| 48 |
\ifnum\z@>\count@ |
| 49 |
\expandafter\DC@centre |
| 50 |
\else |
| 51 |
\expandafter\DC@right |
| 52 |
\fi |
| 53 |
{#2}{#3}{#1}} |
| 54 |
\def\DC@centre#1#2#3{% |
| 55 |
\let\DC@end\DC@endcentre |
| 56 |
\uppercase{\def~}{$\egroup\setbox\tw@=\hbox\bgroup${#2}}% |
| 57 |
\setbox\tw@=\hbox{${\phantom{{#2}}}$}% |
| 58 |
\setbox\z@=\hbox\bgroup$\mathcode`#1="8000 } |
| 59 |
\def\DC@endcentre{$\egroup |
| 60 |
\ifdim \wd\z@>\wd\tw@ |
| 61 |
\setbox\tw@=\hbox to\wd\z@{\unhbox\tw@\hfill}% |
| 62 |
\else |
| 63 |
\setbox\z@=\hbox to\wd\tw@{\hfill\unhbox\z@}\fi |
| 64 |
\box\z@\box\tw@} |
| 65 |
\def\DC@right#1#2#3{% |
| 66 |
\ifx\relax#3\relax |
| 67 |
\hfill |
| 68 |
\let\DC@rl\bgroup |
| 69 |
\else |
| 70 |
\edef\DC@rl{to\the\count@\dimen@ii\bgroup\hss\hfill}% |
| 71 |
\count@\@gobble#3\relax |
| 72 |
\fi |
| 73 |
\let\DC@end\DC@endright |
| 74 |
\uppercase{\def~}{$\egroup\setbox\tw@\hbox to\dimen@\bgroup${#2}}% |
| 75 |
\setbox\z@\hbox{$1$}\dimen@ii\wd\z@ |
| 76 |
\dimen@\count@\dimen@ii |
| 77 |
\setbox\z@\hbox{${#2}$}\advance\dimen@\wd\z@ |
| 78 |
\setbox\tw@\hbox to\dimen@{}% |
| 79 |
\setbox\z@\hbox\DC@rl$\mathcode`#1="8000 } |
| 80 |
\def\DC@endright{$\hfil\egroup\box\z@\box\tw@} |
| 81 |
\newcolumntype{D}[3]{>{\DC@{#1}{#2}{#3}}c<{\DC@end}} |
| 82 |
\endinput |
| 83 |
%% |
| 84 |
%% End of file `dcolumn.sty'. |