I'm newbie in TeX, so I've decided to ask for some help.
I'm working on technical documentation for my job and I need to create a 4-column table, where text in first two columns top-aligned and centered horizontally, last two aligned with last string of second column. But I can't achieve this.
I've tried this: Align text at the bottom of the table cell
and this: Vertical alignment in tabular cells with variable height
But the closest result which I able to obtain is:
So, last three columns is OK, first one - not, it should be top-aligned.
I was successful to overcome this by usage of \multirow
environment, but it's should be implemented individually to rows. If' I'll do this for long tables - it'll make me insane. I want one fixed style in preamble, if it's possible.
Here is my table in main body:
%russian technichal standart documentation class
\documentclass[russian, 14pt, utf8, columnsxxiv, columnxxxi, columnxxxii, pointsection, hpadding = 10mm]{eskdtext}
%%%For working of eskdx, also cyrillic
\usepackage{xecyr}
%%%set TNR as main font
\setmainfont[Mapping=tex-text]{Times New Roman}
%%%Additional position options
\usepackage{float}
%%%advanced tables
\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\newcolumntype{d}{>{\centering}b{.25\textwidth}}
\newcolumntype{s}{>{\centering}b{.1\textwidth}}
\newcolumntype{a}{>{\centering}p{.25\textwidth}}
%%%redefine command for № -symbol, because eskdx quite old package
\renewcommand{\No}{\textnumero}
\begin{document}
\begin{table}[H]
\label{appA}
\begin{tabularx}{\textwidth}{a|d|s|Y}
\hline
Наименование & Основные технические данные & Кол., шт. & Примечание \\
\hline
text text text text text text text & text text text text text text text text text text& {1} & text \\
\end{tabularx}
\end{table}
\end{document}
I'll appreciate any help!
\documentclass{...}
and ending with\end{document}
. welcome to tex.se!