/* ** tr2latex - troff to LaTeX converter ** COPYRIGHT (C) 1987 Kamal Al-Yahya, 1991,1992 Christian Engel ** ** Module: tr2latex.c ** ** This module contains the main function inititating the translation ** and supporting the Usage. */ #define MAIN #include "getopt.h" #include "setups.h" #include "protos.h" #include const char *version = "2.6"; int man, /* option -m: manual page */ fontsize, /* option -9/-10/-11/-12: font size */ twoside, /* option -t: twoside */ piped_in; char *document = "article"; /* document type, see also -s option */ FILE *out_file; /* in case they can't use UN*X redirecting or piping */ char *prgname; char inbuf[MAXLEN], outbuf[MAXLEN]; static void usage (int exitcode) { printf ("tr2latex (c) 1986/1987 Kamal Al-Yahya, 1991 C. Engel, 2008..2016 Dirk Jagdmann\n" "Version %s\n", version); printf ("tr2latex - troff to LaTeX converter\n" "SYNTAX: tr2latex [-m] [-t] [-] [-s