3 /* sectioning.h -- all related stuff @chapter, @section... @contents
4 Id: sectioning.h,v 1.5 2004/04/11 17:56:47 karl Exp
6 Copyright (C) 1999, 2003 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */
30 extern void cm_chapter (void),
36 extern void cm_section (void),
37 cm_unnumberedsec (void),
38 cm_appendixsec (void);
41 extern void cm_subsection (void),
42 cm_unnumberedsubsec (void),
43 cm_appendixsubsec (void);
46 extern void cm_subsubsection (void),
47 cm_unnumberedsubsubsec (void),
48 cm_appendixsubsubsec (void);
51 extern void cm_heading (void),
52 cm_chapheading (void),
54 cm_subsubheading (void),
55 cm_majorheading (void);
57 extern void cm_raisesections (void),
58 cm_lowersections (void),
59 cm_ideprecated (int arg
, int start
, int end
);
62 sectioning_underscore (char *cmd
),
63 insert_and_underscore (int level
, char *cmd
);
65 /* needed in node.c */
66 extern int set_top_section_level (int level
);
68 extern void sectioning_html (int level
, char *cmd
);
69 extern int what_section (char *text
, char **secname
);
70 extern char *current_chapter_number (void),
71 *current_sectioning_number (void),
72 *current_sectioning_name (void);
74 /* The argument of @settitle, used for HTML. */
78 /* Here is a structure which associates sectioning commands with
79 an integer that reflects the depth of the current section. */
83 int level
; /* I can't replace the levels with defines
84 because it is changed during run */
85 int num
; /* ENUM_SECT_NO means no enumeration...
86 ENUM_SECT_YES means enumerated version
87 ENUM_SECT_APP appendix (Character enumerated
89 int toc
; /* TOC_NO means do not enter in toc;
90 TOC_YES means enter it in toc */
93 extern section_alist_type section_alist
[];
95 /* enumerate sections */
96 #define ENUM_SECT_NO 0
97 #define ENUM_SECT_YES 1
98 #define ENUM_SECT_APP 2
100 /* make entries into toc no/yes */
105 #endif /* not SECTIONING_H */