Pygments lexer for Rzk language (of proof assistant for synthetic ∞-categories).
Project description
Pygments higlighter for Rzk
This is a simple Pygments higlighter for Rzk, which can be used with minted package when writing rzk code in LaTeX or with MkDocs to highlight code in blocks when rendering literate Rzk Markdown files.
How to use
Install
Clone this repository, and install the highlighter using pip installer:
git clone https://github.com/rzk-lang/pygments-rzk.git
cd pygments-rzk # enter repository root
pip install . # install using pip
Use in MkDocs
To be done.
Use in LaTeX (via minted)
In your LaTeX document:
- Include
mintedpackage:
\package{minted}
- Use
mintedenvironment withrzklanguage, for example:
\begin{frame}[fragile]
\frametitle{\textsc{Rzk} highlighting in LaTeX with \texttt{minted}}
A basic example:
\tiny
\begin{minted}[linenos,frame=leftline,mathescape]{rzk}
#lang rzk-1
#section path-algebra
#variable A : U
#variables x y z : A
-- path reversal
#define rev uses (A x y)
(p : x = y) -- A path from x to y in A.
: y = x -- The reversal will be defined by path induction on p.
:= idJ(A, x, \y' p' -> y' = x, refl, y, p)
-- path composition by induction on the second path
#define concat
(p : x = y) -- A path from x to y in A.
(q : y = z) -- A path from y to z in A.
: (x = z)
:= idJ(A, y, \z' q' -> (x = z'), p, z, q)
#end path-algebra
\end{minted}
\end{frame}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygments-rzk-0.1.3.tar.gz.
File metadata
- Download URL: pygments-rzk-0.1.3.tar.gz
- Upload date:
- Size: 322.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13391cb320e3cefc9b54e1fb5ccf11fc8f825cda90ed9f1526b1722442a3895d
|
|
| MD5 |
7aac21149642b8f5fadef15668f6c2b0
|
|
| BLAKE2b-256 |
e771291f27e418b8cbd20c859282c45967882786ea90710db90573feb22723ce
|
File details
Details for the file pygments_rzk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pygments_rzk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f10b24fd5bef1fe814d7732ef592dbc1802d45967fc47254f01f2ae61fca4933
|
|
| MD5 |
47dd42e3b935b92c69c4eb66c16a17f7
|
|
| BLAKE2b-256 |
6ae2709129d6f424b32a5d04b288a06d9e4fa3ef73920b32f8baf51f727578de
|