aboutsummaryrefslogtreecommitdiff
path: root/doc/gost/gost-7-32-tables.sty
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-07 04:42:12 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-07 04:42:12 +0000
commitf151b796a66adfb1d6b7bf151f2d85fd78cc0a64 (patch)
treeba530b977e6e853d6e1582adbfe1e840d03ffd38 /doc/gost/gost-7-32-tables.sty
downloadlab-06-master.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. \\}