I have a few problems with a simple table of mine. Here are two examples of the same table, the first one is supposed to be align at the left side of the page and the first column should be 0,5 cm wide and right align, all the other columns should be the same width at least 1 cm and center aligned.
Code: Select all
\documentclass[a4paper]{article}
\usepackage[slovene]{babel}
\usepackage[cp1250]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\begin{document}
\begin{tabular}{c*{5}{|r}}
$n\backslash k$ & 1 & 2 & 3 & 4 & 5 \\ \hline
1 & 223,3 & & & & \\
2 & 236,9 & 410,3 & & & \\
3 & 241,7 & 446,7 & 583,6 & & \\
4 & 244,0 & 464,1 & 638,8 & 751,0 & \\
5 & 245,3 & 473,8 & 670,0 & 820,6 & 915,3
\end{tabular}
\end{document}
When i change the first column width and alignment with the command p{0,5cm} it becomes like in table2.pdf
Also the number 410,3 is a little out of center.
If you can help me, thank you.
Motore