Path: utzoo!utgpu!news-server.csri.toronto.edu!ois.db.toronto.edu!panos Newsgroups: comp.text.tex From: panos@db.toronto.edu (Panos Economopoulos) Subject: Re: TABLES-- Aligning the decimal points. (LaTeX) Message-ID: <91Feb3.125036est.3322@ois.db.toronto.edu> Organization: Department of Computer Science, University of Toronto References: <1991Jan25.114530.2289@vax5.cit.cornell.edu> <1991Jan26.221417.24115@Neon.Stanford.EDU> <1991Jan31.041733.18119@nntp-server.caltech.edu> Distribution: comp Date: 3 Feb 91 17:50:49 GMT Lines: 38 I repost a beautifully simple solution by Eric Domenjoud (domen@loria.crin.fr) that appeared in this newsgroup some time ago. -------------------------------------------------------------- 1) How does one align a column of numbers which need to be right aligned under a central heading? e.g. The Heading 27 113 1251 4 etc..... \begin{tabular}{c} The Heading \\ \begin{tabular}{r} 27 \\ 113 \\ 1251 \\ 4 \end{tabular} \end{tabular} 2) What do you do if you have a lot of numbers to be aligned on a decimal point if the numbers have varying numbers of decimal places? e.g. 10.7 1.3 0.75 etc.... \begin{tabular}{r@{.}l} 10&7 \\ 1&3 \\ 0&75 \end{tabular} ------------------------------------------------------------