Liking cljdoc? Tell your friends :D

emmy.expression.render

Functions and utilities for rendering symbolic expressions to various backends like LaTeX, infix or Javascript.

Functions and utilities for rendering symbolic expressions to various backends
like LaTeX, infix or Javascript.
raw docstring

*TeX-sans-serif-symbols*clj/s

If true, ->TeX will render symbols with more than 1 character using a sans-serif typestyle via \mathsf. Defaults to true.

If true, [[->TeX]] will render symbols with more than 1 character
using a sans-serif typestyle via `\mathsf`. Defaults to true.
sourceraw docstring

*TeX-vertical-down-tuples*clj/s

If true, ->TeX will render down tuples as vertical matrices with square braces. Defaults to false.

If true, [[->TeX]] will render down tuples as vertical matrices with square
braces. Defaults to false.
sourceraw docstring

->infixclj/s

Converts an S-expression to printable infix form. Numeric exponents are written as superscripts. Partial derivatives get subscripts.

Converts an S-expression to printable infix form. Numeric exponents are
written as superscripts. Partial derivatives get subscripts.
sourceraw docstring

->JavaScriptclj/s

Converts an S-expression to JavaScript.

Converts an S-expression to JavaScript.
sourceraw docstring

->TeXclj/s

(->TeX expr & {:keys [equation]})

Convert the given expression to TeX format, as a string.

If you set the :equation keyword argument to a truthy value, the result will be wrapped in an equation environment. :equation <string> will insert a \label{<string>} entry inside the equation environment.

For example:

(let [expr (+ 'x 'xy)]
  (println
    (->TeX expr :equation "label!")))

\begin{equation}
\label{label!}
x + y
\end{equation}
Convert the given expression to TeX format, as a string.

If you set the `:equation` keyword argument to a truthy value, the result will
be wrapped in an equation environment. `:equation <string>` will insert a
`\label{<string>}` entry inside the equation environment.

For example:

```clojure
(let [expr (+ 'x 'xy)]
  (println
    (->TeX expr :equation "label!")))

\begin{equation}
\label{label!}
x + y
\end{equation}
```
sourceraw docstring

infix-sym->unicodeclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close