Hallo zusammen,

ich versuche eine Tabelle zu erstellen, in der manuellen Zeilenumbrüche innerhalb von Zellen vorkommen. Dabei soll der Inhalt der Zellen jedoch zentriert bleiben. Ich habe inzwischen eine Möglichkeit gefunden, wie ich das ohne |c| im Tabellenheader hinbekomme, da diese Option ja keine Zeilenumbruch innerhalb der Zelle erlaubt. Also habe ich jetzt \centering und |X| verwendet (s. Minimalbsp.).

Das Problem ist allerdings, dass in den Zellen in denen tatsächlich ein Zeilenumbruch stattfindet, die Zentrierung irgendwie nicht mehr zu den anderen passt. Unglücklicherweise sticht das bei meiner Tabelle eben sofort ins Auge.

Vielleicht hat jemand eine Idee.

Code:
\begin{table}[htb]
	\centering
	\begin{tabularx}{\textwidth}{|l|>{\centering}X|>{\centering}X|>{\centering}X|>{\centering}X|>{\centering\arraybackslash}X|}			
			\hline
			&		1. CW \emph{r} 	 & 		2. CW \emph{a} 	 & 		3. CW \emph{s} 	 & 		4. CW \emph{t} 	 & \textcolor{blue}{Paritätswort} \\
			\hline \hline
	LSB & 	0 	 & 		1 	 & 		1 	 & 		0 	 & \textcolor{blue}{1} \\
		&		1	 & 		 0 	 & 		1 	 & 		0 	 & \textcolor{blue}{1} \\
		&		0 \newline gerade!	 & 		0 	 & 		\textbf{\textcolor{red}{1}} \newline Fehlerstelle\newline wird geortet 	 & 		1 	 & \textcolor{blue}{0} \\
		&		0	 & 		0 	 & 		0 	 & 		0 	 & \textcolor{blue}{1} \\
		&		1	 & 		0 	 & 		1 	 & 		1 	 & \textcolor{blue}{0 }\\
		&		1	 & 		1 	 & 		1 	 & 		1 	 & \textcolor{blue}{1} \\
	MSB	&		1	 & 		1 	 & 		1 	 & 		1 	 & \textcolor{blue}{1} \\
	\hline
	\textcolor{red}{Paritätsbit} & \textcolor{red}{0} & \textcolor{red}{1} & \textcolor{red}{1} \newline ungerade! & \textcolor{red}{0} & - \\ \hline
	\end{tabularx}	
	\caption{Fehlererkennung}
	\label{tab:Fehlererkennung}
\end{table}
Sieht dann bei mir leider so aus: