Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!munnari.oz.au!diemen!tasman!tas From: tas@tasman.cc.utas.edu.au (Tasman Derk Van Ommen) Newsgroups: comp.text.tex Subject: Difficulties with columns of numbers Message-ID: Date: 28 Nov 90 05:06:10 GMT Sender: news@diemen.utas.edu.au Distribution: comp Lines: 45 Can ANYONE help me align columns of numbers.... I have two related but different problems: 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..... 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.... My only solutions so far (with much searching of Lamport's Book) are: Problem 1. Use right aligned tabbing column Enclose the heading as follows {\hfill The Heading \hfill} Put an empirical \makebox[numex]{} after EVERY number to push them back under the centre of the column. Problem 2. Take those numbers like the 0.75 above and hide the extra decimal place as follows 0.7\makebox[0pt][l]{5} hoping all the while that the 5 doesn't run into the next column too badly. These are NASTY, clumsy to implement solutions to what should be a simple problem. How should I be doing this? Tas van Ommen P.S. This is reasonably urgent. Mail me or post answers, I'm not fussy! ======================================================================== email: tas@physvax.phys.utas.edu.au