General ⇒ tabular x and multirow
tabular x and multirow
I make a table like this:
--------------------------------------
| long | long | line | long | long |
| | |----------- | | |
| line | line | line | line | line | line |
--------------------------------------
And use next commands:
\begin{tabularx}{\textwidth}{|c|X|X|*{4}{c|}}
\hline
\multirow{2}{1.2cm}{long line} & \multirow{2}{1.2cm}{long line} & \multicolumn{2}{c}{line} & \multirow{2}{1.3(!!)cm}{long\-(!!)line} & \multirow{2}{1.2cm}{long line} & \multirow{2}{1.2cm}{long line}\\
& & line & line & & &\\
(!!) - mean, that i fix it by hand and spend long time to achieve, that text fit to the row.
Is there are more simple way to create this table and touch nothing by hand (like changing row width and inserting hyphen)?
Thanks!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: tabular x and multirow
B.A.
tabular x and multirow
Ok, what i get currently:

and what with {*} (i tried this before with no luck

\multirow{2}{*}{Код работ} & \multirow{2}{*}{Определение работы} & \multicolumn{2}{c}{ИÑполнители} & \multirow{2}{*}{ТрудоемкоÑть} & \multirow{2}{*}{Оклад (руб.)} & \multirow{2}{*}{ЗП (руб.)}\\
& & ДолжноÑть & Кол-во & & &\\
P.S.: Sorry for russian text.
