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.
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.
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.
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.
Converts an S-expression to JavaScript.
Converts an S-expression to JavaScript.
(->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} ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close