Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!ucbvax!agate!shelby!neon!golding From: golding@Neon.Stanford.EDU (Andy Golding) Newsgroups: comp.text.tex Subject: Re: TABLES-- Alligning the decimal points. Message-ID: <1991Jan26.221417.24115@Neon.Stanford.EDU> Date: 26 Jan 91 22:14:17 GMT References: <1991Jan25.114530.2289@vax5.cit.cornell.edu> Distribution: comp Organization: Computer Science Department, Stanford University Lines: 17 nqdy@vax5.cit.cornell.edu writes: > I am using LaTeX for making tables. I would like to allign >the numbers in a column so that the decimal points are alligned >rather than the number being left/right/center alligned. This is not the most elegant solution in the world, but one thing to do is use a `tabular' environment, and include 2 fields for each number. The first field is for the integer portion of the number and is right-aligned, the second field is for the fractional portion of the number and is left-aligned. To avoid having space between the integer and fraction, in your column specification at the top of the environment, say `r@{}l'. Then you specify a number like 17.25 as `17&.25'. Andy