Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!yale!quasi-eli!cs.yale.edu!newsbase!duchier From: duchier@cs.yale.edu (Denys Duchier) Newsgroups: comp.text.tex Subject: Re: Difficulties with columns of numbers Message-ID: Date: 28 Nov 90 15:50:10 GMT References: Sender: news@cs.yale.edu Reply-To: duchier-denys@cs.yale.edu Distribution: comp Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 35 Nntp-Posting-Host: albania.ai.cs.yale.edu In-reply-to: tas@tasman.cc.utas.edu.au's message of 28 Nov 90 05:06:10 GMT In article tas@tasman.cc.utas.edu.au (Tasman Derk Van Ommen) writes: > 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{center} \begin{tabular}{c} The Heading\\ \begin{tabular}{r} 27\\113\\1251\\4 \end{tabular} \end{tabular} \end{center} > 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{center} \begin{tabular}{r@{.}l} 10&7\\1&3\\0&75 \end{tabular} \end{center} --Denys