Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nyuichi/satysfi-base
complementary collection of useful functions and modules for SATySFi
https://github.com/nyuichi/satysfi-base
satysfi
Last synced: about 2 months ago
JSON representation
complementary collection of useful functions and modules for SATySFi
- Host: GitHub
- URL: https://github.com/nyuichi/satysfi-base
- Owner: nyuichi
- License: mit
- Created: 2019-07-12T07:01:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-07T11:43:19.000Z (9 months ago)
- Last Synced: 2024-10-27T13:29:24.912Z (about 2 months ago)
- Topics: satysfi
- Language: JavaScript
- Homepage:
- Size: 997 KB
- Stars: 31
- Watchers: 8
- Forks: 11
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-satysfi - satysfi-lib - complementary collection of useful functions/modules for SATySFi (Uncategorized / Uncategorized)
README
# satysfi-base
[![build status](https://github.com/nyuichi/satysfi-base/workflows/CI/badge.svg)](https://github.com/nyuichi/satysfi-base/actions?query=workflow%3ACI)
## TL;DR
```ocaml
let get-image ratio path =
path |> String.append `images/`
|> Image.of-jpeg
|> Inline.of-image (13.5cm |> Length.scale ratio)
inctx |> Inline.read {
The quick brown fox jumps over the lazy dog.
\eval(Inline.mandatory-break);
\eval-const(`fox.jpg` |> get-image 0.45);
}
```## What is satysfi-base
This repository contains a collection of utility functions and modules for SATySFi.
Because the library bundled with the default installation configuration of SATySFi is currently not rich enough, this project aims to provide a complementary library sufficient for most situations in typesetting.Our repository contains:
- basic types and utilities (e.g. String, Char, etc)
- data structures (e.g. Array, Map, etc)
- program controls (e.g. Ref, Lazy, etc)
- text processing (e.g. RegExp, Lexer, Parser, etc)
- extra typesetting functions (e.g. Inline, Pager, etc)We also provide some specific packages for typesetting:
- `derive`: display proof trees
- `code2`: display program sources with syntax highlight## Installation
Easy installation using satyrographos:
```console
$ opam install satysfi-base
```## Contribution
Any pull requests and/or issues are welcome.
For the moment, we also give access rights to the repository to everyone who is willing to contribute us.
You can freely make changes, create branches, and push them.
If you are intersted in development of this project, please contact us.## License
All files in this repository are licensed under MIT.