Download Xtags User's Guide
Transcript
Xtags User’s Guide 21 Chapter 4 Setting Character Attributes Formatted Result: The t tag controls tracking: h e r e i s s o m e t e x t w i t h l o o s e t r a c k i n g , and here is some with tighter tracking than normal. Here’s a kern between the “W” and the “a” (note how the kerning is applied only to the first character of the pair to be kerned): Water. And not kerned: Water. You can also scale text. @Example Last:Finally, these tags will shift the baseline up by 25% of the font size, which is <z12><br25>3 points<z$br$>, in this case.¶ Formatted Result: Here are some examples. The words in the middle of this line fall 2 points below the normal baseline. The words in the middle of this line are 4 points above the baseline. The next line uses the baseline shift and font size tags to create an exponent in two different ways: Character Baseline Shift Tags There are two tags that control character baseline shift: <bshift> <brshift> Set absolute baseline shift, in points Set relative baseline shift, in percentage of size The b tag sets the current baseline shift to shift points. A positive parameter value moves text above the current baseline, and a negative value moves it below the current baseline. The largest allowed baseline shift in either direction (negative or positive) is three times the current text point size. The Xtags br tag lets you express the baseline shift up or down as a percentage of the current point size, with 0 being no baseline shift, and positive percentages meaning shift upwards, and negative percentages meaning shift downward. (The maximum shift is 300% in either direction.) Both <b$> and <br$> restore the default baseline shift setting. Example 4.5 Xtags Code: @Example:Here are some examples. The words in the <b-2>middle of this<b$> line fall 2 points below the normal baseline.¶ The words in the <b4>middle of this<b$> line are 4 points above the baseline.¶ The next line uses the baseline shift and font size tags to create an exponent in two different ways:¶ <*C>E = mc<z8><b2.5>2<z11><b0> E = mc<+>2<+>¶ <*J>In the first instance that we used a relative value for the font size tag’s parameter; it said to decrease the current size by 3 points, then shift the baseline up 2.5 points. In the second instance we used a superscript code.¶ E = mc2 E = mc2 In the first instance that we used a relative value for the font size tag’s parameter; it said to decrease the current size by 3 points, then shift the baseline up 2.5 points. In the second instance we used a superscript code. Finally, these tags will shift the baseline up by 25% of the font size, which is 3 points, in this case. Character Language Tag The <ncountrycode> tag (QuarkXPress 7.x only) will set the language attribute of a character run (used for hyphenation and spell-checking), where countrycode is one of (note that this is only a partial list): 0 3 6 9 12 15 18 US Germany Flemish Denmark Norway Australia French Swiss 1 4 7 10 13 16 19 France Italy Sweden Portugal Israel Arabic German Swiss 2 5 8 11 14 17 20 Britain Netherlands Spain French Canada Japan Finland Greece InDesign Caveat: InDesign does not currently support the n tag. It will be added in a future release.