Document 165

How to change the space between the rows of a table

Version: 2.5, 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific Word

The program automatically creates space between the rows of tables in your documents, but you can change the distance between rows for a single table or for all tables in the document.

To change the distance between rows for a single table

  1. Place the insertion point immediately before the table.
  2. Insert a TeX field.
  3. In the TeX Field window, enter \renewcommand{\arraystretch}{x} where x is the factor by which you want to multiply the default distance between the rows. For example, the command \renewcommand{\arraystretch}{1.5} will increase the distance between the rows by 50%.
  4. Choose OK.
  5. Place the insertion point immediately after the table.
  6. Insert another TeX field.
  7. In the TeX Field window, enter \renewcommand{\arraystretch}{1} to return to the default.
  8. Choose OK.

NoteYou can apply the increased or decreased row spacing to several subsequent tables by placing the first TeX field before the first table in the series and placing the second TeX field after the last table in the series.

To change the distance between table rows for the entire document

  1. From the Typeset menu, choose Preamble.
    In earlier versions, from the File menu, choose Document Info and then choose the Preamble tab.
  2. In the entry area, enter \renewcommand{\arraystretch}{x} where x is the factor by which you want to multiply the default distance between the rows for all tables in the document.
  3. Choose OK.

Last revised 02/16/06

This document was created with Scientific WorkPlace.