[Tex/LaTex] Align text in tables in LyX

horizontal alignmentlyxtables

I want to align the text of one of my tables like this:

enter image description here

However, I got this:

enter image description here

The header of the table are centered and rotated (in case of the first column header) and the rest of the text are aligned to the left (second column) and right (rest of the columns).

So, because I'm new in this, I'm doing some bad techniques of LaTeX programming in LyX with my LyX file.

Best Answer

Each cell that should be set in a different alignment compared to the rest of the column in that table needs a specific Multicolumn formatting. Do achieve this, right-click in the cell of interest and select More... > Multicolumn:

enter image description here

Now you can format the centering in the regular way using the Table toolbar:

enter image description here

I've also rotated the first entry by 90 degrees using the following ERT:

enter image description here

Your output should now resemble:

enter image description here