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