Next Up Previous Contents
Next: 3.3 Defining entities
Up: 3 Marking up your document
Previous: 3.1 Sample document, and overview
[ID index][Keyword index]

3.2 Entity references

Entity references are a mechanism for referring to characters, or longer pieces of text, which you cannot type on your keyboard, which must be escaped from the parser, which must be read from external files, or which you simply want to abbreviate.

A reference to an entity amp is of the form &. It is prefixed by the character & and suffixed by a semicolon.

The list of entities predefined by the Starlink general DTD is given in Table 1.

Entity referenceReplacementDescription
©(c)Copyright symbol
&&ampersand
>>greater-than symbol
&lt;<less-than symbol
&quot;"quotation mark
&nbsp; non-breaking space
&hash;#hash sign
&pounds;UKPpounds sign
&dollar;$dollar sign
&ellip;...ellipses
&emdash;--em dash
&endash;-en dash
&percent;%percent sign
&deg;(deg)degrees symbol
&tilde;~tilde
&underscore;_underscore
&backslash;\backslash
&verticalbar;|vertical bar
&dot;.non-sentence-ending period
&latex;LaTeXLaTeX logo
&tex;TeXTeX logo

Table 1

Entities predefined in the Starlink general DTD.

Certain of these entities are used sufficiently often that there are `short references' declared for them: you can type `_' instead of `&underscore;' (unsurprisingly), `--' for a punctuation dash (this is currently set to `&endash;', but could conceivably change to `&emdash;' if we make a typographic decision on that score), `"' instead of `&quot;' and `~' instead of `&nbsp;'. These short-references work within paragraphs.

See Section 4.10 for a brief discussion of using entities within maths elements.

For more details on entities, see Appendix A.4.


Next Up Previous Contents
Next: 3.3 Defining entities
Up: 3 Marking up your document
Previous: 3.1 Sample document, and overview
[ID index][Keyword index]
The Starlink SGML Set
Starlink System Note 70
Norman Gray, Mark Taylor
21 April 1999. Release DR-0.7-13. Last updated 24 August 2001