package catala

  1. Overview
  2. Docs

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

module Pos = Utils.Pos
module Cli = Utils.Cli
module Errors = Utils.Errors
module A = Surface.Ast
module R = Re.Pcre
module C = Cli

Helpers

val pre_latexify : string -> string

Espaces various LaTeX-sensitive characters

val wrap_latex : string list -> string option -> C.backend_lang -> Stdlib.Format.formatter -> (Stdlib.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.

val math_syms_replace : string -> string

Replaces math operators by their nice unicode counterparts

Weaving

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

API

val ast_to_latex : C.backend_lang -> Stdlib.Format.formatter -> A.program -> unit