You have a cross-reference (usually tagged with
xref
) and you want to append text or graphics after the
reference is resolved.
Use the xref-to-prefix
or
xref-to-suffix
mode. These modes are called before
or after the xref
is being resolved. As such it makes
it pretty easy to add text or graphics.
For example, the following example appends the text “[x]” to
each xref
, regardless where it points to:
If you need the text only for specific elements (for example,
only for chapters) use the match
attribute:
If you have to insert text before or after your reference only, you can use one of the templates described above. However, if you need to display a graphic, you need to insert FO- or HTML-specific code. For HTML, this could look like this:
If you need to add a graphic for FO, use the following template:
The same principle applies if you want to add something
before your cross-reference. In this case,
replace the xref-to-suffix
mode with
xref-to-prefix
.
Project@GitHub | Issue#7 |