-
Notifications
You must be signed in to change notification settings - Fork 27
/
latexmacros.mli
60 lines (46 loc) · 2.33 KB
/
latexmacros.mli
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
(**************************************************************************)
(* bibtex2html - A BibTeX to HTML translator *)
(* Copyright (C) 1997-2014 Jean-Christophe Filliâtre and Claude Marché *)
(* *)
(* This software is free software; you can redistribute it and/or *)
(* modify it under the terms of the GNU General Public *)
(* License version 2, as published by the Free Software Foundation. *)
(* *)
(* This software is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *)
(* *)
(* See the GNU General Public License version 2 for more details *)
(* (enclosed in the file GPL). *)
(**************************************************************************)
(*s This module provides a table to store the translations of LaTeX
macros. A translation is a list of actions of the following type
[action]. *)
(* This code is an adaptation of a code written by Xavier Leroy in
1995-1997, in his own home-made latex2html translator. See
@inproceedings{Leroy-latex2html,
author = "Xavier Leroy",
title = "Lessons learned from the translation of
documentation from \LaTeX\ to {HTML}",
booktitle = "ERCIM/W4G Int. Workshop on WWW
Authoring and Integration Tools",
year = 1995,
month = feb}
*)
type action =
| Print of string
| Print_arg
| Skip_arg
| Raw_arg of (string -> unit)
| Parameterized of (string -> action list)
| Recursive of string
val def : string -> action list -> unit
val find_macro: string -> action list
val init_style_macros : string -> unit
(*s HTML entities *)
val html_entities : unit -> unit
val unicode_entities : unit -> unit
(*s Utility functions used in the definition of translations. *)
val out_channel : out_channel ref
val print_s : string -> unit
val print_c : char -> unit