You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.0 KiB

(*
* Copyright (c) 2009 - 2013 Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
type style =
| Boldface
| Roman
| Italics
(** Convert a string to a latex-friendly format *)
val convert_string : string -> string
(** Print a string in the given style, after converting it into latex-friendly format *)
val pp_string : style -> Format.formatter -> string -> unit
(** Print color command *)
val pp_color : Format.formatter -> color -> unit
(** Prelude for a latex file with the given author and title and table of contents flag *)
val pp_begin : Format.formatter -> (string * string * bool) -> unit
(** Epilogue for a latex file *)
val pp_end : Format.formatter -> unit -> unit
(** Section with the given title *)
val pp_section : Format.formatter -> string -> unit