definition: |
string2tex :: String -> String string2tex = concatMap char2tex where char2tex c | c==chr 228 = "\\\"a" | c==chr 246 = "\\\"o" | c==chr 252 = "\\\"u" | c==chr 196 = "\\\"A" | c==chr 214 = "\\\"O" | c==chr 220 = "\\\"U" | c==chr 223 = "\\ss{}" | c=='\\' = "{\\symbol{92}}" | c=='^' = "{\\symbol{94}}" | c=='~' = "{\\symbol{126}}" | c=='<' = "{$<$}" | c=='>' = "{$>$}" | c=='_' = "\\_" | c=='#' = "\\#" | c=='$' = "\\$" | c=='%' = "\\%" | c=='{' = "\\{" | c=='}' = "\\}" | c=='&' = "\\&" | otherwise = [c] |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
-- convert string into TeX: |
failfree: |
() |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{() |-> {.._#lambda508}} |
name: |
string2tex |
precedence: |
no precedence defined |
result-values: |
{.._#lambda508} |
signature: |
String -> String |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |