Chapter 12. Mastering Tabs and Tables

WE LIVE IN A WORLD OF LISTS: the Top Ten this, the 100 greatest that, 12-step programs, 50 ways to leave your lover, etc. Tabs and tables are invaluable tools when it comes to working with anything list-like—from a simple bullet list to a complex financial table. In this chapter we’ll look first at tabs and some of their common uses, and then take a look at InDesign’s robust and versatile table formatting features.

Tabs are for positioning a piece of text in a specified place on the line. They are used to create bullet or numbered lists, reply forms, or for aligning numbers on a decimal point. Tabs can also be used to separate columns of information into a table-like layout. However, these days it’s usually easier to use an InDesign table to do this.

Tabs come in several flavors: left, center, right, and decimal or special-character tabs.

The Tabs Palette Cmd+Shift+T (Ctrl+Shift+T)

Figure 12.1. The Tabs Palette Cmd+Shift+T (Ctrl+Shift+T)

Setting Tabs

  1. Place your pointer where you want to add horizontal space and press the Tab key.

  2. Choose Type > Tabs. With your Type cursor in the text frame, click the magnet symbol at the bottom right of the Tab Ruler to snap the Tab Ruler above the text frame.

  3. On the Tab Ruler, choose the type of tab you want and click a location on the ruler to position the tab.

Note

You can set repeating tabs based on the distance between the tab and the left indent or the previous tab stop by choosing Repeat Tab in the Tabs Palette menu. You can also delete any existing tabs by choosing Clear All.

Types of Tabs. In each case the tab stop is set at 12 picas.

Figure 12.2. Types of Tabs. In each case the tab stop is set at 12 picas.

Creating Decimal Tabs

A decimal tab aligns characters on a decimal or another character you specify: Select a decimal tab on the Tab ruler, then, in the Align On box, type the character you want to align on—typically a decimal point, but you can use anything.

Align On. This example uses two decimal tabs, the first set to align on the $ symbol.

Figure 12.3. Align On. This example uses two decimal tabs, the first set to align on the $ symbol.

Using Tab Leaders

Tab leaders are used on menus, price lists, and contents pages. Their purpose is to guide the eye from one piece of text to the next. There are other solutions, arguably preferable, that don’t introduce gaping holes between the item and its page number or price, but so long as the distance between the text and the number isn’t too wide, this can be a good solution.

This menu uses a right tab with leader characters (a period followed by a space) to separate the menu item and its price.

Figure 12.4. This menu uses a right tab with leader characters (a period followed by a space) to separate the menu item and its price.

Reply Forms

If you’ve ever tried to create a form with the underscore character, you’ve doubtless found it’s impossible to have the lines perfectly aligned at the right column edge, giving you an ugly, stepped effect. This is because, unlike with typewriters, proportional-spaced fonts are not of a fixed width. With different characters on each line, the likelihood of your underscores ending at the same position is remote. The solution, or one of them, is to use a right tab with an underscore as the leader character.

Reply forms, tabsReply Form. The first two lines have a right tab set at the right margin with an underscore as the leader character. Line 3 (selected) has three tabs, each with an underscore as the leader character.

Figure 12.5. Reply Form. The first two lines have a right tab set at the right margin with an underscore as the leader character. Line 3 (selected) has three tabs, each with an underscore as the leader character.

Numbered Lists

When you have numbered lists that mix one-, two-, and possibly three-digit numbers you’ll need two tabs, combining the right alignment of the numbers and the left alignment of the text.

A numbered list before formatting (example A) and the same text using a right and a left tab (example B). Note that the periods after the numbers are redundant and have been removed. Using the Control palette or the PageMaker Toolbar to convert the text to a numbered list adds numbers before each paragraph, but does not add tabs or formatting. The numbers are static—that is, they do not update should you change the order of the text.

Figure 12.6. A numbered list before formatting (example A) and the same text using a right and a left tab (example B). Note that the periods after the numbers are redundant and have been removed. Using the Control palette or the PageMaker Toolbar to convert the text to a numbered list adds numbers before each paragraph, but does not add tabs or formatting. The numbers are static—that is, they do not update should you change the order of the text.

Right Indent Tab

A right-aligned tab allows you to align all subsequent text to the right edge of the text frame. You won’t find it in the Tabs palette, but under the Insert Special Character menu. Alternatively you can press Shift-Tab in the text. To use a Right Indent Tab with a tab leader (CS2 only), set a tab stop anywhere in the paragraph and apply a leader character to it. When you press Shift-Tab the leader character will appear.

A Right Indent Tab (Shift-Tab) is inserted before the attribution to align the author’s name to the right column edge.

Figure 12.7. A Right Indent Tab (Shift-Tab) is inserted before the attribution to align the author’s name to the right column edge.

Working with Tables

Working with tables in InDesign is so much more than just making financial spreadsheets readable, although if that’s what you need to accomplish InDesign is more than up to the task. Tables can be used in all sorts of creative ways beyond the obvious: crossword puzzles, reply coupons, television listings, calendars, and forms of all kinds. Just because you use a table to design all or part of your document doesn’t mean that document has to look like a table. In fact, tables are useful when you have content that needs to be updated yet remain in the same location on the page. The rows, columns, and cells that make up the structure of your table can be visible as such, or they can merely serve as an underlying grid to your design. Tables used to be a thorn in the side of the graphic designer, but InDesign offers such powerful and intuitive table formatting features that this is no longer the case.

Tables are always contained in a text frame and move with the flow of the text. To align the table within the text frame, insert the Type tool to the right or left of the table and click the appropriate alignment option on the Paragraph formats section of the Control Palette.

A table is edited with the Type tool. Formatting text within a table is the same as formatting text in a text frame. Paragraph and Character Styles, as well as local formatting, can be applied to the text.

Anatomy of a Table.

Figure 12.8. Anatomy of a Table.

Working with tables, you can add or delete rows and columns, cut or copy and paste selected cells, change the column and row height, split or merge cells, add header and footer rows, and much more.

When you create a table, it fills the width of your column. The default height of a row is determined by the leading of your text at the insertion point, but this can be easily changed.

The Table palette (Window > Type & Tables > Table).

Figure 12.9. The Table palette (Window > Type & Tables > Table).

The Control palette Table Formats. Just as with character and paragraph formatting, there is much overlap of formatting options between the Control palette and the Table palette.

Figure 12.10. The Control palette Table Formats. Just as with character and paragraph formatting, there is much overlap of formatting options between the Control palette and the Table palette.

Creating a Table

There are three approaches to creating a table: from scratch, converting existing text to a table, or importing a table from Microsoft Word or Excel.

From Scratch

  1. Draw a text frame with the Type Tool, or insert your type pointer into an existing text frame.

  2. Choose Table > Insert Table.

  3. Specify the numbers of rows and columns and click OK. Optionally, if the table will span more than one column or frame, specify the number of (repeating) header or footer rows.

Each table cell is like a text frame. You type or paste text, or place text into a table cell just as you would do with a text frame. You can also paste or place (File > Place) graphics into table cells.

Note

If you add a graphic that is larger than the cell, the cell height expands to accommodate the graphic, but the cell width remains fixed, causing the graphic to extend beyond the right side of the cell. If the row is set to a fixed height, a graphic that is taller than the row height causes the cell to be overset.

Converting Text to a Table

If you are going to convert text to a table, it pays to set up the text properly with tabs separating the columns and paragraph returns separating the rows. Once your tabs and carriage returns are in the right place, select your text and choose Table > Convert Text to Table.

It’s rare that you’d want to, but you can also make this conversion in reverse by inserting your Type Tool in a table and choosing Table > Convert Table to Text.

Tab Delimited Text.

Figure 12.11. Tab Delimited Text.

The same text converted to a Table (it looks worse than it is).

Figure 12.12. The same text converted to a Table (it looks worse than it is).

The cleaned-up table: Column Widths and Row Heights adjusted. Cell Inset Spacing reduced. Paragraph Styles Applied. Table Border, Row, and Column Strokes removed. Alternating Fills of 20 percent cyan applied.

Figure 12.13. The cleaned-up table: Column Widths and Row Heights adjusted. Cell Inset Spacing reduced. Paragraph Styles Applied. Table Border, Row, and Column Strokes removed. Alternating Fills of 20 percent cyan applied.

Importing a Table

There’s no point in reinventing the wheel: If you already have a table in a Microsoft Excel spreadsheet or in Microsoft Word, choose File > Place to import it into InDesign, either retaining the formatting (probably not a good idea) or stripping out the formatting—the information will appear as tabbed text—and then using InDesign’s Table tools to prettify it.

Table Import Options.

Figure 12.14. Table Import Options.

Selecting a Table

Selecting a whole table allows you to change the formatting of all the table’s cells. To do so, move your pointer to the upper left corner of the table—it becomes a southeast pointing arrow—and click. Alternatively, with your pointer inside the table, choose Table > Select > Table (Cmd+Option+A/Ctrl+Alt+A).

Breaking Tables Across Frames

Large tables can be a pain, but, thankfully, if the table is taller than the text frame in which it resides, you can thread the frame with another frame—in the same way as you would thread a regular text frame—to continue the table.

Keep Options determines how many rows should remain together. You can also specify where a row breaks, such as at the top of a column or frame.

If you want a header or footer row to repeat information in the new frame, choose Table > Headers and Footers.

If you didn’t set up a header or footer row first time around, you can easily convert an existing row to a header or footer row by choosing Table > Convert Rows > To Header or To Footer.

Tip: Tabs in Tables

When you’re working in a table, pressing Tab moves your cursor to the next cell. If you want to insert a tab in a cell, choose Type > Insert Special Character > Tab.

Header and Footer Options.

Figure 12.15. Header and Footer Options.

Adding Borders, Strokes, and Fills to a Table

In the Table Options dialog box, you can change the stroke of the table border and add alternating strokes and fills to columns and rows.

To enhance the readability of a complicated table with a wide measure, use alternating strokes and/or fills to help the eye to track along the table rows. Depending on the nature of your data, you may want to experiment with Alternating Patterns. You can apply your fills or strokes to every other row, every second row, every third row, or, using the First and Next menus, come up with a Custom Row pattern. The same is true with columns.

Note

Unless you choose Preserve Local Formatting, any formatting previously applied to individual table cells will be overridden by the row and column formatting.

Preserve Local Formatting. Note that the Fill Color and Tint are shown as blank when this option is checked.

Figure 12.16. Preserve Local Formatting. Note that the Fill Color and Tint are shown as blank when this option is checked.

Confusingly, row strokes are set on even when Alternating Pattern is set to None. To turn off row strokes, columns strokes, and the table border at the same time, select the whole table and then target the Stroke swatch on the Swatches palette or at the bottom of the Tool Palette, and then choose None.

To turn off just row strokes, choose Every Other Row as the Alternating Pattern, and then choose None as the color for the First and the Next row. If you want row strokes on, but want to change their weight and/or color, make sure you change both the First and the Next row. Likewise when working with column strokes: They are on even though Alternating Pattern is set to None. To change their stroke weight, choose a different alternating pattern and change the options for the First and the Next column stroke weights.

Tip:Tables and Text Wraps

Text wraps do not work in tables without first jumping through a few hoops. Let’s say you have a graphic and some text that you want to wrap around that graphic and you want to insert both items into a single table cell. Create your text frame and graphic outside the table, and then group them together (Cmd+G/Ctrl+G). Select the group, and copy and paste into the table cell—the relationship between the type and graphic is preserved.

Changing the weight of row strokes.

Figure 12.17. Changing the weight of row strokes.

ShortcutstablesTable Formatting Shortcuts

Figure 12.18. Table Formatting Shortcuts

Tables and Text Wrapping textWraps. This section of a film calendar shows a grouped text frame and graphic with text wrap pasted into a single table cell.

Figure 12.19. Tables and Text Wraps. This section of a film calendar shows a grouped text frame and graphic with text wrap pasted into a single table cell.

Using a table in a film poster is the best way to get a “double baseline” with the small credits. Without a table it would be necessary to position separate text frames next to the big credits, an approach that is cumbersome and difficult to edit.

Figure 12.20. Using a table in a film poster is the best way to get a “double baseline” with the small credits. Without a table it would be necessary to position separate text frames next to the big credits, an approach that is cumbersome and difficult to edit.

This table of contents page uses a clearly defined grid that is a good candidate for a table. Using a table in such a context can make it easier to edit the contents of individual cells in the publication’s next issue.

Figure 12.21. This table of contents page uses a clearly defined grid that is a good candidate for a table. Using a table in such a context can make it easier to edit the contents of individual cells in the publication’s next issue.

Working with Rows and Columns

To select a column or columns, move the pointer to the top edge of the table, and your pointer becomes an arrow shape. Click to select the entire column. To select a row, move your pointer to the left edge of the table and click to select the row. Alternatively, you can click inside a table and choose Table > Select > Column or Row.

To specifically select Header, Body, or Footer rows, click inside the table and choose Table > Select > Header Rows, Body Rows, or Footer Rows.

Inserting and Deleting Rows and Columns

You can insert rows and columns using the menu options, or, if you want to be flash, on the fly by dragging while holding down Option (Alt) as you drag a row or column border. In addition, you can also create a new row by pressing Tab when the insertion point is in the last cell of the table.

To delete all or selected parts of your table, choose Table > Delete > Row, Column, or Table.

To delete cell contents without deleting cells, select the cells containing the text you want to delete and press Backspace or Delete.

Note

When adding columns, if you drag more than one and one-half times the width of the column being dragged, new columns with the same width as the original column are added.

Inserting rows and columns, tablesInserting Rows and Columns

Figure 12.22. Inserting Rows and Columns

Resizing Rows and Columns

To resize rows and columns, drag the row or column border to change the row height or column width. To keep the table at the same size, hold Shift while you drag. This affects only two rows (or two columns) at once—one row or column gets bigger while the other gets smaller. To resize all the rows and columns proportionally, hold Shift while dragging the bottom table edge or the right table edge respectively.

To resize the whole table, position the pointer over the lower right corner of the table so that the pointer becomes an arrow, and then drag to increase or decrease the table size. To maintain the table’s height and width proportions, hold Shift. Note, this doesn’t work if your table spans more than one frame.

Changing Row Height

Choosing At Least specifies a minimum row height that will grow as you add text or increase the point size of the text you already have. If you copy or Place a graphic into the table cell, the row height will grow to accommodate the graphic. But the column width will not. With an overset graphic you can either choose to Clip Contents to Cell to crop the graphic to the table cell width or adjust the column width to fit the graphic.

Tip

Choosing Exactly from the Control palette or Table palette sets a fixed row height. Fixed row heights don’t grow when you add text, and a small red dot will appear in the lower right corner of the cell if it is overset. With an overset cell you have two options: Make the content smaller or the table cell bigger.

Distributing Rows or Columns Evenly

If you want your selected rows or columns to have a uniform height or width, choose Table > Distribute Rows Evenly or Distribute Columns Evenly.

Clip Contents to Cell.

Figure 12.23. Clip Contents to Cell.

Distribute Columns Evenly.

Figure 12.24. Distribute Columns Evenly.

Working with Table Cells

The building blocks of a table are cells, and each cell in your table is like an individual text frame. Using Cell Options, you can determine the Cell Inset Spacing, the Vertical Alignment, Row Strokes, Column Strokes, the First Baseline Options, and Diagonal Lines. Table text can be formatted in exactly the same way as text in a text frame, and paragraph and character styles are equally beneficial—see s 13 and 14. The only restriction on the formatting of tables is that text can be rotated only in increments of 90°, 180°, or 270°. (If you really must have text rotated at any other angle, format the text in its own frame, then cut and paste the text frame as an inline frame into a cell.)

Note

Selecting the Cell and the text within the cell are two distinct things. To select the cell, drag from the top left of the cell. Alternatively, because it’s all too easy to inadvertently resize the rows and columns when trying to select individual table cells, especially if your table is complex, put your Type cursor in the cells and choose Table > Select > Cell (Cmd+/ [Ctrl+/]).

Merging and Splitting Cells

You can merge two or more cells in the same row or column into a single cell. You can also split cells horizontally or vertically.

Tables Within Tables. This section of a film calendar shows a three-column single-row table that has been pasted into a merged cell above the two columns in the second row. A similar effect may have been possible by Splitting Cells vertically (not the same as Unmerging, which will restore the cells to their premerged state), but does not allow the same degree of independence when adjusting the column widths of the individual rows.

Figure 12.25. Tables Within Tables. This section of a film calendar shows a three-column single-row table that has been pasted into a merged cell above the two columns in the second row. A similar effect may have been possible by Splitting Cells vertically (not the same as Unmerging, which will restore the cells to their premerged state), but does not allow the same degree of independence when adjusting the column widths of the individual rows.

Adding Diagonal Lines to a Cell

Choose Table > Cell Options > Diagonal Lines. From the Draw menu, you can specify Diagonal in Front or Content in Front to position the diagonal line in front of or behind the cell contents.

For Line Stroke, specify desired weight, type, color, and gap settings; specify a Tint percentage and Overprint options, and then click OK.

Diagonal Lines.

Figure 12.26. Diagonal Lines.

Working with Table Cells

Just like a regular text or picture frame, each table cell has fill and stroke properties. Choose the cell (Cmd+/[Ctrl+/]), or drag your pointer across a range of cells to select multiples, and use the Fill and Stroke boxes on the bottom of the Tool palette to change the properties of a cell. To modify specific sides of the cell border, determine which stroke line(s) you are affecting with the Preview Proxy at the bottom of the Stroke palette. Selected lines appear in blue; deselected lines in gray. To deselect all lines, triple click the Preview Proxy. Alternatively, you can use the Cell Options dialog box, which has all these options in one place.

Cell Options: Your one-stop shop for table cell formatting.

Figure 12.27. Cell Options: Your one-stop shop for table cell formatting.

Tables are extremely versatile and can be used for much more than just “tables.” For example, putting a screen behind a single paragraph is a common request that is easy in Word, but has long proved problematic for the more heavyweight layout applications. Until now, that is. With InDesign the solution is simple.

A shaded paragraph.

Figure 12.28. A shaded paragraph.

Like all tables, the single cell table will move with the flow of text. What’s more, the table cell—and it’s shading—will expand and contract as necessary if you edit the paragraph.

Tip: Shading a Paragraph

If you want to put a screened background behind a specific paragraph, a table is an elegant solution. Select the text in the paragraph—but not the final hidden carriage-return character—and choose Table > Convert Text To Table to make a one-cell table. You can then stroke and/or fill the table as you wish and—because it’s a table—it will grow as you add type and move as part of the text flow. You control the paragraph spacing between the table and the paragraphs above and below using Table Options >Table Setup.

Up Next

See how you can let InDesign take the strain with its super array of Styles. Veterans of page layout programs will find paragraph and character styles as they would expect, but in addition, InDesign offers such delights as nested styles, sequential styles, and object styles—features that can make formatting even the longest, most complicated documents a joy.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.7.179