diff --git a/doc/techref/index.md b/doc/techref/index.md index 76ef1e1432d..9d6367ac055 100644 --- a/doc/techref/index.md +++ b/doc/techref/index.md @@ -11,6 +11,7 @@ visit the {gmt-docs}`GMT Technical Reference `. common_parameters.md projections.md fonts.md +text_formatting.md patterns.md encodings.md environment_variables.md diff --git a/doc/techref/text_formatting.md b/doc/techref/text_formatting.md new file mode 100644 index 00000000000..5bad9440f3d --- /dev/null +++ b/doc/techref/text_formatting.md @@ -0,0 +1,21 @@ +# Text Formatting + +The table below shows how text added to a plot as well as the title of the plot and +labels of colorbars, Cartesian axes, and legend entries can be formatted. Changing +the font as well as its color and size in this way allows to change those only for +specific characters of a longer text. The supported fonts are listed at +[](/techref/fonts.md). + +| Symbol | Behavior | +| --- | --- | +| @%*font*%*TEXT*@%% | Change the *font* of *TEXT* | +| @;*color*;*TEXT*@;; | Change the font *color* of *TEXT* | +| @:*size*:*TEXT*@:: | Change the font *size* of *TEXT* | +| @-*TEXT*@- | Toggle subscripts on/off | +| @+*TEXT*@+ | Toggle superscript on/off | +| @#*TEXT*@# | Toggle small caps on/off | +| @\_*TEXT*@\_ | Toggle underline on/off | +| @!*CHAR1CHAR2* | Print two characters on top of each other (composite characters, e.g., overstrike) | +| @\~*TEXT*@\~ | Toggle Greek letters on/off | +| @@ | Print the @ sign | +| @. | Print the degree symbol |