diff options
| author | 2026-11-07 06:12:48 +0000 | |
|---|---|---|
| committer | 2026-11-07 06:21:22 +0000 | |
| commit | 39dcac2281970febcce36a0151796af2986388b3 (patch) | |
| tree | 7339e54dc942a3ab0d9ba9daae56a2801c1917e9 /doc/gost/gost-7-32-tables.sty | |
| download | coursework-39dcac2281970febcce36a0151796af2986388b3.tar.gz | |
Diffstat (limited to 'doc/gost/gost-7-32-tables.sty')
| -rw-r--r-- | doc/gost/gost-7-32-tables.sty | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/gost/gost-7-32-tables.sty b/doc/gost/gost-7-32-tables.sty new file mode 100644 index 0000000..750ab75 --- /dev/null +++ b/doc/gost/gost-7-32-tables.sty | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | \ProvidesPackage{gost-7-32-tables}[2022/01/28 GOST 7.32-2017] | ||
| 2 | |||
| 3 | \RequirePackage{tabularx} | ||
| 4 | |||
| 5 | % | ||
| 6 | % Center-aligned column with automatic width | ||
| 7 | % | ||
| 8 | \newcolumntype{Y}{>{\centering\arraybackslash}X} | ||
| 9 | |||
| 10 | % | ||
| 11 | % Right-aligned column with automatic width | ||
| 12 | % | ||
| 13 | \newcolumntype{Z}{>{\raggedleft\arraybackslash}X} | ||
| 14 | |||
| 15 | % | ||
| 16 | % Table with designations | ||
| 17 | % | ||
| 18 | \newenvironment{designations}{ | ||
| 19 | \noindent | ||
| 20 | \tabularx{\textwidth}{@{} | ||
| 21 | >{\raggedright \arraybackslash \hsize=0.25\hsize}X | ||
| 22 | >{\centering \arraybackslash \hsize=0.05\hsize}X | ||
| 23 | >{\arraybackslash \hsize=0.70\hsize}X | ||
| 24 | } | ||
| 25 | }{ | ||
| 26 | \endtabularx | ||
| 27 | } | ||
| 28 | |||
| 29 | \newcommand{\designation}[2]{#1 &---& #2. \\} | ||
