From 112fe8d1081d4f9dcbd11599c09b0c0b37299539 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Sun, 16 Jul 2000 16:40:09 +0000 Subject: Remove the text saying "I don't know how to do callouts", because now I do. Replace it with some examples showing how to do callouts. Replace "&man.sendmail.8;" with "&man.sendmail.8;". --- .../books/fdp-primer/sgml-markup/chapter.sgml | 92 +++++++++++++++++++--- 1 file changed, 79 insertions(+), 13 deletions(-) (limited to 'en_US.ISO_8859-1/books') diff --git a/en_US.ISO_8859-1/books/fdp-primer/sgml-markup/chapter.sgml b/en_US.ISO_8859-1/books/fdp-primer/sgml-markup/chapter.sgml index 332bd5ab8b..9c58f2fd68 100644 --- a/en_US.ISO_8859-1/books/fdp-primer/sgml-markup/chapter.sgml +++ b/en_US.ISO_8859-1/books/fdp-primer/sgml-markup/chapter.sgml @@ -27,7 +27,7 @@ ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - $FreeBSD: doc/en_US.ISO_8859-1/books/fdp-primer/sgml-markup/chapter.sgml,v 1.12 2000/07/07 18:38:37 dannyboy Exp $ + $FreeBSD: doc/en_US.ISO_8859-1/books/fdp-primer/sgml-markup/chapter.sgml,v 1.13 2000/07/15 07:47:55 alex Exp $ --> @@ -1275,17 +1275,83 @@ main(void) printf("hello, world\n"); } - - - There is a mechanism within DocBook for referring to sections - of a previously occuring programlisting, called - callouts (see programlistingco for more - information). I don't fully understand (i.e., have never used) - this feature, so can't document it here. For the mean time, you - can include line numbers within the content, and then refer to - them later on in your description. That will change, as soon as I - find the time to understand and document callouts. - + + + + Callouts + + A callout is a mechanism for referring back to an earlier piece + of text or specific position within an earlier example without + linking to it within the text. + + To do this, mark areas of interest in your example + (programlisting, + literallayout, or whatever) with the + co element. Each element must have a unique + id assigned to it. After the example include a + calloutlist that refers back to the example and + provides additional commentary. + + + <sgmltag>co</sgmltag> and + <sgmltag>calloutlist</sgmltag> + + When you have finished, your program should look like + this; + +#include <stdio.h> + +int +main(void) +{ + printf("hello, world\n"); +} + + + + Includes the standard IO header file. + + + + Specifies that main() returns an + int. + + + + The printf() call that writes + hello, world to standard output. + +]]> + + Appearance: + + When you have finished, your program should look like + this; + + #include <stdio.h> + +int +main(void) +{ + printf("hello, world\n"); +} + + + + Includes the standard IO header file. + + + + Specifies that main() returns an + int. + + + + The printf() call that writes + hello, world to standard output. + + + @@ -1610,7 +1676,7 @@ This is the file called 'foo2' sendmail 8 - , &man.sendmail.8;, and &man.newaliases.8; + , &man.sendmail.8;, and &man.newaliases.8; programs. One of the command line parameters to -- cgit v1.2.3