yotamDvir / elm-katex / Katex.Configs.Human

You should use this module only if you need human configurations.

Understand Katex before reading on.

Why is this module necessary?

For example, let's say you want your lecture notes in both English and Hebrew. In this case, you can write both and show whichever you want, depending on the state of your app. See §Katex.Configs.Human in the README for this example in action.

Types


type alias Latex h =
Katex.Configs.Latex String h

A LaTeX instance.

Create LaTeX instance

human : (h -> String) -> Latex h

Like Katex.human, but instead of feeding it a string, you feed it a human-dependent string.

inline : String -> Latex h

Like Katex.inline.

display : String -> Latex h

Like Katex.display.

Process LaTeX instances

print : h -> Latex h -> String

Like Katex.print, but depends on the human configurations.

generate : (h -> Maybe Basics.Bool -> String -> a) -> h -> Latex h -> a

Like Katex.generate, but depends on the human configurations. The generating function has access to the human configurations, but this is usually unnecessary, in which case simply use a generating function which ignores its first argument.