[texhax] Numbers in Table

Leonardo Giantini Trabuco ltrabuco at cecm.usp.br
Thu Apr 15 02:15:57 CEST 2004

On Thu, Apr 15, 2004 at 12:59:34AM +0200, Philip G. Ratcliffe wrote:
> >     I have a LaTeX document that has several large tables. These
> > tables are
> > defined using the longtable command. Most of the tables consists
> > of 6 and 7
> > digit numbers. Since there are no commas in the numbers, it is
> > hard to read.
> > I know I could manual enter the commas but that would be a big
> > job. Is there
> > anyway I can get LaTeX to automatically insert the commas?
> Not that I know of.  However, a decent editor with "regular expression"
> search and substitution capabilities should render the job rather less
> daunting.

In particular, you can use vim in order to insert a column of commas.
Just select a block with Ctrl-C, then insert the comma with I (Insert)
and, magically, when you hit ESC, commas will appear all over the

Leonardo Giantini Trabuco 
Molecular Sciences Course, University of São Paulo, and Center for 
Structural Molecular Biology, Brazilian Synchrotron Light Laboratory.
<http://www.cecm.usp.br/~ltrabuco>               <http://www.lnls.br>

More information about the texhax mailing list