Skip to content

Automatic references

The autoref element is used to reference content which appears at another place of the course. In contrast to manual references created with the ref element, the text description of references created with autoref are generated automatically. They are therefore called automatic references.

Example

<p>
  Consider the triangle in <autoref to="figure-triangle"/>.
</p>

Attributes

The autoref element supports the following attributes:

Attribute Type Default Description
name xs:Name - Name of this element. Must be unique among all element names in this course variant.
tags TokenList Whitespace-separated list of tags of this element.
to xs:Name - Name of the target element to which this reference points.