From cb070b2d3f2b6e241e3be1b7e0eeb90fc755255f Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Thu, 12 Nov 2026 01:28:13 +0300 Subject: publish --- doc/diploma/gost/gost-7-32-tables.sty | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/diploma/gost/gost-7-32-tables.sty (limited to 'doc/diploma/gost/gost-7-32-tables.sty') diff --git a/doc/diploma/gost/gost-7-32-tables.sty b/doc/diploma/gost/gost-7-32-tables.sty new file mode 100644 index 0000000..c3954c3 --- /dev/null +++ b/doc/diploma/gost/gost-7-32-tables.sty @@ -0,0 +1,31 @@ +\ProvidesPackage{gost-7-32-tables}[2022/01/28 GOST 7.32-2017] + +\RequirePackage{booktabs} +\RequirePackage{xltabular} +\renewcommand\tabularxcolumn[1]{m{#1}} % for vertical centering text + +% +% Center-aligned column with automatic width +% +\newcolumntype{C}{>{\centering\arraybackslash}X} + +% +% Right-aligned column with automatic width +% +\newcolumntype{R}{>{\raggedleft\arraybackslash}X} + +% +% Table with designations +% +\newenvironment{designations}{ + \noindent + \tabularx{\textwidth}{@{} + >{\raggedright \arraybackslash \hsize=0.25\hsize}X + >{\centering \arraybackslash \hsize=0.05\hsize}X + >{\arraybackslash \hsize=0.70\hsize}X + } +}{ + \endtabularx +} + +\newcommand{\designation}[2]{#1 &---& #2. \\} -- cgit v1.3.1