Name
synopfragmentref — A reference to a fragment of a command synopsis
Synopsis
synopfragmentref ::= text
Attribute synopsis
Additional constraints
@linkendonsynopfragmentrefmust point to asynopfragment.
Description
A complex cmdsynopsis can be made more
manageable with synopfragments. Rather than
attempting to present the entire synopsis in one large piece, parts of
the synopsis can be extracted and presented elsewhere.
At the point where each piece was extracted, insert a
synopfragmentref that points to the fragment. The
content of the synopfragmentref will be presented
inline.
The extracted pieces are placed in
synopfragments at the end of the
cmdsynopsis.
Processing expectations
Formatted as a displayed block.
The presentation system is responsible for generating text that makes the reader aware of the link. This can be done with numbered bullets, or any other appropriate mechanism.
Online systems have additional flexibility. They may generate hot links between the references and the fragments, for example, or place the fragments in pop-up windows.
See Also
arg, cmdsynopsis, group, refsynopsisdiv, sbr, synopfragment
Examples
See synopfragment for an example using this
element.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access