Asymptote pre-processor for Euclidean geometry diagrams
Project description
TSQX
Asymptote preprocessor for Euclidean geometry diagrams descended from the older TSQ.
Installation
pip install tsqx
Or, Arch Linux users can use AUR.
Syntax highlighting
- NeoVim TreeSitter syntax file
- Older Vim syntax file (using regular expressions)
Documentation
See Wiki.
Example code
~triangle A B C
D ;= foot A B C
E := midpoint A--B
F' N = (rotate -30 E)(extension A (foot A B C) C E)
circumcircle A B C / 0.2 lightgray /
A--B--C--cycle
A--D
B--F' / dashed blue
Generated code:
pair A = dir(110);
pair B = dir(210);
pair C = dir(330);
pair D = foot(A, B, C);
pair E = midpoint(A--B);
pair F_prime = rotate(-30, E)*extension(A, foot(A, B, C), C, E);
filldraw(circumcircle(A, B, C), opacity(0.2)+lightgray, defaultpen);
draw(A--B--C--cycle);
draw(A--D);
draw(B--F_prime, dashed+blue);
dot("$A$", A, dir(A));
dot("$B$", B, dir(B));
dot("$C$", C, dir(C));
label("$D$", D, dir(D));
dot("$F'$", F_prime, plain.N);
Which makes the diagram:
Project details
Release history Release notifications | RSS feed
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 tsqx-1.0.0.tar.gz.
File metadata
- Download URL: tsqx-1.0.0.tar.gz
- Upload date:
- Size: 41.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dd179960cb1c332f54c9027a6c37ed840963820d635d54d996691c44398ac7b
|
|
| MD5 |
cc2b22eef7691d0c274a44eb3d26f0eb
|
|
| BLAKE2b-256 |
41dc4b6e39e550743bd37013a8df60ae29a9016a314c806a6db51710605fdf8b
|
Provenance
The following attestation bundles were made for tsqx-1.0.0.tar.gz:
Publisher:
release.yml on vEnhance/tsqx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsqx-1.0.0.tar.gz -
Subject digest:
8dd179960cb1c332f54c9027a6c37ed840963820d635d54d996691c44398ac7b - Sigstore transparency entry: 780135402
- Sigstore integration time:
-
Permalink:
vEnhance/tsqx@b34be5cadecf9a63b2bda35efdaf2ca6c16ffcca -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/vEnhance
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b34be5cadecf9a63b2bda35efdaf2ca6c16ffcca -
Trigger Event:
release
-
Statement type:
File details
Details for the file tsqx-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tsqx-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae8cb615c582f3b221d20028ef5644554e1f5807990eebd6c7883d50ad24b4a
|
|
| MD5 |
db3fba6f38d37066f383f5fa9b9fe5ab
|
|
| BLAKE2b-256 |
922333aa1908dbe60cc6f9cee04f99d5f54e71f7b8985e5412bb9383846b147d
|
Provenance
The following attestation bundles were made for tsqx-1.0.0-py3-none-any.whl:
Publisher:
release.yml on vEnhance/tsqx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsqx-1.0.0-py3-none-any.whl -
Subject digest:
3ae8cb615c582f3b221d20028ef5644554e1f5807990eebd6c7883d50ad24b4a - Sigstore transparency entry: 780135403
- Sigstore integration time:
-
Permalink:
vEnhance/tsqx@b34be5cadecf9a63b2bda35efdaf2ca6c16ffcca -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/vEnhance
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b34be5cadecf9a63b2bda35efdaf2ca6c16ffcca -
Trigger Event:
release
-
Statement type: