Skip to main content

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

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

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

tsqx-1.0.0.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsqx-1.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

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

Hashes for tsqx-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8dd179960cb1c332f54c9027a6c37ed840963820d635d54d996691c44398ac7b
MD5 cc2b22eef7691d0c274a44eb3d26f0eb
BLAKE2b-256 41dc4b6e39e550743bd37013a8df60ae29a9016a314c806a6db51710605fdf8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsqx-1.0.0.tar.gz:

Publisher: release.yml on vEnhance/tsqx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tsqx-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae8cb615c582f3b221d20028ef5644554e1f5807990eebd6c7883d50ad24b4a
MD5 db3fba6f38d37066f383f5fa9b9fe5ab
BLAKE2b-256 922333aa1908dbe60cc6f9cee04f99d5f54e71f7b8985e5412bb9383846b147d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsqx-1.0.0-py3-none-any.whl:

Publisher: release.yml on vEnhance/tsqx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page