summaryrefslogtreecommitdiff
path: root/support/word2x/fmt-latex.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/word2x/fmt-latex.h
Initial commit
Diffstat (limited to 'support/word2x/fmt-latex.h')
-rw-r--r--support/word2x/fmt-latex.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/support/word2x/fmt-latex.h b/support/word2x/fmt-latex.h
new file mode 100644
index 0000000000..96977c1d14
--- /dev/null
+++ b/support/word2x/fmt-latex.h
@@ -0,0 +1,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__ */
+