I have this MWE:
\documentclass[12pt,landscape,a4paper]{article}
\usepackage{multirow}
\usepackage{microtype}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{longtable}
\usepackage[utf8]{inputenc}
\usepackage[english,czech]{babel}
\usepackage{hyphenat}
\usepackage{siunitx,booktabs}
\sisetup{output-decimal-marker = {,}}
\usepackage{ragged2e}
\newcommand*\fixalign[2][]{\begin{tabular}{@{}S[#1]@{}}#2\end{tabular}}
\begin{document}
\begin{longtable}{p{4cm}ccS[table-format=1.1]}
\multirow{2}{4cm}{\strut \Centering Název} &
\multicolumn{2}{c}{\Centering Premiéra} &
\multirow{2}{0.8cm}{\Centering Min. doba} \\
&\Centering Svět & \Centering ČR & \\
\Centering Kazatel Kalašnikov & 1.2. & 3.4. & 5.8\\
\Centering Musíme si promluvit o Kevinovi &
\multirow{2}{*}{1.6.} &
\multirow{2}{*}{5.4} &
\multirow{2}{*}{\fixalign[table-format=1.1]{2.8}}\\
\end{longtable}
\end{document}
That compiles into this:
I would like 5.8 and 2.8 to be aligned. I figure I would need to define colums to have certain width and only then use siunitx, but I am not sure how to do that. (My actual table is much larger and slightly more complicated.)
S
columns alone, and add space between columns instead.tiny
font size already).