notabene is a python library that handles your latex formulas... Indeed, we use python to express formulas in a readable way, and the translation into latex is done automatically. You benefit from python functionalities as a programming language : define variables, functions, etc....
Shortly, you write this in python :
A, B = nb.to('A B')
defs['Cartesian'] = nb.sets.isin([x, y, z],
nb.sets.cartesian(A, B, nb.sets.Q))
and you get this after the latex compiling:
A comprehensive set of examples are provided in the example section.
python3 -m pip install git+https://github.com/HerveFrezza-Buet/notabene
Read and run the examples in the example section.
Each example produces two files:
- xxx.tex, this the file you can include (\input) in your document in order to use what you have defined.
- xxx-cheatsheet.tex, this file is generated by the examples (see last line). It uses xxx.tex the same way your document will, in order to compose a cheatsheet. You can compile this file with latex and see the result.
For each example, cheat sheets are given in the repository (for those who want to have a look at the result without compiling the examples).