Automatic italic

Automatic italic

There are typographical conventions when writting mathematics, for instance: variables are usually written in italics, while standard functions are written in upright letters. WIRIS editor has the mode Automatic italic (autoitalics) to ease the writing of the formulas to follow these conventions. Autoitalics is ON by default.

In autoitalics mode:

  • numbers and symbols are written in upright letters
  • common letters are understood as single variables, and written in italics
  • sin, log, and such groups of letters (reserved words) are understood as functions, and written in upright letters

The sysadmin of your platform can configure these styles by changing the fontStyle parameter.

When you write consecutive letters, if you write a reserved word, it will be converted to upright letters at the precise moment you type the last letter. This change will not happen if you do not type the letters consecutively.

The reserved words are configurable by the sysadmin of your platform by setting the reservedWords parameter. The reserved words by default are:

  • sin, cos, tan
  • log, ln

You can disable autoitalics temporarily by pressing the Automatic italic button in the toolbar. When autoitalics is OFF then reserved words are not recognized.

Remember it is not recommended to write plain text inside a formula, but if you have to, then better use the Regular text button of the toolbar. Autoitalics will be OFF inside the text box.

Revert an automatic change

If you want to convert a reserved word into an ordinary group of letters, then delete-and-retype one of the letters in the middle.

For example:

Let's type rectangle
Type the first letters in sequence.
Right after you type n, the tan reserved word is recognized.
Continue typing to the end.
We do not want the change autoitalics has made.
Let's fix it.
Place the cursor in the middle of the reserved word.
Delete a letter.
And retype it again.
This is the result we want.

Force a format

You can apply or remove italics using the Italic button in the toolbar.

For example:

Let's type atan like a reserved word
This is not what we want.
Let's fix it.
Select the chunk you want to reformat.
Press Italic button.
We are not done yet.
Press Italic button again.
That's ok.