aboutsummaryrefslogtreecommitdiff
path: root/gost/gost-7-32-tables.sty
diff options
context:
space:
mode:
authorLibravatar Comrade Martin Miroslavovich Michalec <martin@michalec.dev>2024-03-05 15:37:51 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-07 06:40:16 +0000
commitd604af036dd2c14490c0bffd6239901d9a5a7c1e (patch)
tree98f3c8fb253bfc4691dc30a0a0c8525cf3ad6f37 /gost/gost-7-32-tables.sty
downloadarticle-master.tar.gz
publishHEADmaster
Diffstat (limited to 'gost/gost-7-32-tables.sty')
-rw-r--r--gost/gost-7-32-tables.sty29
1 files changed, 29 insertions, 0 deletions
diff --git a/gost/gost-7-32-tables.sty b/gost/gost-7-32-tables.sty
new file mode 100644
index 0000000..750ab75
--- /dev/null
+++ b/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. \\}