package htmlfromtexbooks

  1. Overview
  2. Docs
From TeX To Human-Readable HTML

Install

Dune Dependency

Authors

Maintainers

Sources

v3.3.2.tar.gz
md5=8eafd939e9dbcb31919c5be0ed144840
sha512=4e7d13452e0a6b358e013711085500d82faf034eb03845be7de86a631fbc7b66a9aede7eba63cfd35460992c16e74de6c7db9aa152234f7dbc3acf9ab31c12ee

doc/htmlfromtexbooks.lib/Htmlfromtexbooks/Htmlgen/index.html

Module Htmlfromtexbooks.HtmlgenSource

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

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

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

Sourceval 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

Sourceval 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

Sourceval pre_parse_file : string -> Parser.structure list

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

Sourceval 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.