package catala

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

Module Literate.LatexSource

This modules weaves the source code and the legislative text together into a document that law professionals can understand.

Sourcemodule Pos = Utils.Pos
Sourcemodule Cli = Utils.Cli
Sourcemodule Errors = Utils.Errors
Sourcemodule R = Re.Pcre
Sourcemodule C = Cli

Helpers

Sourceval pre_latexify : string -> string

Espaces various LaTeX-sensitive characters

Sourceval wrap_latex : string list -> string option -> C.backend_lang -> Format.formatter -> (Format.formatter -> unit) -> unit

Usage: wrap_latex source_files custom_pygments language fmt wrapped

Prints an LaTeX complete documùent structure around the wrapped content.

Sourceval math_syms_replace : string -> string

Replaces math operators by their nice unicode counterparts

Weaving

Sourceval law_article_item_to_latex : C.backend_lang -> Format.formatter -> A.law_article_item -> unit
Sourceval law_structure_to_latex : C.backend_lang -> Format.formatter -> A.law_structure -> unit
Sourceval program_item_to_latex : C.backend_lang -> Format.formatter -> A.program_item -> unit

API

Sourceval ast_to_latex : C.backend_lang -> Format.formatter -> A.program -> unit
OCaml

Innovation. Community. Security.