aboutsummaryrefslogtreecommitdiff
path: root/doc/gost/gost-7-32-tables.sty
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-09 17:48:23 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-09 18:03:25 +0000
commitbd1b82e7eba0695ad7bb62ca0482e756dc374ba4 (patch)
tree8cc51952853cd21cd55b48974c94d57f955ea555 /doc/gost/gost-7-32-tables.sty
downloadsummer-practice-bd1b82e7eba0695ad7bb62ca0482e756dc374ba4.tar.gz
publishHEADmaster
Diffstat (limited to 'doc/gost/gost-7-32-tables.sty')
-rw-r--r--doc/gost/gost-7-32-tables.sty29
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. \\}