Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > os > by-pkgid > 4b194777eaf705e440bb2ce282d32772 > files > 745

GMT-doc-4.5.3-3.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
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 NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

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

<LINK REL="next" HREF="node72.html">
<LINK REL="previous" HREF="node68.html">
<LINK REL="up" HREF="node31.html">
<LINK REL="next" HREF="node72.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html3554"
  HREF="node72.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html3548"
  HREF="node31.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html3542"
  HREF="node70.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html3550"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html3552"
  HREF="node256.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html3555"
  HREF="node72.html">4.17 Grid file format</A>
<B> Up:</B> <A NAME="tex2html3549"
  HREF="node31.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html3543"
  HREF="node70.html">4.15.2 Regular CPT files</A>
 &nbsp; <B>  <A NAME="tex2html3551"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html3553"
  HREF="node256.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION0012160000000000000000"></A>
<A NAME="sec:escape"></A><A NAME="18405"></A>
<A NAME="18406"></A>
<A NAME="18407"></A>
<A NAME="18408"></A>
<A NAME="18409"></A>
<A NAME="18410"></A>
<A NAME="18411"></A>
<A NAME="18412"></A>
<A NAME="18413"></A>
<A NAME="18414"></A>
<A NAME="18415"></A>
<A NAME="18416"></A>
<A NAME="18417"></A>
<A NAME="18418"></A>
<A NAME="18419"></A>
<A NAME="18420"></A>
<A NAME="18421"></A>
<A NAME="18422"></A>
<A NAME="18423"></A>
<A NAME="18424"></A>
<A NAME="18425"></A>
<A NAME="18426"></A>
<A NAME="18427"></A>
<A NAME="18428"></A>
<A NAME="18429"></A>
<BR>
4.16 Character escape sequences
</H1>

<P>
For annotation labels or text strings plotted with <A NAME="tex2html1197"
  HREF="../man/pstext.html"><I><B>pstext</B></I></A><A NAME="19511"></A>,
<A NAME="tex2html1198"
  HREF="http://gmt.soest.hawaii.edu"><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="tex2html1199"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> are listed in Table&nbsp;<A HREF="#tbl:escape">4.7</A>. 
Only one level of sub- or superscript is supported.
Note that under Windows the percent symbol indicates a batch variable,
hence you must use two percent-signs for each one required in the escape sequence for font switching.

<P>
<BR><P></P>
<DIV ALIGN="CENTER"><A NAME="18447"></A>
<TABLE>
<CAPTION><STRONG>Table:</STRONG>
<A NAME="tex2html1193"
  HREF="http://gmt.soest.hawaii.edu"><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">@+</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">Turns underline 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">@:<I>size</I>:</TD>
<TD ALIGN="LEFT">Switches to another font size; @:: resets to previous size</TD>
</TR>
<TR><TD ALIGN="LEFT">@;<I>color</I>;</TD>
<TD ALIGN="LEFT">Switches to another font color; @;; resets to previous color</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 European characters has also been
added (Table&nbsp;<A HREF="#tbl:scand">4.8</A>):
<A NAME="18451"></A>
<A NAME="18452"></A>

<P>
<BR><P></P>
<DIV ALIGN="CENTER"><A NAME="18467"></A>
<TABLE>
<CAPTION><STRONG>Table 4.8:</STRONG>
Shortcuts for some European characters.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER"><TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="LEFT"><I>Code</I></TD>
<TD ALIGN="LEFT"><I>Effect</I></TD>
<TD ALIGN="LEFT"><I>Code</I></TD>
<TD ALIGN="LEFT"><I>Effect</I></TD>
</TR>
<TR><TD ALIGN="LEFT">@E</TD>
<TD ALIGN="LEFT">&#198;</TD>
<TD ALIGN="LEFT">@e</TD>
<TD ALIGN="LEFT">&#230;</TD>
</TR>
<TR><TD ALIGN="LEFT">@O</TD>
<TD ALIGN="LEFT">&#216;</TD>
<TD ALIGN="LEFT">@o</TD>
<TD ALIGN="LEFT">&#248;</TD>
</TR>
<TR><TD ALIGN="LEFT">@A</TD>
<TD ALIGN="LEFT">&#197;</TD>
<TD ALIGN="LEFT">@a</TD>
<TD ALIGN="LEFT">&#229;</TD>
</TR>
<TR><TD ALIGN="LEFT">@C</TD>
<TD ALIGN="LEFT">&#199;</TD>
<TD ALIGN="LEFT">@c</TD>
<TD ALIGN="LEFT">&#231;</TD>
</TR>
<TR><TD ALIGN="LEFT">@N</TD>
<TD ALIGN="LEFT">&#209;</TD>
<TD ALIGN="LEFT">@n</TD>
<TD ALIGN="LEFT">&#241;</TD>
</TR>
<TR><TD ALIGN="LEFT">@U</TD>
<TD ALIGN="LEFT">&#220;</TD>
<TD ALIGN="LEFT">@u</TD>
<TD ALIGN="LEFT">&#252;</TD>
</TR>
<TR><TD ALIGN="LEFT">@s</TD>
<TD ALIGN="LEFT">&#223;</TD>
<TD ALIGN="LEFT">&nbsp;</TD>
<TD ALIGN="LEFT">&nbsp;</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="tex2html1200"
  HREF="http://gmt.soest.hawaii.edu"><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="img79.png"
 ALT="$\backslash$">xxx
allowed for your choice of character encodings
determined by the <B>CHAR_ENCODING</B> setting described
in the <A NAME="tex2html1201"
  HREF="../man/gmtdefaults.html"><I><B>gmtdefaults</B></I></A><A NAME="19529"></A> man page.  Only the special characters
belonging to a particular encoding will
be available.  Many characters 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="tex2html1202"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> strings using the
Standard+ encoding: 

<P>
<PRE><TT>
		<code>2@~p@~r@+2@+h@-0@- E\363tv\363s</code> 		 = 		 2<IMG
 WIDTH="42" HEIGHT="35" ALIGN="MIDDLE" BORDER="0"
 SRC="img80.png"
 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="img81.png"
 ALT="$^{-3}$"> &#197;ngstr&#248;m 
<BR><code>Se@nor Gar@con</code> 		 = 		 Se&#241;or Gar&#231;on 
<BR><code>M@!\305anoa stra@se</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="tex2html1203"
  HREF="../man/pstext.html"><I><B>pstext</B></I></A><A NAME="19537"></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&nbsp;<A HREF="node201.html#app:F">F</A>. 

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html3554"
  HREF="node72.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html3548"
  HREF="node31.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html3542"
  HREF="node70.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html3550"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html3552"
  HREF="node256.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html3555"
  HREF="node72.html">4.17 Grid file format</A>
<B> Up:</B> <A NAME="tex2html3549"
  HREF="node31.html">4. General features</A>
<B> Previous:</B> <A NAME="tex2html3543"
  HREF="node70.html">4.15.2 Regular CPT files</A>
 &nbsp; <B>  <A NAME="tex2html3551"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html3553"
  HREF="node256.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-07-14
</ADDRESS>
</BODY>
</HTML>