1 | /* sectioning.h -- all related stuff @chapter, @section... @contents |
---|
2 | $Id: sectioning.h,v 1.1.1.2 2003-02-28 17:44:05 amb Exp $ |
---|
3 | |
---|
4 | Copyright (C) 1999 Free Software Foundation, Inc. |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | This program is distributed in the hope that it will be useful, |
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | GNU General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU General Public License |
---|
17 | along with this program; if not, write to the Free Software |
---|
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
19 | |
---|
20 | Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */ |
---|
21 | |
---|
22 | #ifndef SECTIONING_H |
---|
23 | #define SECTIONING_H |
---|
24 | |
---|
25 | /* Sectioning. */ |
---|
26 | extern void |
---|
27 | cm_chapter (), cm_unnumbered (), cm_appendix (), cm_top (), |
---|
28 | cm_section (), cm_unnumberedsec (), cm_appendixsec (), |
---|
29 | cm_subsection (), cm_unnumberedsubsec (), cm_appendixsubsec (), |
---|
30 | cm_subsubsection (), cm_unnumberedsubsubsec (), cm_appendixsubsubsec (), |
---|
31 | cm_heading (), cm_chapheading (), cm_subheading (), cm_subsubheading (), |
---|
32 | cm_majorheading (), cm_raisesections (), cm_lowersections (), |
---|
33 | |
---|
34 | cm_ideprecated (); |
---|
35 | |
---|
36 | extern void |
---|
37 | sectioning_underscore (), insert_and_underscore (); |
---|
38 | |
---|
39 | extern int what_section (); |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | /* is needed in node.c */ |
---|
44 | extern int set_top_section_level (); |
---|
45 | |
---|
46 | extern void sectioning_html (); |
---|
47 | extern int what_section (); |
---|
48 | |
---|
49 | /* The argument of @settitle, used for HTML. */ |
---|
50 | extern char *title; |
---|
51 | |
---|
52 | |
---|
53 | /* Here is a structure which associates sectioning commands with |
---|
54 | an integer that reflects the depth of the current section. */ |
---|
55 | typedef struct |
---|
56 | { |
---|
57 | char *name; |
---|
58 | int level; /* I can't replace the levels with defines |
---|
59 | because it is changed during run */ |
---|
60 | int num; /* ENUM_SECT_NO means no enumeration... |
---|
61 | ENUM_SECT_YES means enumerated version |
---|
62 | ENUM_SECT_APP appendix (Character enumerated |
---|
63 | at first position */ |
---|
64 | int toc; /* TOC_NO means do not enter in toc; |
---|
65 | TOC_YES means enter it in toc */ |
---|
66 | } section_alist_type; |
---|
67 | |
---|
68 | extern section_alist_type section_alist[]; |
---|
69 | |
---|
70 | /* enumerate sections */ |
---|
71 | #define ENUM_SECT_NO 0 |
---|
72 | #define ENUM_SECT_YES 1 |
---|
73 | #define ENUM_SECT_APP 2 |
---|
74 | |
---|
75 | /* make entries into toc no/yes */ |
---|
76 | #define TOC_NO 0 |
---|
77 | #define TOC_YES 1 |
---|
78 | |
---|
79 | |
---|
80 | #endif /* not SECTIONING_H */ |
---|