package htmlfromtexbooks

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Takes the Parsed AST and transforms it into human-readable and valid HTML files

val print_table_of_content : Parser.structure list -> int -> string

Prints the table of content : all the chapters / section / subsection / subsubsection numeroted

val parse_to_html : ?min_chap:int -> bool -> Parser.structure list -> string

Parses an AST to HTML,

  • parameter min_chap

    : the first chapter to be written,

    @param write_before

    : writing before the first valid chapter

val prepare_body : string -> string -> string -> string

Prepare the body of the HTML file, title, body markups, and adds the style, table of contents and body

val pre_parse_file : string -> Parser.structure list

Performs the first transformation : from reading the file to rendering it html printing ready

val print_file_in_html : ?min_chap:int -> ?write_before:bool -> string -> string -> unit

Writes the HTML translation of the given TeX file in the outfile.

  • parameter min_chap

    is the first chapter to be writen,

    @param

    write_before determines if the parser writes what comes before the first valid chapter

OCaml

Innovation. Community. Security.