logo

img

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
What is Math Text Instruction, and how can I use it?
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful
Use Math Text Instruction Syntax to create advanced formatting of text in the Surfer plot window.

You can use Math Text Instruction to add superscript or subscript, change typeface, size, color, weight, and style of text on a character-by-character basis.  You could also create Greek letters and mathematical symbols using this method.  Instruction names are case insensitive.  Additional details can be found in the Surfer Help files under "Math Text Instruction Syntax", or in the attached PDF file.

Some examples are:
  • Common uses:
    • To create the superscript CO2, use:  CO\up50 2
    • To create the subscript CO2, use: CO\dn50 2
  • Examples of Math Text Instruction:
    \aX
     Insert an ANSI character with code given by X (0 to 255).
     \b  Embolden text.
     \date Inserts the date when text is output.
     \dnX Moves text baseline down X% of current font size (subscript).
     \f"X" Change to the typeface named X.
     \fsX Change font size to X% of current size.
     \i  Italicize text.
     \plain Set "plain" text (normal weight, no italic, underlining or strikethrough).
     \rpX Restore current position to position #X (1-20) on the current line.
     \spX Save current position as position #X (1-20) on the current line.
     \strike Strikethrough text.
     \time Inserts the time when text is output.
     \upX Moves text baseline up X% of current font size (superscript).
     \ul Underline text.

  • The following instructions allow the text color to be set to an arbitrary RGB (Red,Green,Blue) value:

     \rgbrX Sets amount of red in an RGB text color (X=0 to 255).
     \rgbgX Sets amount of green in an RGB text color (X=0 to 255).
     \rgbbX Sets amount of blue in an RGB text color (X=0 to 255).

  • The following instructions are provided to make it easy to set basic text colors:

     \black Sets text color to black.
     \blue Sets text color to blue.
     \green  Sets text color to green.
     \cyan Sets text color to cyan.
     \red Sets text color to red.
     \magenta Sets text color to magenta.
     \yellow Sets text color to yellow.
     \white Sets text color to white.
     \gray Sets text color to gray.

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
Products