An open API service indexing awesome lists of open source software.

https://github.com/dedbox/racket-texmath

Pseudo-(La)TeX mathematical notation for Racket Scribble docs
https://github.com/dedbox/racket-texmath

Last synced: 5 months ago
JSON representation

Pseudo-(La)TeX mathematical notation for Racket Scribble docs

Awesome Lists containing this project

README

          

# Mathematical notation for Scribble docs

TeXmath is a Racket library for typesetting mathematics in a LaTeX-like syntax.

## Example

Logical judgments as rules of inference

```
#lang scribble/base

@(require texmath)

@inferrule[
@${e_1 ↝ e_1'}
---------------------- "E-App1"
@${e_1 e_2 ↝ e_1' e_2}
]

@inferrule[
--------------------------------------- "E-AppAbs"
@${(λx_11.e_12) v_2 ↝ [x_11↦{}v_2]e_12}
]

@inferrule[
@${x \fresh}
---------------------------- "E-Def"
@${Σ ⊢ x←v ↝ [x{}↦{}v]Σ ⊢ Ø}
]

@inferrule[
@${Σ(x) = v}
---------------------
@${Σ,Γ ⊢ x ↝ Σ,Γ ⊢ v}
]

@inferrule[
@${\{x:T\} ∈ Γ}
--------------- "T-Var"
@${<Γ;x>:T}
]
```

![sample output](https://raw.githubusercontent.com/dedbox/racket-texmath/master/sample.png)