Skip to main content

Extract text from SVG figures into editable Typst overlays while preserving the original vector graphics.

Project description

vec2typst

Extract text from SVG figures into editable Typst overlays while preserving the original vector graphics. A Typst equivalent of Inkscape's PDF+LaTeX SVG export.

[!NOTE] vec2typst is still in an early stage. Currently, SVG transforms are not yet supported. Future versions may also support PDF-based workflows.

Installation

uv tool install vec2typst

Usage

vec2typst figure.svg

This generates:

  • figure.typ
  • figure_notext.svg.

To include the figure in your document:

#figure(
  {
    import "figure.typ": fig
    set text(size: .75em)
    fig(width: 50%)
  },
  caption: [Caption.],
) <fig>

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

vec2typst-0.1.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

vec2typst-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file vec2typst-0.1.0.tar.gz.

File metadata

  • Download URL: vec2typst-0.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vec2typst-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b324c56427d24ca890ebc349e435dc897127522aca743acdedf818a71c557160
MD5 3773cfdcc79ff3c4b29d3b3f67015459
BLAKE2b-256 1bcd8aa5d521537d44b0e63639e294329540c60bc61fa38cafe4e7ee6397ddc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for vec2typst-0.1.0.tar.gz:

Publisher: publish.yml on yuanxun-yx/vec2typst

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

File details

Details for the file vec2typst-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vec2typst-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vec2typst-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae73b1fe489a6d788d8863706dc1c14afca502aed050b0d1d9d56e77be4fcd7
MD5 de0fd770620b4b0969aee72e6d3594b1
BLAKE2b-256 3903a7248887e77b59a10b20a52b6c7d5f76e530ccf828fe6e393160a122c4b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for vec2typst-0.1.0-py3-none-any.whl:

Publisher: publish.yml on yuanxun-yx/vec2typst

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