Академический Документы
Профессиональный Документы
Культура Документы
GFBUVSFTPWFSIPVSTPG
WJEFPIPTUFECZ%FLF.D$MFMMBOE
4-
3VaTW
;`6We[Y`5E$
ONE
ON
ONE 4-
%&,&.$$-&--"/%
This excerpt is protected by copyright law. It is your
responsibility to obtain permissions necessary for any
proposed use of this material. Please direct your
inquiries to permissions@oreilly.com.
LESSO N
8
U SING STYLE SHEE T S
311
A BOU T T HIS L E S S ON
Project Files
312
Assembling a Custom Style
Style sheets for text break into three camps. Paragraph styles affect
entire paragraphs at a time, character styles affect individual letters
or words, and object styles affect entire frames. And here, as luck
would have it, Adobe and the countless designers who rely on its
graphics and publishing software use the same terms.
The most common of the bunch, the paragraph style,
Paragraph style 1: Bernhard Modern, 12.5 ⁄16, flush left
may contain all formatting attributes, from font to
alignment to tabs. Figure 8-1 shows four paragraph Out, out brief candle! Life’s but a walking
styles applied to a passage from the ever-cheerful Mac- shadow, a poor player, that struts and frets
beth. In each case, the style sheet changes both the his hour upon the stage, and then is heard
character- and paragraph-level attributes, making it
no more; it is a tale told by an idiot, full of
useful for formatting all kinds of text, from body copy
sound and fury, signifying nothing.
to captions to headlines. When people talk generally
about style sheets, this is what they mean. Paragraph style 2: Chaparral Light, 11 ⁄16, flush left
A character style is a subset of a paragraph style that Out, out brief candle! Life’s but a walking
is limited to character-level attributes and may define
shadow, a poor player, that struts and frets his
as many or as few attributes as you like. On the next
hour upon the stage, and then is heard no
page, Figure 8-2 shows the result of creating a character
style that includes just two attributes—18-point size more; it is a tale told by an idiot, full of sound
and italic style—and applying it to each of the four and fury, signifying nothing.
styled paragraphs. The character style changes what
little formatting it can and leaves the rest intact. Paragraph style 3: Rotis Serif Italic, 11.5 ⁄16, justified
The most all-encompassing style sheet is the object Out, out brief candle! Life’s but a walking
style. An object style is applied not to individual char- shadow, a poor player, that struts and frets
acters or paragraphs of text but to the frame that con- his hour upon the stage, and then is heard
tains the text. (Threaded text frames are ultimately no more; it is a tale told by an idiot, full of
independent, so a story may have many object styles sound and fury, signifying nothing.
assigned to it.) An object style may include a paragraph
style definition, as well as frame-level attributes such Paragraph style 4: Silentium Roman 9 ⁄13.5, centered
as fill, stroke, transparency, frame margins, text wrap,
Out, out brief candle!
and anchored object settings. And it can be applied
Life’s but a walking shadow, a poor player,
just as easily to a frame that contains an imported
that struts and frets his hour upon the stage,
graphic or a drawing created inside InDesign.
and then is heard no more; it is a tale told by
In addition to facilitating the formatting of a document, an idiot, full of sound and fury,
style sheets make quick work of changes. Suppose signifying nothing.
your fickle client decides to use a different typeface.
No problem. Just change the style sheet and all styled Figure 8-1.
frames, paragraphs, or letters update in kind. You can
even create dependent style sheets, so that changing
one style affects many others.
This is one of the easiest things to forget when working with style
sheets: After you create a style based on a formatted paragraph, Figure 8-4.
you must turn around and apply that style to the same paragraph.
Otherwise, text and style are not linked, which means the text
won’t reflect any changes you make to the style later.
Figure 8-6.
8. Assign a keyboard shortcut. Let’s next assign a shortcut to
our paragraph style so that we can apply it from the keyboard.
InDesign requires that style shortcuts include one or more
modifier keys—Ctrl, Alt, or Shift (Ш, Option, or Shift on the
Mac)—combined with a number on the numeric keypad. That’s
right, it has to be a number, through , on the keypad
only, and the Mac’s Control key is out of bounds.
PEARL OF WISDOM
One problem with this restriction is that not all keyboards have keypads. To
activate the keypad equivalents on many laptops—Apple’s PowerBooks come
to mind—you must press the Num Lock key, which overrides a dozen or so
letter keys. After you enter the shortcut, press Num Lock again to turn off
the function and continue typing as usual. It’s hideously inconvenient.
If you can’t make this step work, skip it. Keyboard shortcuts are just one
of many options. We investigate all kinds of ways to apply style sheets
in the Extra Credit portion of this exercise, which begins on page 319.
9. Inspect the drop cap settings. The Style Settings area at the
bottom of the dialog box provides a summary of the attributes
conveyed by the paragraph style. You can see that the font is
EXTRA CREDIT
Congratulations. You have created and applied three style sheets in InDesign,
as well as established relationships between them. Frankly, that last part
makes you more adept at using style sheets than most working designers.
Now I want to show you how the Next Style option can make life a whole lot
easier for you when typing new text or formatting existing pages or stories.
(Or you can skip this next task and go directly to “Updating a Paragraph
Style” on page 321.)
18. Complete the style loop. Thanks to Step 16, we’ve established
that the style after Description is Page No. & Title. But what
about the other styles? Which style follows them? To answer
that question, do the following:
• Press Ctrl+Shift+A (Ш-Shift-A) to deselect all the text. This
helps us avoid applying style sheets as we edit them.
• Double-click the Page No. & Title item in the Paragraph
Styles palette. Set the Next Style pop-up menu to Byline
and click the OK button.
• Next double-click the Byline style. Change Next Style to
Description and click OK.
The three styles now reference each other in a continuous, re-
peating sequence. The result is a closed “style loop.”
19. Apply the style sheets to the other lines of type. Now that our
style sheets are finalized, let’s put them to use:
• Click with the type tool anywhere in the line of type that
contains 22 and Orchids en Regalia.
Between you and me, there’s nothing “quick” about that last
method. You could just as easily click the Byline style in the
Paragraph Styles palette. That’s why the quick apply function
includes shortcuts. Press Ctrl with the standard Enter key, not
the one on the keypad (that’s Ш-Return on the Mac) to display
the quick apply palette. Type the first few letters of the desired
style name and press Enter or Return.
• Let’s try that tip out on the next paragraph. Press the
Ϩ key yet again. Then press Ctrl+Enter (Ш-Return),
type the letter D, and press Enter or Return. The
only style name that starts with D is Description,
so InDesign applies it to the active text.
20. Format the rest of the TOC with one command. You
might think that this is a pretty time-consuming way to
save time, and you’d be right. It’s time for a bit of well-
deserved payoff:
• Press Ctrl+A (Ш-A) to select all the text in the text
block. Or switch to the black arrow tool and click
the text frame to select the whole thing.
• Right-click the Page No. & Title style in the Para-
graph Styles palette. (If you don’t have a right mouse
Figure 8-14.
button on the Mac, Control-click.) Then choose the
Apply “Page No. & Title” then Next Style command,
as in Figure 8-14. With one command, InDesign
formats the entire text block. Hard to beat that.
PEARL OF WISDOM
The Byline style in the Paragraph Styles palette ends in a small +, which
is InDesign’s way of warning you that changes have been made to
this particular paragraph, and it no longer exactly matches the Byline
specifications. In other words, the active paragraph enjoys what’s called
a local override. If you were to change the font or type size associated
with the Byline style, the selected text would update in kind. But if
you changed Byline’s type style, your local override—namely Semibold
Italic—would remain in place. We need to fold the override into the style
sheet, as the next step explains.
.PEJGZUIF*15$JOGPSNBUJPO 4DSPMMVQUPUIF*15$IFBEJOH
BOEDMJDLPOUIFUFYUUPUIFSJHIUPG%FTDSJQUJPOɩFUFYUCFDPNFT
IJHIMJHIUFE
QFSNJUUJOHZPVUPFEJUJU*OUIJTFYBNQMF
*DIBOHFE
UIFFOUSZUPi"CSPUIFSMZCBUUMF
wCVUZPVDBOFOUFSBOZUIJOHZPV
XBOUɩFOQSFTT5BCUPBEWBODFUPUIFOFYUFEJUBCMFJUFN.Z
FOUSJFTBQQFBSJO'JHVSFJGZPVXBOUUPGPMMPXUIFN
mOF
JGOPU
GFFMGSFFUPHPZPVSPXOXBZ*XBTOFWFSNVDIPGBTUJDLMFS
GPSNFUBEBUBEFDPSVN8IFOZPVmOJTI
QSFTTUIF&OUFSLFZ
*GZPVXBOUUPFOUFSUIFDPQZSJHIUTZNCPMªJOUIF$PQZSJHIUmFMEVOEFS
8JOEPXT
QSFTTBOEIPMEUIF"MULFZ
UIFOUZQFPOUIFOVNFSJD
LFZQBE0OUIF.BD
KVTUQSFTT0QUJPO(
But first, let’s create a style. Among the many specially formatted
strings of characters in the figure, you may notice that one—the
first sentence of the first paragraph—goes unlabeled. This text is
not yet tagged with a character style. Nor, it so happens, do you
find its style repeated in subsequent steps. We’ll remedy both
omissions in the next steps.
3. Select the first sentence on the page. Start by selecting the char-
acters on which you intend to base your style—in this case, the
turquoise sentence. Among its many selection shortcuts, InDesign
Figure 8-23.
PEARL OF WISDOM
Style shortcuts are a matter of taste. But for my part, I keep
my character styles simple—just Ctrl or Ш and a number—and
add modifier keys to the paragraph styles. In this document, for
example, Ctrl+Alt+ applies the essential Headline paragraph
style; the simpler shortcut Ctrl+ applies the discretionary
Emphasis Bold character style. If this sounds counterintuitive,
consider this: I apply most of my paragraph styles as I write
the text in Microsoft Word, so they’re already established when
I import the text into InDesign. Character styles are finishing
Figure 8-24. effects, so I wait to apply them until I’m well into the layout
phase. I spend more time applying character styles, hence they
get the quicker shortcuts. You should design your shortcuts to
suit your work habits.
Figure 8-27.
PEARL OF WISDOM
Before we go any further, I’d like you to play a quick visualization game with
me. After manually applying character styles to page 21 (“Augmenting Text
with Character Styles,” page 325), you switch to page 19 only to find you have
all that work to do over again. And then there’s the rest of the book to look
forward to—12 lessons in all with roughly 100 steps per lesson. Can you imagine
having to apply these character styles 2,400 times (1,200 times each) over the
course of a single book-length document? In QuarkXPress and every other
layout application prior to InDesign CS, that’s what you’d have to do. I just
want you to appreciate how much time you’re about to save.
Figure 8-28.
Figure 8-29.
PEARL OF WISDOM
The Sentences option ends the character style
at a period, a question mark, or an exclamation
point. But a period goes unnoticed within
P5196922.jpg (a digital camera filename). The
Sentences option is smart enough to demand
that a space follow the period. But alas, it is
not smart enough to account for human error.
We must seek a more foolproof solution.
Figure 8-34.
Figure 8-36.
339
8. Round the frame’s corners. We’re not after photorealism
here, but rounding the tiles’ corners might make them look
more Scrabbley. So choose Object¡Corner Effects or, if you
loaded my Deke Keys CS2 shortcuts (see the Preface), press
Ctrl+Shift+Alt+R (Ш-Shift-Option-R). Select Rounded from
the Effect pop-up menu and change the Size value to 0p6.
Click the OK button to replace the frame’s right-angle corners
with 6 point-radius arcs.
You may notice that the R in the tile has taken on a slight indent.
As shown in Figure 8-43, the R is essentially ducking out of the way
in reaction to the new shape of the corner of the frame. Any corner
effect that impinges on the text frame will have a similar result.
Figure 8-47. • Turn on the Preview check box to watch the first
tile update in response to your edits.
• Click Paragraph Styles on the left side of the Object
Style Options dialog box to turn on this check box
and display its options.
• Choose Big Letter from the Paragraph Style pop-
up menu. InDesign formats the R in the first tile.
• Turn on the Apply Next Style check box and watch
InDesign format the number 3, as in Figure 8-47.
• Click OK to approve your changes.
16. Format the remaining frames. Select the three unfor-
matted tile frames. Then click the Tile Style item in
the Object Styles palette. InDesign assigns all text and
graphic attributes to the three tiles in one fell swoop. The
strokes remain black because InDesign regarded them
as local overrides. To format them as well, press the Alt
(or Option) key and click Tile Style again. Figure 8-48
Figure 8-48. shows the final document in the preview mode.
2.
B.
3.
4.
C.
5.
6. D.
7.
8. E.
9.
F.
10.
11.
12. G.
H.
I.
J.
K.
L.
Answers
343