File: node31.html

package info (click to toggle)
gmt-doc 3.4-1.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (259 lines) | stat: -rw-r--r-- 8,500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>4.16 Character escape sequences</TITLE>
<META NAME="description" CONTENT="4.16 Character escape sequences">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="GMT_Docs.css">

<LINK REL="next" HREF="node32.html">
<LINK REL="previous" HREF="node30.html">
<LINK REL="up" HREF="node15.html">
<LINK REL="next" HREF="node32.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html1386"
  HREF="node32.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1380"
  HREF="node15.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1374"
  HREF="node30.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1382"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1384"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1387"
  HREF="node32.html">4.17 Embedded grdfile format</A>
<B> Up:</B> <A NAME="tex2html1381"
  HREF="node15.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html1375"
  HREF="node30.html">4.15 Color palette tables</A>
 &nbsp <B>  <A NAME="tex2html1383"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1385"
  HREF="node149.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION0012160000000000000000"></A>
<A NAME="sec:escape"></A><A NAME="4423"></A>
<A NAME="4424"></A>
<A NAME="4425"></A>
<A NAME="4426"></A>
<A NAME="4427"></A>
<A NAME="4428"></A>
<A NAME="4429"></A>
<A NAME="4430"></A>
<A NAME="4431"></A>
<A NAME="4432"></A>
<A NAME="4433"></A>
<A NAME="4434"></A>
<A NAME="4435"></A>
<A NAME="4436"></A>
<A NAME="4437"></A>
<A NAME="4438"></A>
<A NAME="4439"></A>
<A NAME="4440"></A>
<A NAME="4441"></A>
<A NAME="4442"></A>
<A NAME="4443"></A>
<A NAME="4444"></A>
<A NAME="4445"></A>
<A NAME="4446"></A>
<A NAME="4447"></A>
<BR>
4.16 Character escape sequences
</H1>

<P>
For annotation labels or textstrings plotted with <A NAME="tex2html271"
  HREF="../pstext.html"><I><B>pstext</B></I></A><A NAME="4931"></A>,
<A NAME="tex2html272"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> provides several escape sequences that allow the user to
temporarily switch to the symbol font, turn on sub- or superscript,
etc. within words.  These conditions are toggled on/off by the
escape sequence @<B>x</B>, where <B>x</B> can be one of several types.
The escape sequences recognized in <A NAME="tex2html273"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> are listed in Table&nbsp;<A HREF="node31.html#tbl:escape">4.2</A>. 

<P>
<BR><P></P>
<DIV ALIGN="CENTER"><A NAME="4463"></A>
<TABLE>
<CAPTION><STRONG>Table 4.2:</STRONG>
<A NAME="tex2html267"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> text escape sequences</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER"><TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="CENTER" COLSPAN=1><I>Code</I></TD>
<TD ALIGN="CENTER" COLSPAN=1><I>Effect</I></TD>
</TR>
<TR><TD ALIGN="LEFT">@~</TD>
<TD ALIGN="LEFT">Turns symbol font on or off</TD>
</TR>
<TR><TD ALIGN="LEFT">@%<I>fontno</I>%</TD>
<TD ALIGN="LEFT">Switches to another font; @%% resets to previous font</TD>
</TR>
<TR><TD ALIGN="LEFT">@+</TD>
<TD ALIGN="LEFT">Turns superscript on or off</TD>
</TR>
<TR><TD ALIGN="LEFT">@-</TD>
<TD ALIGN="LEFT">Turns subscript on or off</TD>
</TR>
<TR><TD ALIGN="LEFT">@#</TD>
<TD ALIGN="LEFT">Turns small caps on or off</TD>
</TR>
<TR><TD ALIGN="LEFT">@!</TD>
<TD ALIGN="LEFT">Creates one composite character of the next two characters</TD>
</TR>
<TR><TD ALIGN="LEFT">@@</TD>
<TD ALIGN="LEFT">Prints the @ sign itself</TD>
</TR>
</TABLE>

<A NAME="tbl:escape"></A></DIV></TD></TR>
</TABLE>
</DIV><P></P>
<BR>

<P>
Shorthand notation for a few special Scandinavian characters has also been
added (Table&nbsp;<A HREF="node31.html#tbl:scand">4.3</A>):
<A NAME="4467"></A>
<A NAME="4468"></A>

<P>
<BR><P></P>
<DIV ALIGN="CENTER"><A NAME="4479"></A>
<TABLE>
<CAPTION><STRONG>Table 4.3:</STRONG>
Shortcuts for Scandinavian characters</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER"><TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="CENTER" COLSPAN=1><I>Code</I></TD>
<TD ALIGN="CENTER" COLSPAN=1><I>Effect</I></TD>
</TR>
<TR><TD ALIGN="LEFT">@E</TD>
<TD ALIGN="LEFT">&#198;</TD>
</TR>
<TR><TD ALIGN="LEFT">@e</TD>
<TD ALIGN="LEFT">&#230;</TD>
</TR>
<TR><TD ALIGN="LEFT">@O</TD>
<TD ALIGN="LEFT">&#216;</TD>
</TR>
<TR><TD ALIGN="LEFT">@o</TD>
<TD ALIGN="LEFT">&#248;</TD>
</TR>
<TR><TD ALIGN="LEFT">@A</TD>
<TD ALIGN="LEFT">&#197;</TD>
</TR>
<TR><TD ALIGN="LEFT">@a</TD>
<TD ALIGN="LEFT">&#229;</TD>
</TR>
</TABLE>

<A NAME="tbl:scand"></A></DIV></TD></TR>
</TABLE>
</DIV><P></P>
<BR>

<P>
<I>PostScript</I> fonts used in <A NAME="tex2html274"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> may be re-encoded to include
several accented characters used in many European languages.  To
access these, you must specify the full octal code <IMG
 WIDTH="12" HEIGHT="31" ALIGN="MIDDLE" BORDER="0"
 SRC="img49.gif"
 ALT="$\backslash$">xxx
(See Appendix F).  Also see the definition of (and reason for)
WANT_EURO_FONT in the <A NAME="tex2html275"
  HREF="../gmtdefaults.html"><I><B>gmtdefaults</B></I></A><A NAME="4953"></A> man page.  Basically,
WANT_EURO_FONT must be set to TRUE for the special characters to
be available.  Many characters that are not directly available by
using single octal codes may be constructed with the composite
character mechanism @!.

<P>
Some examples of escape sequences and embedded octal codes in <A NAME="tex2html276"
  HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> strings: 

<P>
<PRE><TT>
		<code>2@~p@~r@+2@+h@-0@- E\363tv\363s</code> 		 = 		 2<IMG
 WIDTH="41" HEIGHT="35" ALIGN="MIDDLE" BORDER="0"
 SRC="img50.gif"
 ALT="$\pi r^2h_0$"> E&#246;tv&#246;s 
<BR><code>10@+-3 @Angstr@om</code> 		 = 		 10<IMG
 WIDTH="20" HEIGHT="18" ALIGN="BOTTOM" BORDER="0"
 SRC="img51.gif"
 ALT="$^{-3}$"> &#197;ngstr&#248;m 
<BR><code>Se\227or Gar\215on</code> 		 = 		 Se&#241;or Gar&#231;on 
<BR><code>M@!\305anoa stra\373e</code> 		 = 		 Manoa stra&#223;e 
<BR><code>A@\#cceleration@\# (ms@+-2@+)</code> 		 = 		 A<SMALL>CCELERATION (MS</SMALL>)</SMALL>
</TT></PRE> 

<P>
The option in <A NAME="tex2html277"
  HREF="../pstext.html"><I><B>pstext</B></I></A><A NAME="4965"></A> to draw a rectangle surrounding the text
will not work for strings with escape sequences.  A chart of characters
and their octal codes is given in Appendix F. 

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1386"
  HREF="node32.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A> 
<A NAME="tex2html1380"
  HREF="node15.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A> 
<A NAME="tex2html1374"
  HREF="node30.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A> 
<A NAME="tex2html1382"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A> 
<A NAME="tex2html1384"
  HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1387"
  HREF="node32.html">4.17 Embedded grdfile format</A>
<B> Up:</B> <A NAME="tex2html1381"
  HREF="node15.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html1375"
  HREF="node30.html">4.15 Color palette tables</A>
 &nbsp <B>  <A NAME="tex2html1383"
  HREF="node1.html">Contents</A></B> 
 &nbsp <B>  <A NAME="tex2html1385"
  HREF="node149.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>