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
76
77
78
79
80
|
/* sectioning.h -- all related stuff @chapter, @section... @contents
$Id: sectioning.h,v 1.1 2002/08/25 23:38:39 karl Exp $
Copyright (C) 1999 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Written by Karl Heinz Marbaise <kama@hippo.fido.de>. */
#ifndef SECTIONING_H
#define SECTIONING_H
/* Sectioning. */
extern void
cm_chapter (), cm_unnumbered (), cm_appendix (), cm_top (),
cm_section (), cm_unnumberedsec (), cm_appendixsec (),
cm_subsection (), cm_unnumberedsubsec (), cm_appendixsubsec (),
cm_subsubsection (), cm_unnumberedsubsubsec (), cm_appendixsubsubsec (),
cm_heading (), cm_chapheading (), cm_subheading (), cm_subsubheading (),
cm_majorheading (), cm_raisesections (), cm_lowersections (),
cm_ideprecated ();
extern void
sectioning_underscore (), insert_and_underscore ();
extern int what_section ();
/* is needed in node.c */
extern int set_top_section_level ();
extern void sectioning_html ();
extern int what_section ();
/* The argument of @settitle, used for HTML. */
extern char *title;
/* Here is a structure which associates sectioning commands with
an integer that reflects the depth of the current section. */
typedef struct
{
char *name;
int level; /* I can't replace the levels with defines
because it is changed during run */
int num; /* ENUM_SECT_NO means no enumeration...
ENUM_SECT_YES means enumerated version
ENUM_SECT_APP appendix (Character enumerated
at first position */
int toc; /* TOC_NO means do not enter in toc;
TOC_YES means enter it in toc */
} section_alist_type;
extern section_alist_type section_alist[];
/* enumerate sections */
#define ENUM_SECT_NO 0
#define ENUM_SECT_YES 1
#define ENUM_SECT_APP 2
/* make entries into toc no/yes */
#define TOC_NO 0
#define TOC_YES 1
#endif /* not SECTIONING_H */
|