mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-11 13:59:31 -06:00
13 lines
434 B
Plaintext
13 lines
434 B
Plaintext
resource Latex = open Prelude in {
|
|
oper
|
|
command : Str -> Str = \c -> "\\" + c ;
|
|
fun1 : Str -> Str -> Str = \f,x -> "\\" + f + "{" ++ x ++ "}" ;
|
|
fun2 : Str -> Str -> Str -> Str =
|
|
\f,x,y -> "\\" + f + "{" ++ x ++ "}{" ++ y ++ "}" ;
|
|
begin : Str -> Str = \e -> "\\begin{" + e + "}" ;
|
|
end : Str -> Str = \e -> "\\end{" + e + "}" ;
|
|
inEnv : Str -> Str -> Str = \e,s -> begin e ++ s ++ end e ;
|
|
}
|
|
|
|
|