ideas-1.7: Feedback services for intelligent tutoring systems

Ideas.Text.Latex

Description

Support for LaTeX.

Synopsis

data Latex Source #

Instances

Methods

showsPrec :: Int -> Latex -> ShowS #

show :: Latex -> String #

showList :: [Latex] -> ShowS #

fromString :: String -> Latex #

(<>) :: Latex -> Latex -> Latex #

sconcat :: NonEmpty Latex -> Latex #

stimes :: Integral b => b -> Latex -> Latex #

mempty :: Latex #

mappend :: Latex -> Latex -> Latex #

mconcat :: [Latex] -> Latex #

class ToLatex a where Source #

Minimal complete definition

toLatex | toLatexPrec

toLatex :: a -> Latex Source #

toLatexPrec :: Int -> a -> Latex Source #

toLatexList :: [a] -> Latex Source #

toLatex :: Char -> Latex Source #

toLatexPrec :: Int -> Char -> Latex Source #

toLatexList :: [Char] -> Latex Source #

toLatex :: Int -> Latex Source #

toLatexPrec :: Int -> Int -> Latex Source #

toLatexList :: [Int] -> Latex Source #

toLatex :: [a] -> Latex Source #

toLatexPrec :: Int -> [a] -> Latex Source #

toLatexList :: [[a]] -> Latex Source #

toLatex :: Maybe a -> Latex Source #

toLatexPrec :: Int -> Maybe a -> Latex Source #

toLatexList :: [Maybe a] -> Latex Source #

(<>) :: Semigroup a => a -> a -> a infixr 6 #

An associative operation.

(a <> b) <> c = a <> (b <> c)

<>

If a is also a Monoid we further require

a

Monoid

(<>) = mappend

mappend

array :: String -> [[Latex]] -> Latex Source #

commas :: [Latex] -> Latex Source #

brackets :: Latex -> Latex Source #

parens :: Latex -> Latex Source #

command :: String -> Latex Source #