module Verbatim:sig
..end
Verbatim modes for the Melt pre-processor.
These modes are the same as the ones in the Latex.Verbatim
module,
except that they work with the Melt pre-processor.
typemelt_verbatim_string =
[ `C of Latex.t | `M of Latex.t | `T of Latex.t | `V of string ] list
typelatex_verbatim_function =
string -> Latex.t
typemelt_verbatim_function =
melt_verbatim_string -> Latex.t
val convert : latex_verbatim_function -> melt_verbatim_function
Convert a verbatim function of the Latex
module to a function
usable with the Melt pre-processor. The original function is applied to
each quotations; anti-quotations are left as it, and the resulting list
is concatenated.
Latex.Verbatim
val trim : char list ->
melt_verbatim_string -> melt_verbatim_string
The trim
function will only be applied at the beginning
of the first `V
item and at the end of the last `V
item.
val split_lines : melt_verbatim_string -> melt_verbatim_string list
val verbatim : melt_verbatim_function
val regexps : (Str.regexp * (string -> Latex.t)) list ->
(string -> Latex.t) -> melt_verbatim_function
val keywords : ?apply:(Latex.t -> Latex.t) ->
string list -> melt_verbatim_function
val pseudocode : ?trim:(melt_verbatim_string ->
melt_verbatim_string) ->
?id_regexp:Str.regexp ->
?kw_apply:(Latex.t -> Latex.t) ->
?id_apply:(Latex.t -> Latex.t) ->
?rem_apply:(string -> Latex.t) ->
?keywords:string list ->
?symbols:(string * Latex.t) list ->
?keyword_symbols:(string * Latex.t) list ->
?underscore:Str.regexp -> melt_verbatim_function