forked from magsilva/latex2rtf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.h
53 lines (48 loc) · 1.45 KB
/
commands.h
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
#ifndef _INCLUDED_COMMANDS_H
#define _INCLUDED_COMMANDS_H 1
#define PREAMBLE_MODE 1
#define DOCUMENT_MODE 2
#define ITEMIZE_MODE 3
#define ENUMERATE_MODE 4
#define DESCRIPTION_MODE 5
#define INPARAENUM_MODE 6
#define LETTER_MODE 8
#define IGNORE_MODE 9
#define HYPERLATEX_MODE 10
#define FIGURE_MODE 11
#define GERMAN_MODE 12
#define FRENCH_MODE 13
#define RUSSIAN_MODE 14
#define GENERIC_MODE 15
#define CZECH_MODE 16
#define APACITE_MODE 17
#define NATBIB_MODE 18
#define HARVARD_MODE 19
#define AUTHORDATE_MODE 20
#define VERSE_MODE 21
#define VERBATIM_MODE 22
#define QUOTE_MODE 23
#define QUOTATION_MODE 24
#define BIBLIOGRAPHY_MODE 25
#define HYPERREF_MODE 26
#define ACRONYM_MODE 27
#define SPACING_MODE 28
#define ON 0x4000
#define OFF 0x0000
void PushEnvironment(int code);
void PopEnvironment(void);
int CallCommandFunc(char *cCommand);
void CallParamFunc(char *cCommand, int AddParam);
int CurrentEnvironmentCount(void);
/*
* move this here to associate the CommandArray
* with the implementation of the commands
* i.e. place the array for the acronym commands
* in acronyms.c
*/
typedef struct commandtag {
char *cmd_name; /* LaTeX command name without \ */
void (*func) (int); /* function to convert LaTeX to RTF */
int param; /* used in various ways */
} CommandArray;
#endif