Information Technology Topic

Columns and Tables in Documents

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. Columns flow text down one column and then the next, like a newsletter, and a table lays information out in rows and columns, like a price list or invoice
  2. Plan a table before building it by picturing the result and counting the rows and columns, because changing a fully formatted table is more work
  3. Use a table or columns instead of tabs to line things up, use a column break to push text to the next column, and use sections for different column counts on one page

Section 1Columns, tables or plain text?

Most of a document is plain text that runs from margin to margin. Sometimes the layout needs more help. Columns suit text that flows, such as a school newsletter, where short lines are easier to read. Tables suit information that belongs in rows and columns, such as a price list or a list of names with other details. Here's the trick: ask 'does the reader read this straight through, or look things up across a row?' Straight through suggests columns. Look-up suggests a table.

Section 2Setting up columns on a page

A page can be set to one or more columns. You can choose a gap between the columns and, if you like, a vertical line between them. Columns can have equal widths or custom widths. The text fills the first column from top to bottom, then carries on at the top of the second column, and so on. Widths follow simple sums. Suppose the text width (the page width minus the left and right margins) is 16 cm. This is just a figure to practise with, not a rule. A page has 3 equal columns with a gap of 0.5 cm. There are 2 gaps, so the columns share 16 - 2 x 0.5 = 15 cm, and each column is 15 / 3 = 5 cm wide.

Section 3Column breaks and sections

A column break forces the text after it to the top of the next column. It is useful when an article should start at the top of a column instead of in the middle. Suppose 40 lines of text flow into two columns that each hold 30 lines. Without a break, column 1 has 30 lines and column 2 has 10. With a column break after line 12, column 1 has 12 lines and column 2 starts with line 13 and holds the other 28. Easy to mix up: you cannot just give one half of a page a different number of columns. Different numbers of columns on the same page need sections, which are separate layout areas. A one-column heading above a two-column article is a typical use.

Section 4What tables are for

Tables organise information in rows and columns. Common uses are reports, price lists, invoices and lists of names with other details. A well-designed table helps readers understand the information. A row runs across and a column runs down. Each box where a row meets a column is a cell. A table with R rows and C columns has R x C cells. A table with 9 rows and 3 columns has 27 cells. The first row often holds the headings, such as Item, Size and Price, and the rows below hold the data.

Section 5Plan the table first

Before creating a table, picture the result and estimate how many rows and columns you need. Rows and columns can be changed later, but changing a table that is already fully formatted is more work. For a tuck-shop list with 8 items and the columns Item, Size and Price, you need 1 heading row plus 8 data rows, which is 9 rows and 3 columns. That is 27 cells in all, of which 24 are data cells. Adding one column later turns a 9 by 3 table into 9 by 4, which has 36 cells. Adding 2 rows to the original gives 11 by 3, which has 33 cells.

Section 6Creating a table and its heading row

To create a table, choose the number of rows and columns. By default the new table spans the width of the text and its columns are equal. On a 16 cm text width, a table with 4 columns has columns 16 / 4 = 4 cm wide. A table can be given a heading row, and the heading row can be repeated at the top of each new page when the table runs over several pages. That way a reader on page 3 still sees what each column means. Watch out: the repeat is a setting you choose. A table that is set up without it shows the headings on the first page only.

Section 7Why not tabs?

Tabs can line up short pieces of text in a row, but using tabs to space out material is not recommended. A table is usually a better choice. If you line up a price list with tabs, one long item name can run past its tab stop so the price jumps to the next stop and the row is out of place. The lines are also hard to adjust together. In a table each item stays in its own cell, and the cells can be widened or narrowed. So the rule is: columns for flowing text, tables for information in rows and columns, and tabs only for small jobs.

Examples

A school in Montego Bay lays out a newsletter page with a text width of 16 cm. The page uses 3 equal columns with a gap of 0.5 cm between neighbouring columns. An article has 70 lines, and each column holds 25 lines. (a) Calculate the width of each column. (b) State how many lines go in each column. (c) Identify how the editor could make the sports article start at the top of column 2.

(a) There are 3 columns, so there are 2 gaps. The gaps take 2 x 0.5 = 1 cm, leaving 16 - 1 = 15 cm for the columns. Each column is 15 / 3 = 5 cm wide. Check: 3 x 5 + 2 x 0.5 = 16 cm. (b) Text fills column 1 first. Column 1 takes 25 lines, column 2 takes 25 lines, and the last 70 - 50 = 20 lines go in column 3. (c) Put the cursor at the start of the sports article and insert a column break. This forces the text after it to the top of the next column.

A tuck shop in Mandeville keeps its price list in a table with 4 columns: Code, Item, Size and Price. There is 1 heading row and 50 items. The text width is 16 cm and the columns are equal. In this layout a page holds 21 table rows, and the heading row is set to repeat at the top of each page. (a) Calculate how many rows and how many cells the table has. (b) Calculate the width of each column. (c) Calculate how many pages the table needs and how many rows are on the last page. (d) Explain why a table is better than tabs here.

(a) Rows: 1 heading row + 50 items = 51 rows. Cells: 51 x 4 = 204 cells, of which 50 x 4 = 200 are data cells. (b) A new table spans the text width with equal columns, so each column is 16 / 4 = 4 cm wide. (c) Each page holds 21 rows, but 1 of them is the repeated heading row, so each page shows 20 data rows. 50 items need 20 + 20 + 10, which is 3 pages. The last page holds 10 data rows plus the heading row, which is 11 rows. (d) A table keeps each item, size and price in its own cell, so rows stay lined up and the widths can be adjusted. With tabs, one long item name could push a row out of place, and the repeating heading row would not be available.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from

  • CSEC Information Technology Syllabus (CXC 30/G/SYLL 08, revised 2000, 2008, 2013) · Caribbean Examinations Council (CXC) · Section 6, Specific Objective 7 · Syllabus scope
  • Writer Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 6, Using columns to define the page layout, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/WG7.6/WG76-WriterGuide.pdf), page 133 · Facts
  • Writer Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 5, Inserting column and line breaks, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/WG7.6/WG76-WriterGuide.pdf), page 124 · Facts
  • Writer Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 13, Introduction and Creating a table, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/WG7.6/WG76-WriterGuide.pdf), pages 295-298 · Facts
  • Writer Guide 7.6 (LibreOffice 7.6 Community) · The Document Foundation (LibreOffice Documentation Team) · Chapter 4, Setting tab stops and indents, checked against (https://documentation.libreoffice.org/assets/Uploads/Documentation/en/WG7.6/WG76-WriterGuide.pdf), page 95 · Facts