diff options
Diffstat (limited to 'doc/diploma/gost/gost-7-32-tables.sty')
| -rw-r--r-- | doc/diploma/gost/gost-7-32-tables.sty | 31 |
1 files changed, 31 insertions, 0 deletions
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 @@ | |||
| 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. \\} | ||
