summaryrefslogtreecommitdiff
path: root/next-lib/src/prelude/Latex.gf
blob: 2fd2f9ec8fb4d6dfab1af690e649814f035f0e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 ;
}