Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!agate!ucbvax!SHSU.BITNET!bed_gdg From: bed_gdg@SHSU.BITNET ("George D. Greenwade") Newsgroups: comp.text.tex Subject: RE: Decimal alignment in LaTeX tables Message-ID: <00947C02.4DA7D2C0.8528@SHSU.BITNET> Date: 27 Apr 91 15:23:08 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 35 On Sat, 27 Apr 91 09:38:39 CST, Charles H. Franklin asks: > For some considerable time I've been looking for a style that allows > columns of a LaTeX table to be aligned on the decimal point, rather than > left, right, or center. The need arises all the time in my work where it > is conventional to present parameter estimates as follows >... > So, Once More, I ask if anyone has or knows of a style file which modifies > the ctabular environment to allow for decimal alignment in addition to the > l,r,c alignments which are native to LaTeX. There is a file, decalign.sty, which does precisely this by defining d (in addition to tabular's l,c,r,p) for decimal aligned columns. It does this by creating two column, with the "." acting as the "&" in this environment. Note that this means {tabular}{lcd} is *really* a 4-column tabular if you're going to use multicolumn ("d" resolves to r.l and works pretty good). The style file and its readme file are available from FILESERV as STY.DECALIGN and STY.DECALIGN_README (time to be embarrassed; I put them up, got them in our TEX$INPUTS, but forgot to include them in the description listing -- sorry). To retrieve both files, include the wildcard request: SENDME STY.DECALIGN* in the body of a mail message to FILESERV@SHSU.BITNET. If you just want one of the files, use SENDME STY.filename (replacing filename with the specific file you want, naturally). Regards and hope this helps, George %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% George D. Greenwade, Ph.D. Bitnet: BED_GDG@SHSU Department of Economics and Business Analysis THEnet: SHSU::BED_GDG P. O. Box 2118 Voice: (409) 294-1266 Sam Houston State University FAX: (409) 294-3612 Huntsville, TX 77341 Internet: bed_gdg%shsu.decnet@relay.the.net %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%