blob: 96977c1d144f06ef8bf4d0b7701bdc3ef83a8dbb (
plain)
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
|
/* $Id: fmt-latex.h,v 1.8 1997/04/22 20:09:49 dps Exp $ */
/* Shared stuff for the *TeX output format */
#ifndef __fmt_latex_h__
#define __fmt_latex_h__
#include "tblock.h"
#include "interface.h"
#include "latex-table.h"
/* Anything shorter than this is not a real paragraph */
#define PAR_TRESHOLD_LEN 70
/* Less than this is not a heading */
#define HEADING_TRESHOLD_LEN 10
/* Type */
struct embed
{
const char *key;
int key_len;
void (*handle)(const char *txt, const docfmt *fmt, FILE *out,
void *d);
};
/* Local data */
struct latex_data
{
latex_table *tabl;
int col;
int row;
const char *last_tc;
struct unit_info unit_d;
int par_flg;
int list_flg;
};
/* latex-fmt.cc */
extern tblock *__latex_do_map(const char *s);
/* latex-embed.cc */
extern void ltx_embed(const tok_seq::tok *t, const docfmt *fmt, FILE *out,
void *d);
#endif /* __fmt_latex_h__ */
|