diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/tr2latex/setups.h |
Initial commit
Diffstat (limited to 'support/tr2latex/setups.h')
-rw-r--r-- | support/tr2latex/setups.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/support/tr2latex/setups.h b/support/tr2latex/setups.h new file mode 100644 index 0000000000..8232e89355 --- /dev/null +++ b/support/tr2latex/setups.h @@ -0,0 +1,64 @@ +#ifndef SETUPS__H +#define SETUPS__H + +/* +** tr2latex - troff to LaTeX converter +** COPYRIGHT (C) 1987 Kamal Al-Yahya, 1991,1992 Christian Engel +** +** Module: setups.h +** +** setup file +*/ + +#include <ctype.h> +#include <errno.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <time.h> + +#define MAXLEN (1024*1024) /* maximum length of document */ +#define MAXWORD 250 /* maximum word length */ +#define MAXLINE 500 /* maximum line length */ +#define MAXDEF 200 /* maximum number of defines */ +#define MAXARGS 128 /* maximal number of arguments */ + +#define EOS '\0' /* end of string */ + +#ifdef MAIN /* can only declare globals once */ +# define GLOBAL +#else +# define GLOBAL extern +#endif + +GLOBAL int math_mode, /* math mode status */ + de_arg, /* .de argument */ + IP_stat[20], /* IP status */ + QP_stat, /* QP status */ + TP_stat, /* TP status */ + RSRE; /* block indentation level */ + +GLOBAL int debug_o; + +GLOBAL struct defs { + char *def_macro; + char *replace; + int illegal; +} def[MAXDEF]; + +GLOBAL struct mydefs { + char *def_macro; + char *replace; + int illegal; + int arg_no; + int par; /* if it impiles (or contains) a par break */ +} mydef[MAXDEF]; + +GLOBAL struct measure { + char old_units[MAXWORD]; float old_value; + char units[MAXWORD]; float value; + char def_units[MAXWORD]; /* default units */ + int def_value; /* default value: 0 means take last one */ +} linespacing, indent, tmpind, space, vspace; + +#endif |