Skip to main content

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

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:

Diagram

Metadata

Release files for tsqx 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tsqx 1.0.0
File Size Uploaded
tsqx-1.0.0.tar.gz 41.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tsqx 1.0.0
File Interpreter ABI Platform
tsqx-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.9 kB

Release files / tsqx-1.0.0.tar.gz

Download URL tsqx-1.0.0.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8dd179960cb1c332f54c9027a6c37ed840963820d635d54d996691c44398ac7b
BLAKE2b-256 checksum
How to use checksums
41dc4b6e39e550743bd37013a8df60ae29a9016a314c806a6db51710605fdf8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 27, 2025.

Transparency log

Release files / tsqx-1.0.0-py3-none-any.whl

Download URL tsqx-1.0.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ae8cb615c582f3b221d20028ef5644554e1f5807990eebd6c7883d50ad24b4a
BLAKE2b-256 checksum
How to use checksums
922333aa1908dbe60cc6f9cee04f99d5f54e71f7b8985e5412bb9383846b147d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 27, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page