Skip to content

English Style Guide

Rodrigo Girão Serrão edited this page Apr 8, 2022 · 4 revisions

To ensure that the book is as consistent as possible, we outline here the style guide that the book prose observes.

Contractions

Avoid contractions.

  • Don't: Didn't you know that's what it's supposed to do?
  • Do: Did you not know that is what it is supposed to do?

Primitive Names

Italicise primitive names but don't capitalise them. The added emphasis is to help distinguish the regular English word from the primitive name.

Refer to https://docs.dyalog.com/latest/CheatSheet%20-%20Nomenclature%20-%20Functions%20and%20Operators.pdf for the official names of the glyphs and corresponding primitive functions/operators.

Figure Captions

Captions of figures are punctuated.

Title Case

In chapter titles, section titles, and subsection titles, and other similar situations, we capitalise all words as if it were the title of a book or movie.

Title Case for Hyphenated Words

When needed, we capitalise all words of a hyphenated word. For example, there is a chapter called “User-Defined Functions”.

Ordinal Numbers

For generic ordinal numbers, the book uses “nth” and “ith”, not “n-th”, “Nth”, ”n^\text{th}” (LaTeX).

Menu Options

When referring to menu navigation, use the HTML entity ⇨ (⇨) to indicate successive choices.

Oxford Style Guide

When in doubt, the default is to follow the Oxford Style Guide. Remember to always take common sense into account.

Consistency Over Style Correctness

In matters of style, it is best to be consistently “wrong” than inconsistently “right”. For example, it would be better to have all titles consistently lower case than some titles in title case (like outlined above) and others in all lower case.