home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / tr2latex / macros.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-06-30  |  2.0 KB  |  58 lines

  1. /*
  2. This file contains the list of non-math macros and plain troff macros.
  3. Do NOT forget to put the dot for the troff macros, and the backslash
  4. for TeX macros (two backslashes, one for escape).
  5. The third column in the list is 0 for macros that have no arguments
  6. and either 1 or 2 for those that do. If it is 1, then only one line
  7. will be read as an argument. If it is 2, then lines will be read until
  8. properly terminated. Arguments for ms macros are terminated by an ms macro
  9. (e.g. .PP). Plain troff macros are terminated after reading the desired number
  10. of lines specified by the macro (e.g. .ce 5   will centerline 5 lines).
  11. The fourth column specifies whether the macro implies a paragraph break
  12. (par > 1) or not (par = 0). This is needed to terminate some environments.
  13. If .LP, or .PP, par=1; if .IP, par=2; if .TP, par=3; if .QP, par=4.
  14. */
  15. struct macro_table {
  16.     char *troff_mac, *tex_mac;
  17.     int arg, macpar;
  18. } macro[] = {
  19.  
  20. /*  troff macro        TeX macro           argument    par    */
  21.     ".1C",         "\\onecolumn",            0,    1,
  22.     ".2C",         "\\twocolumn",            0,    1,
  23.     ".AE",         "\\end{abstract}",        0,    1,
  24.     ".AI",         "\\authoraff",            2,    1,
  25.     ".AU",         "\\author",            2,    1,
  26.     ".Ac",         "\\ACK",              0,    1,
  27.     ".B1",         "\\boxit{",            0,    0,
  28.     ".B2",         "}",                0,    0,
  29.     ".DE",         "\\displayend",        0,    1,
  30.     ".DS",         "\\displaybegin",        0,    1,
  31.     ".FE",         "}",                0,    0,
  32.     ".FS",         "\\footnote{",            0,    0,
  33.     ".Ic",         "\\caption{",            0,    1,
  34.     ".Ie",         "}\\end{figure}",        0,    1,
  35.     ".Is",         "\\begin{figure}",        0,    1,
  36.     ".KS",         "{\\nobreak",            0,    0,
  37.     ".LP",         "\\par\\noindent",        0,    1,
  38.     ".MH",         "\\mhead",            2,    1,
  39.     ".NH",         "\\section",            1,    1,
  40.     ".PP",         "\\par",            0,    1,
  41.     ".QE",         "\\end{quotation}",        0,    1,
  42.     ".QS",         "\\begin{quotation}",        0,    1,
  43.     ".SH",         "\\shead",            1,    1,
  44.     ".TH",         "\\phead",            1,    0,
  45.     ".TL",         "\\title",            2,    1,
  46.     ".UC",         "",                0,    0,
  47.     ".UL",         "\\undertext",            1,    0,
  48.     ".bp",         "\\newpage",            0,    1,
  49.     ".br",         "\\nwl",            0,    0,
  50.     ".ce",         "\\cntr",            2,    0,
  51.     ".cu",         "\\undertext",            2,    0,
  52.     ".fi",         "\\fill",            0,    0,
  53.     ".na",         "\\raggedright",        0,    0,
  54.     ".nf",         "\\nofill",            0,    0,
  55.     ".ns",         "",                0,    0,
  56.     ".ul",         "\\undertext",            2,    0
  57. };
  58.