Zahlen in Tabelle an Dezimalstelle ausrichten
Von: HansMaier (vivoamicus@yahoo.de) [Profil]
Datum: 04.11.2009 01:07
Message-ID: <fd949af1-62f5-4fe7-9d72-69340680a53a@t2g2000yqn.googlegroups.com>
Newsgroup: de.comp.text.tex
Datum: 04.11.2009 01:07
Message-ID: <fd949af1-62f5-4fe7-9d72-69340680a53a@t2g2000yqn.googlegroups.com>
Newsgroup: de.comp.text.tex
Hi,
ich habe folgende Tabelle erstellt (siehe unten). Ich hätte gerne die
Nummern auf die Dezimalstelle hin ausgerichtet. Wie mache ich das?
Habe mir "dcolumn" angesehen, jedoch - Schande auf mein Haupt - ohne
Erfolg. Weiss jemand Rat? Danke. Hans.
\documentclass[a4paper, 12pt]{report}
\usepackage{booktabs}
\begin{document}
\begin{table}[htp]
\renewcommand{\arraystretch}{1.2}
\caption{default}
\begin{center}
\begin{tabular}{lccc}
\toprule
\addlinespace[8pt]
& Average number of cells/brain & Number of cells & Percent \\
\addlinespace[8pt]
\hline
\addlinespace[8pt]
BrdU+/Dpn+ & $0$ & $0$ & $0\,\%$ \\
BrdU+/Repo+ & $2.48\pm{0.33}$ & $57$ & $90.5\,\%$ \\
BrdU+/Repo-- & 0.26$\pm{0.09}$ & $6$ & $9.5\,\%$ \\
& \multicolumn{3}{c}{$n=23$ brains} \\
\addlinespace[2pt]
\hline
\addlinespace[8pt]
EdU+/Mira+ & $0$ & $0$ & $0\,\%$ \\
EdU+/Repo+ & $4.12\pm{0.52}$ & $70$ & $88.6\,\%$ \\
EdU+/Repo-- & 0.52$\pm{0.15}$ & $9$ & $11.4\,\%$ \\
& \multicolumn{3}{c}{$n=17$ brains} \\
\addlinespace[2pt]
\hline
\addlinespace[8pt]
BrdU+/Pros+ & $0$ & $0$ & $0\,\%$ \\
BrdU+/Repo+ & $2.46\pm{0.36}$ & $59$ & $83.1\,\%$ \\
BrdU+/Repo-- & 0.50$\pm{0.15}$ & $12$ & $16.9\,\%$ \\
& \multicolumn{3}{c}{$n=24$ brains} \\
\bottomrule
\end{tabular}
\end{center}
\label{default}
\end{table}
\end{document}
[ Auf dieses Posting antworten ]Antworten
- Uwe Ziegenhagen (04.11.2009 05:43)
- Olaf Schultz (04.11.2009 20:00)
- HansMaier (05.11.2009 04:05)
