package odoc

  1. Overview
  2. Docs
OCaml documentation generator

Install

dune-project
 Dependency

Authors

Maintainers

Sources

odoc-2.1.1.tbz
sha256=f574dbd28cd0fc3a2b95525c4bb95ddf6d1f6408bb4fe12157fa537884f987fd
sha512=1c545c281a7022a167f028fff8cec6fb3f2f82da0881431be74e7a4281c5353ed83bfbdb4d9d9e08af6755dbe3505c052c5e5b58cdeb08c57aed5e89c0f15e91

doc/odoc.latex/Odoc_latex/Raw/index.html

Module Odoc_latex.RawSource

Raw latex primitives:

  • macro and environment definitions
  • text escaping
Sourcetype pr = Format.formatter -> unit

Helper types

Sourcetype 'a with_options = ?options:pr list -> 'a
Sourcetype ('a, 'b) tr = 'a Fmt.t -> 'b Fmt.t
Sourcetype 'a t = ('a, 'a) tr
Sourcemodule Escape : sig ... end
Sourceval rightarrow : pr
Sourceval label : string Fmt.t
Sourceval verbatim : string Fmt.t
Sourceval pageref_star : string Fmt.t
Sourceval hyperref : string -> 'a t
Sourceval href : string -> 'a t
Sourceval ref : string Fmt.t
Sourceval url : string Fmt.t
Sourceval footnote : string Fmt.t
Sourceval emph : 'a t
Sourceval bold : 'a t
Sourceval subscript : 'a t
Sourceval superscript : 'a t
Sourceval section : 'a t
Sourceval subsection : 'a t
Sourceval subsubsection : 'a t
Sourceval paragraph : 'a t
Sourceval enumerate : 'a t
Sourceval itemize : 'a t
Sourceval description : ('a, ('a * 'a) list) tr
Sourceval item : 'a t with_options
Sourceval small_table : ('a, 'a list list) tr
Sourceval input : Fpath.t Fmt.t

Required OCaml-specific primitives

All the macro should be implemented as "ocaml"-suffixed macro in the latex preamble

Sourceval inline_code : 'a t

Code block customization

Sourceval code_fragment : 'a t
Sourceval code_block : 'a t

Package-dependent primitives

Sourceval indent : 'a t

expected to be implemented with changepage/adjustwidth

Sourceval ocamltabular : column_desc:pr -> 'a t

Any tabular implementation that works well with at most 10 rows

Tags

Sourceval ocamltag : string -> 'a t

tag (e.g keyword, type-var, ...) are rendered to

\ocamltag{tagname}{content}