Matheumgebung in Tabelle wird nicht zentriert
Verfasst: Sa 28. Nov 2015, 12:45
Halloo, also mein Problem ist Folgendes: Ich möchte eine Tabelle, in der alle Spalten sowohl horizontal als auch vertikal zentriert sind. Das ist auch kein Problem, bis auf in der letzten Spalte. Dort findet sich in der ersten Zeile eine Matheumgebung und die wird nicht vertikal zentriert. Was kann ich ändern? Hier das Minimalbeispiel:
% \documentclass[12pt]{report} \usepackage[a4paper,left=2cm,right=3cm,top=2.5cm,bottom=4cm,bindingoffset=5mm]{geometry} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tabularx} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \begin{document} \section*{Ansatz} \renewcommand{\arraystretch}{1.5} \begin{tabularx}{\textwidth}{|C{4.7cm}|C{1.6cm}|C{1.6cm}|C{1.6cm}|C{1.6cm}|C{1.75cm}|} \hline \textbf{Stoff} & \textbf{eq.} & \textbf{\textit{n}/mol} & \textbf{\textit{m}/g} & \textbf{\textit{V}/mL} & \small{\textbf{\textit{M}/$(\frac{\textup{g}}{\textup{mol}})$}} \\ \hline Ethylcyanacetat & 1 & 0,24 & 27,2 g & 25,6 & 113,1 \\ \hline Butanon & 0,5 & 0,12 & 8,6 & 10,8 & 72,11 \\ \hline Ammoniumacetat & 0,007 & 0,0008 & 0,2 & - & 77,08\\ \hline Ethanol & 3,25 & 0,8 & 38 & 50 & 46,07\\ \hline Ammoniak & 1,2 & 0,28 & 4,9 & - & 17,03\\ \hline Diethylether & - & - & - & 20 & 74,12 \\ \hline Salzs"aure (konz.) & - & - & - & 10 & - \\ \hline \end{tabularx}\\[1cm] \end{document} %Ende des Dokumentes