The "replace text" feature of the AutoCorrect tool can not only replace certain text in a document with new text but also apply additional font formatting like bold or underline to the entire replacement text or its part. You can instruct Atlantis to change the font formatting of the replacement text by including special formatting tags in the "with" part of a "replace with" item. For example, if you add a "replace with" item shown in the screenshot below:
every time you type "Note:" (without quotes) in a document, Atlantis will automatically apply bold formatting to the word "Note".
The font formatting tags of the AutoCorrect are similar to the corresponding tags that you have probably encountered in HTML files. To specify formatting for a portion of a "with" part of a "replace with" item, you first insert an opening tag before that portion, then insert a corresponding closing tag after that portion. In the example above, to apply "bold" to the word "Note", we inserted the opening tag "[b]" before this word, then inserted the closing tag "[/b]" after the word.
So, both the opening and closing tags are always enclosed within a pair of square brackets []. But the closing tags have an additional slash or backslash character ("\" or "/") after "[". Closing tags are not mandatory. If an opening tag does not have a corresponding closing tag, Atlantis internally adds one at the end of the "with" text. So, the following replacement texts are considered identical:
[b]Warning![/b]
[b]Warning!
Some opening tags require a parameter. In the example below, the "[font]" tag has a font name "Times New Roman" as a parameter:
[font=Times New Roman]Info:[/font]
The tag names must be lowercase. For example, you cannot use "[B]" instead of "[b]".
If there are multiple closing tags within a replacement, you can put them in any order. So, the correct nesting of tags is not required. For example, both replacement items below are considered valid:
[b][i]Warning![/i][/b]
[b][i]Warning![/b][/i]
You can either specify formatting for the entire "with" text:
[b]Important:[/b]
or use different formatting for individual parts of the "with" part:
[b][u][color=red]Important[/color][/u] information:[/b]
If you need to use an opening square bracket "[" within a "with" part not as a first character of a tag but as an ordinary character, you can use a pair of opening square brackets:
a[[b]c
The above "with" part replaces the document text with "a[b]c".
The table below lists all the formatting tags you can use within the "with" part of a "replace with" item:
Tag | Description | Parameter | Examples |
font | Font name (typeface) | Font name | [font=Times New Roman]Info:[/font] |
size | Font size | Font size in points, half-points allowed |
[size=12]Info:[/size] [size=10.5]Info:[/size] |
b | Bold | No parameter | [b]Info:[/b] |
i | Italic | No parameter | [i]Info:[/i] |
s | Strikeout | No parameter | [s]Canceled[/s] |
s2 | Double strikeout | No parameter | [s2]Canceled[/s2] |
u | Underline | No parameter (means "solid underline") or one of the following underline styles: dashed double dotted wavy |
[u]Important![/u] [u=double]Important![/u] [u=wavy]Important![/u] |
ucolor | Underline color | Color* | [u][ucolor=red]Important![/ucolor][/u] [u][ucolor=#80A0FF]Important![/ucolor][/u] [u][ucolor=rgb(70,80,220)]Important![/ucolor][/u] |
smallcaps | Small caps | No parameter | [smallcaps]Details:[/smallcaps] |
allcaps | All caps | No parameter | [allcaps]Details:[/allcaps] |
color | Text color | Color* | [color=red]Important![/color] [color=#80A0FF]Important![/color] [color=rgb(70,80,220)]Important![/color] |
highlight | Highlight color | Color* | [highlight=red]Important![/highlight] [highlight=#80A0FF]Important![/highlight] [highlight=rgb(70,80,220)]Important![/highlight] |
sup | Superscript | No parameter | cm[sup]3[/sup] |
sub | Subscript | No parameter | CO[sub]2[/sub] |
voffset | Vertical offset (location) of text |
Offset in points | [voffset=-5]Info:[/voffset] [voffset=20]Info:[/voffset] |
* An HTML color name, a hexadecimal RGB format (#RRGGBB), or the RGB function: rgb(128,80,80) or rgb(60%,75%,90%).
See also...