Re: Tegelijk centreren en uitlijnen op decimaalteken in een kolom
Wybo Dekker <wybodekker-qWit8jRvyhVmR6Xm/[email protected]>
| Newsgroups | gmane.comp.tex.dutch |
|---|---|
| Message-ID | <[email protected]> |
Ik had weer niet goed opgelet. Om het goed te maken hierbij een kant-en-klare in de attachment: On 2010-11-19 11:09, F-BTSC wrote: > Ik wil een tabel maken waarin de getallen van dezelfde kolom uitgelijnd > worden op het decimaalteken. -- Wybo _______________________________________________ TeX-NL mailing list [email protected] http://www.ntg.nl/cgi-bin/mailman/listinfo/tex-nl
main.tex
(text/x-tex, 746 B)
\documentclass{article}
\usepackage{ctable,dcolumn}
\newcolumntype{d}{D{.}{.}{-1}}
\newcommand{\C}[1]{\multicolumn{1}{c}{#1}}
\newcommand{\CC}[1]{\multicolumn{2}{c}{#1}}
\newcommand{\Po}[1]{$\times10^{#1}$}
\begin{document}
\ctable[
caption = Surface area available for pegylation,
label = t:surfacebeads2,
pos = htp
]{rddd@{}l}{}{ \FL
\C{Size} & \C{Concentration} & \C{Volume used} & \CC{Surface area} \NN
\C{nm} & \C{g/ml} & \C{ml} & \CC{nm\textsuperscript{2}}\ML
40 & 5 & 0.2 & 14.3 &\Po{18} \NN
100 & 2 & 0.5 & 5.7 &\Po{18} \NN
200 & 2 & 0.5 & 11.4 &\Po{12} \LL
}
\end{document}