1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<refentry id="synopfragment.element">
<?dbhtml filename="synopfragment.html"?>
<refentryinfo>
<pubdate>$Date$</pubdate>
<releaseinfo>$Revision$</releaseinfo>
</refentryinfo>
<refmeta>
<indexterm><primary>elements</primary>
<secondary>synopfragment</secondary></indexterm>
<refentrytitle>synopfragment</refentrytitle>
<refmiscinfo>Element</refmiscinfo>
</refmeta>
<refnamediv>
<refname>synopfragment</refname>
<refpurpose>&synopfragment.purpose;</refpurpose>
</refnamediv>
&synopfragment.synopsis.gen;
<refsect1 condition='ref.description'><title>Description</title>
<para>
A complex <sgmltag>CmdSynopsis</sgmltag> can be made more manageable
with <sgmltag>SynopFragment</sgmltag>s. Rather than attempting to
present the entire synopsis in one large
piece, parts of the synopsis can be extracted out and presented
elsewhere. These extracted pieces are placed in <sgmltag>SynopFragment</sgmltag>s
at the end of the <sgmltag>CmdSynopsis</sgmltag>.
</para>
<para>
At the point in which each piece was extracted, insert a
<sgmltag>SynopFragmentRef</sgmltag> that points to the fragment. The
content of the reference element will be presented inline.
</para>
<refsect2><title>Processing expectations</title>
<para>
&format.block;
</para>
<para>
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. Whatever
mark is generated for the reference must also be generated for
the fragment.
</para>
<para>
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.
</para>
</refsect2>
&synopfragment.parents.gen;
&synopfragment.children.gen;
</refsect1>
<refsect1 condition='ref.elem.seealso'><title>See Also</title>
&synopfragment.seealso.gen;
</refsect1>
<refsect1><title>Examples</title>
<informalexample role="example-source">
<programlisting>&synopfragment.example.1.txt;</programlisting>
</informalexample>
<anchor id="ex.os.synopfragment.1" role="HACK-ex.out.start"/>
&synopfragment.example.1.gen;
<anchor id="ex.oe.synopfragment.1" role="HACK-ex.out.end"/>
&synopfragment.example.seealso.gen;
</refsect1>
</refentry>
|