home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / word2x0a.zip / source / fmt-latex.h < prev    next >
C/C++ Source or Header  |  1998-04-20  |  920b  |  46 lines

  1. /* $Id: fmt-latex.h,v 1.8 1997/04/22 20:09:49 dps Exp $ */
  2. /* Shared stuff for the *TeX output format */
  3.  
  4. #ifndef __fmt_latex_h__
  5. #define __fmt_latex_h__
  6. #include "tblock.h"
  7. #include "interface.h"
  8. #include "latex-table.h"
  9.  
  10. /* Anything shorter than this is not a real paragraph */
  11. #define PAR_TRESHOLD_LEN 70
  12. /* Less than this is not a heading */
  13. #define HEADING_TRESHOLD_LEN 10
  14.  
  15. /* Type */
  16. struct embed
  17. {
  18.     const char *key;
  19.     int key_len;
  20.     void (*handle)(const char *txt, const docfmt *fmt, FILE *out,
  21.            void *d);
  22. };
  23.  
  24.  
  25. /* Local data */
  26. struct latex_data
  27. {
  28.     latex_table *tabl;
  29.     int col;
  30.     int row;
  31.     const char *last_tc;
  32.     struct unit_info unit_d;
  33.     int par_flg;
  34.     int list_flg;
  35. };
  36.  
  37. /* latex-fmt.cc */
  38. extern tblock *__latex_do_map(const char *s);
  39.  
  40. /* latex-embed.cc */
  41. extern void ltx_embed(const tok_seq::tok *t, const docfmt *fmt, FILE *out,
  42.               void *d);
  43.  
  44. #endif  /* __fmt_latex_h__ */
  45.  
  46.