Display the Diagonal Lines panel of the Cell Options dialog box choose Diagonal Lines from the Cell Options submenu of the Context menu.. Select a cell, then choose Diagonal Lines from
Trang 13 Choose a color swatch from the Color pop-up menu, and enter
a tint value in the Tint field, if necessary Note that you can also set the fill to overprint using the Overprint option
4 Click the OK button to close the dialog box and apply the fill
Alternatively, you can apply a fill to a cell using the Swatches panel or Color panel (see Figure 6-33)
1 Select a cell or range of cells
2 Click the Fill selector at the top of the Swatches panel or Color panel to make it active (if it’s not already active)
3 Click the swatch (if you’re using the Swatches panel) or color (if you’re using the Color panel) to apply it to the cell
Applying Gradients to Table Cells You can apply a gradient to the
fill and stroke of a cell, but the results might not be what you’d expect (see Figure 6-34)
1 Select the cells
Figure 6-31 Applying a Stroke to
Selected Cell Borders
In this example, we want to
remove the strokes around
the outside edges (top, left,
and right) of the first row in
the table, but we don’t want
to remove the stroke at the
bottom of the row To do
this, we use the Cell Proxy
in the Stroke panel.
When you click a border in
the Cell Proxy, it changes
from blue to gray (which
is hard to represent in this
In this example, we have turned off the bottom border.
The top, left, and right
borders of the first row have
been set to zero point strokes,
but the bottom border of
the row retains its original
stroke weight.
Trang 2Figure 6-32 Applying a Fill to a Cell
(Dialog Box Method)
Select a cell or series of cells.
Choose Strokes and Fills from the Cell Options submenu of the Context or Table menu InDesign displays the Strokes and fills panel of the Cell Options dialog box.
Specify fill options
in the Strokes and Fills panel of the Cell Options dialog box.
InDesign applies the fill to
the selected cells.
Figure 6-33 Applying a Fill to a Cell
(Panel Method)
Click the Fill selector at the top
of the Swatches panel (if it’s not already active).
Select a cell or a range of cells.
Click a swatch.
InDesign applies the fill to the selected cells.
Trang 3Figure 6-34 Applying a
Display the Gradient panel
and click the Gradient Ramp
to apply a gradient fill
InDesign positions the start
and end of the gradient (in
this example, the center
point of a radial gradient)
based on the width and
height of the entire table—
not the width of the cell itself.
Center point of a radial gradient
applied to the cell.
2 Display the Gradient panel, if it’s not already visible
3 Click in the Gradient Ramp to apply a gradient to the selected cells Adjust the gradient settings to define the type, color, and angle of the gradient (as discussed in Chapter 5, “Drawing”)
Note that the gradient is based on the width and height of the table, rather than on the selected cell or cells This may or may not give you the effect you’re looking for To gain more control over the start/end points of the gradient, create and fill a rectangle, then paste the rectangle into the cell
Applying Diagonal Lines To apply diagonal lines to a cell, use the
options in the Diagonal Lines panel of the Cell Options dialog box (see Figure 6-35)
1 Select a cell, row, column, or table (table border strokes apply to the entire table, so you need only select part of the table)
2 Display the Diagonal Lines panel of the Cell Options dialog box (choose Diagonal Lines from the Cell Options submenu of the Context menu)
3 Turn on one of the diagonal lines options Choose a stroke weight, stroke type, color, and tint If you want the diagonal lines to overprint, turn on the Overprint option If you want the diagonal lines to appear in front of the table, turn on the Draw
in Front option
Trang 44 Click the OK button to apply the diagonal lines.
Formatting Table Borders To apply a stroke to the edges of a table,
use the options in the Table Border section of the Table Setup panel
of the Table Options dialog box (see Figure 6-36) Note that ing a border to a table is the same as applying borders to the outside edges of each of cells on each side of the table—but it’s a lot faster
apply-1 Select a cell, row, column, or table (table border strokes apply to the entire table, so you need only select part of the table)
2 Display the Table Setup panel of the Table Options dialog box (press Command-Option-Shift-B/Ctrl-Alt-Shift-B)
3 Choose a stroke weight, stroke type, color, and tint If you want the stroke to overprint, turn on the Overprint option
Figure 6-35 Applying Diagonal Lines to a Cell
InDesign displays the Diagonal Lines panel of the Cell Options dialog box.
Select a cell, then choose
Diagonal Lines from the
Cell Options submenu of the
Context or Table menu.
Use the controls to specify the formatting of the diagonal lines.
InDesign applies the diagonal lines to the cell.
In this example table,
a diagonal line in a cell
indicates that the seats in
that section are no longer
available TimeTravel Tickets
has run out of box seats
for the November 25, 1882,
premiere of “Iolanthe,” so we
have to apply diagonal lines
to the corresponding cell.
Trang 5Figure 6-36 Applying Strokes to
Table Borders
Select a cell, row, column, or the entire
table (as we have in this example), then
Press
Command-Shift-Option-B/Ctrl-Shift-Alt-B to display the Table Setup
panel of the Table Options dialog box.
Specify the stroke weight, color, and tint you want to apply to the table borders Click the OK button to apply your changes.
InDesign applies the stroke
to the outside borders of
the cells at the outside (left,
right, top, or bottom)
overrid-Applying Alternating Fills and Strokes The options in the Row
Strokes, Column Strokes, and Fills panels of the Table Options dialog box provide a way for you to vary the formatting of rows and columns in a table according to a predefined pattern Shading table rows or columns is often a more visually pleasing way to format a table than using strokes (this depends on the design of the piece in which the table appears)
Trang 6All of these panels work the same way—you select a pattern from the Alternating Pattern pop-up menu, and then you specify the for-matting applied by that pattern If the pattern you chosee is None, InDesign doesn’t alternate the corresponding fill or stroke properties
in the table Otherwise, InDesign applies one of two formats to the rows and columns in the table Formatting you apply using alter-nating fills or strokes overrides any cell formatting you’ve already applied to the cells in the table (it has no effect on text formatting)
To apply an alternating fill or stroke pattern to a table, follow these steps (see Figure 6-37)
1 Select a cell, row, column, or table (this formatting applies to the entire table, so do whatever is easiest for you)
2 Display the panel of the Table Options dialog box that sponds to the attribute you want to work with (i.e., Row Strokes, Column Strokes, or Fills) Turn on the Preview option—it can help you understand the effect of the formatting options
corre-Figure 6-37 Applying Alternating Fills
Select a cell, row, column,
or table, then choose Alternating Fills from the
Table Options submenu of
the Context or Table menu.
Select a pattern from the
Alternating Pattern pop-up
menu, then specify the formatting you want to
apply.
Note that we’ve directed our
alternating pattern to skip
the first two rows in the table
(to avoid the table header
row and title).
InDesign applies the alternating fill pattern to
the rows in the table.
Trang 73 Choose an option from the Alternating Pattern pop-up menu.
4 Choose a color for the alternating pattern (until you do this, you probably won’t see any changes to the table, even if you have turned on the Preview option)
5 If you want the alternating pattern to ignore rows at the ning or end of the table (for alternating row strokes) or at the left
begin-or right edges of the column (if you’re wbegin-orking with alternating column strokes), enter the number of cells in the Skip First and Skip Last fields
It should be clear you can create quite complex alternating matting using these options The only real way to learn how the dif-ferent alternating formatting features work is to experiment with the settings Create an example table, open the Table Options dialog box, turn on the Preview option, and play!
for-Table and Cell Styles
The problem with formatting tables is that it just takes far too long, especially when you have a bunch of tables in a document That’s where table styles come in handy! Table styles—like their cousins paragraph styles and object styles—are a way to collect a bunch of formatting together and give it a single name InDesign offers both table styles (for table-wide formatting) and cell styles (for formatting that affects a single cell)
The Basic Table Style Every new document comes with one table
style called Basic The problem is that if you redefine Basic and use it
in your document, and then later copy one of these ables and paste
it into a different document, your table will change in appearance Because of that, we recommend you create your own styles instead
of using Basic
While it’s tempting to jump in and discuss table styles, it’s typically better to define your cell styles first because you’ll use them in your table style definition To define a new cell style, follow these steps (see Figure 6-38):
1 Choose New Cell Style from the Cell Style panel menu or Option/Alt-click on the New Cell Style button in the panel
Defining Cell Styles
Trang 82 In the General pane of the New Cell Style dialog box, give the style a name and—if you want—a keyboard shortcut (Shortcuts have to be based on the keys on a numeric keypad.) If you’ve already created a cell style, you can base your new one on it so that it takes on all the same formatting.
The coolest feature in the General pane is the Paragraph Style pop-up menu If you choose a paragraph style here, it will auto-matically apply to any text inside the cell
3 The next three panes—Text, Strokes and Fills, and Diagonal Lines—are virtually identical to same-named panes in the Cell Options dialog box, so there’s no reason to repeat ourselves For more information, see those sections earlier in this chapter
Figure 6-38 Defining Cell Styles
Hold down Option/Alt and click the New Cell Style button
to force the New Cell Style dialog box to open.
Work your way through
the panels in the Cell Style
Options dialog box to define
a new cell style.
To apply a cell style, place
the cursor in the cell and
click in the Cell Styles panel.
Click the OK button to close the dialog box, and InDesign adds a new cell style.
Just as in a Character style, blank fields are ignored when the cell style is applied.
Trang 9The important thing to note about these panes, however, is that—like character styles—all the controls are blank until you set them A blank field or pop-up menu (or a dash in a checkbox) means “ignore this formatting” so it won’t be applied when the cell is styled For example, if you leave the Cell Fill Color pop-up menu blank, then your cell style will not override the cell fill color already applied to the cell in the table.
If your cursor is currently inside a formatted cell when you create
a new cell style, the current formatting appears in the New Cell Style dialog box automatically That’s often the fastest way to define a cell style However, InDesign won’t apply the cell style for you after you click OK—you still have to do that with a click in the Cell Styles panel
Once you’ve defined the cell styles you need, it’s time to build your table style To define a table style, follow these steps (see Figure 6-39):
1 Choose New Table Style from the Table Style panel menu or Option/Alt-click on the New Cell Style button in the panel
2 In the General pane of the New Table Style dialog box, give the style a name and—if you want—a keyboard shortcut based on the numeric keypad keys If you want to base the table style on another table style, choose it from the Based On dialog box We recommend not basing new styles on the Basic Table style, as it makes it too easy for tables to get messed up when copying them
to a new document
You can have InDesign automatically apply cell styles to areas
of your table by choosing from the Cell Styles pop-up menus
For example, if you have created a cell style to describe the look
of all the cells in your table (not including a header row), choose that style from the Body Rows pop-up menu You can specify different cell styles for Body Rows, Header Rows, Footer Rows, and the cells in the Left Column and Right Column
Remember that each of these cell styles can apply its own paragraph style to the text inside those cells, too That’s how you apply paragraph styles throughout a table by using a table style
3 The next four panes of the New Table Style dialog box—Table Setup, Row Strokes, Column Strokes, and Fills—are nearly iden-tical to the similarly-named panes in the Table Options dialog box, so go read about those earlier in the chapter
However, some features are conspiculously absent in the table style definition, notably anything that has to do with the
Defining Table Styles
Trang 10Figure 6-39 Defining a Table Style
Hold down Option/Alt and click the New Table Style button in the Table Styles panel.
Apply cell styles here
Here we’ve turned off the table border.
The original
unformatted table.
After applying the table
style, the paragraphs are
formatted and the rows
have alternating tints.
After we convert the first row
to a header row, InDesign
automatically applies the
header cell style to it.
structure of the table: Table Dimensions, Headers, and Footers Table styles cannot control these aspects of a table That can be quite frustrating at times For example, if you import an Excel
or Word table and apply a table style to it, there’s no way for the style to tell the table that the first row should be a header row Instead, you have to manually use Convert Rows to Header That can get tiresome with a lot of tables
Trang 114 When you’re done specifying the look at feel of the table, click
OK InDesign won’t apply the style to a currently selected table; you have to click on the style name in the panel
Applying Table and Cell Styles As mentioned above, you can apply a
table or cell style by—gasp!—placing the cursor in the table or cell (or selecting more than one cell) and clicking on the style name in the Table Styles or Cell Styles panel Unfortunately, we don’t see any way
to apply a table style when placing a Word or Excel document
You can also apply a table style to a table when you first create it with the Insert Table or Convert Text to Table features (both dialogs sport a Table style pop-up menu from which to choose a style)
Redefining Styles You can change the definition of your table or
cell styles at any time by selecting the style in the panel and ing Style Options from the panel menu (or, better, from the Con-text menu) You can also change the formatting on your document page, then select the table or cell and choose Redefine Style from the Table Styles or Cell Styles panel menu When you change a table
choos-or cell style definition, the new fchoos-ormatting is immediately reflected throughout your document
Clearing Overrides Just because you’ve applied a table or cell style
doesn’t mean you can’t override that with further local formatting When you do apply local formatting on top of a cell or table, you’ll see the familiar plus (+) sign next to the style name, indicating there’s additional formatting here You can see what that formatting is by hovering the cursor over the style name
To remove the local formatting, you can Option/Alt click on the style name in the Table Styles or Cell Styles panel If you want to remove both local formatting applied to a table as well as any cell styles that were applied, Option-Shift/Alt-Shift-click on a table style.Another way to remove styles is to choose Clear Overrides from the Table Styles or Cell Styles panel menu (or click the Clear Over-rides button at the bottom of the panel)—this is the same as Option/Alt-clicking When it comes to cell styles, you have a final option in the panel menu (and panel button): Clear Attributes Not Defined by Style The difference is subtle: Clear Overrides only removes the local formatting that overrides the cell style definition Clear Attributes Not Defined by Style will clear all local formatting, even if it had nothing to do with the cell style’s definition
Trang 12If you want to remove the cell style entirely, select the cell (or cells) and click [None] in the Cell Styles panel.
Sorting Styles If you don’t like the order in which styles appear in
the Table Styles or Cell Styles panel, you can rearrange them in two ways: You can choose Sort by Name from the panel menu or you can drag each style up or down to the position you want it
Loading Styles You can copy the cell styles or table styles from
another InDesign document by choosing Load Table Styles or Load Table and Cell Styles from the Table Styles or Cell Styles panel menu When you do this, InDesign asks which styles you want, and—if some of the incoming styles have the same names as styles in your current document, what you want to do about it (see Figure 6-40)
Figure 6-40 Loading Table Styles
Style Groups You can group your table and cell styles together into
groups (or folders, or sets, or whatever you want to call them) using the same techniques as grouping in the Paragraph Styles panel or elsewhere First, make a style group by clicking the New Style Group button at the bottom of the Table Styles or Cell Styles panel, then drag your styles into the group Alternately, you can select one or more styles and choose New Group from Styles from the panel menu
If you want the same-named style in more than one group, select that style and choose Copy to Group from the panel menu
Text Wrap
Any independent object in an InDesign publication can have a text wrap—a boundary that repels text—applied to it Wrapping text around an object is something like the opposite of flowing text inside
a text frame When you flow text inside a frame, you want text to stay
Trang 13inside a path; when you apply a text wrap, you want to keep it out To set the text wrap for an object, follow these steps (see Figure 6-41).
1 Select an object—any frame or group—on an InDesign page
2 Display the Text Wrap panel, if it’s not already visible (press Command-Option-W/Ctrl-Alt-W)
3 Click one of the Text Wrap buttons in the Text Wrap panel
InDesign displays the text wrap boundary around the selected object, and pushes any text falling inside the text wrap boundary
to the outside of the boundary If you applied the text wrap to a text frame, the text in that frame is unaffected by the text wrap boundary
4 Set the text wrap offset distances using the Top, Left, Bottom, and Right fields in the Text Wrap panel If you want the text wrap to be the same on all four sides, make sure the Link icon is enabled in the middle of the panel However, if you’ve selected anything other than a rectangular frame, you’ll only be able to adjust a single field (the Left field) to set the offset distance
Note that when it comes to inline or anchored objects (objects that are anchored to a position in a text story), text wrap doesn’t always play by the same rules We cover that in more detail in “Inline Frames and Anchored Objects,” later in this chapter
When you choose the Wrap Around Object text wrap type, and have an imported graphic selected, InDesign adds a new section to the bottom of the Text Wrap panel (if you don’t see it, choose Show Options from the Text wrap panel menu) You can create the text wrap contour from paths or an alpha channel stored in a graphic,
or detect the edges of objects in an image (see Figure 6-42) It’s very similar to the clipping path options
As we pointed out in the “Composition Preferences” section of ter 1, “Workspace,” many people aren’t used to the fact that applying
Chap-text wrap to an object affects the Chap-text below and above that object in
the stacking order Fortunately, you can make individual text frames immune to text wrap: Select the frame, choose Text Frame Options from the Object menu (or press Command/Ctrl-B) and turn on the Ignore Text Wrap checkbox
InDesign can apply an inverted text wrap to an object, which causes text to wrap to the inside of the text wrap (see Figure 6-43) We find
Contour Options
Ignoring Text Wrap
Inverted Text Wrap
Trang 14To wrap text around an
object, select the object and
then click one of the text
wrap options in the Text
Wrap panel (we’ve listed
the “official” name of the
text wrap type below each
example).
No Text Wrap
Wrap Around Object Shape
Wrap Around Bounding Box
Jump Object
Jump to Next Column
When you choose one of
the rectangular text wrap
options (Wrap Around
Bounding Box, Jump Object,
or Jump to Next Column),
you can adjust the offset
values for the top, right, left,
and bottom independently
If you choose Wrap Around
Object Shape, you can only
enter a single offset value
that applies to all sides of
the text wrap.
…and InDesign changes the offset for the corresponding side.
Enter a value in one of the offset fields…
The Jump Object text wrap option causes text in any column touching the text wrap boundary to jump over the text wrap—it’s as if the wrap extends to the width of the column The Jump to Next Column text wrap option pushes any text in the column below the top of the text wrap bound- ary to the top of the next column.
Figure 6-41 Text Wrap
Trang 15Figure 6-42 Contour Text Wrap Options
This image includes a path
saved in Photoshop.
When you first apply a
contour text wrap, InDesign
bases the text wrap on the
image bounding box.
If you don’t see the bottom
half of the panel, choose
More Options from the
panel menu.
To base the text wrap contour on the saved path, choose Photoshop Path from the Type pop-up
menu…
…and then choose the path name from the Path pop-up menu
InDesign sets the text wrap contour
to the shape of the path.
this very helpful when well, actually, almost never But it’s nice to have options
The text wrap boundary is a path, and can be edited and adjusted just
as you’d change the shape of any path in InDesign (see Figure 6-44) You can draw new line segments using the Pen tool, or change the location of path points using the Direct Selection tool
Editing a Text Wrap
Regular Text Wrap Inverted Text Wrap
Figure 6-43 Inverted Text Wrap