aboutsummaryrefslogtreecommitdiff
path: root/doc/gost/gost-7-32-tables.sty
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-11 05:31:06 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-11 06:14:42 +0000
commit9e1d304cac5367c3dbb1ca14700736680bd3a804 (patch)
tree31f328747acb934d365d423adfda144818ff5ad4 /doc/gost/gost-7-32-tables.sty
downloadlab-01-05-9e1d304cac5367c3dbb1ca14700736680bd3a804.tar.gz
publishHEADmaster
Diffstat (limited to 'doc/gost/gost-7-32-tables.sty')
-rw-r--r--doc/gost/gost-7-32-tables.sty31
1 files changed, 31 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..c3954c3
--- /dev/null
+++ b/doc/gost/gost-7-32-tables.sty
@@ -0,0 +1,31 @@
1\ProvidesPackage{gost-7-32-tables}[2022/01/28 GOST 7.32-2017]
2
3\RequirePackage{booktabs}
4\RequirePackage{xltabular}
5\renewcommand\tabularxcolumn[1]{m{#1}} % for vertical centering text
6
7%
8% Center-aligned column with automatic width
9%
10\newcolumntype{C}{>{\centering\arraybackslash}X}
11
12%
13% Right-aligned column with automatic width
14%
15\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
16
17%
18% Table with designations
19%
20\newenvironment{designations}{
21 \noindent
22 \tabularx{\textwidth}{@{}
23 >{\raggedright \arraybackslash \hsize=0.25\hsize}X
24 >{\centering \arraybackslash \hsize=0.05\hsize}X
25 >{\arraybackslash \hsize=0.70\hsize}X
26 }
27}{
28 \endtabularx
29}
30
31\newcommand{\designation}[2]{#1 &---& #2. \\}