How Do I Use Multiple Commands, i.e.,... Log Out | Topics | Search
Moderators | Register | Edit Profile

Wild Poetry Forum » ~NATUROPATHY~ (Library Forum) » Hints for Formatting at WPF » How Do I Use Multiple Commands, i.e., Adding Bolding and Italics? « Previous Next »

Author Message
M
Board Administrator
Username: mjm

Post Number: 36544
Registered: 11-1998
Posted on Wednesday, March 24, 2010 - 8:35 am:   Edit Post Delete Post View Post/Check IP Print Post

.
Q: Suppose you want to do more than one kind of formatting for a line of text or for some words within a line, like increase the size and bold and italicize? How does one do that?

A: You have to nest commands. Like this:

\b{\i{this text should be bolded and italicized}}

which will produce this result:

this text will be bolded and italicized

It doesn't matter which order the commands are in. You can enter this:

\b{\i{this text will be bolded and italicized}}

or this:

\i{\b{this text will be bolded and italicized}}

And the result will be the same. What does matter is using the correct number of brackets surrounding everything, i.e., if you use two commands (bolding and italics), then you need two sets of brackets.

If nesting commands doesn’t initially work for you, first check the number of ending brackets you’ve used. In a long string of nested commands, it’s easy to lose count of how many ending brackets are needed to complete the string.

.