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.typfigure_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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b324c56427d24ca890ebc349e435dc897127522aca743acdedf818a71c557160
|
|
| MD5 |
3773cfdcc79ff3c4b29d3b3f67015459
|
|
| BLAKE2b-256 |
1bcd8aa5d521537d44b0e63639e294329540c60bc61fa38cafe4e7ee6397ddc8
|
Provenance
The following attestation bundles were made for vec2typst-0.1.0.tar.gz:
Publisher:
publish.yml on yuanxun-yx/vec2typst
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vec2typst-0.1.0.tar.gz -
Subject digest:
b324c56427d24ca890ebc349e435dc897127522aca743acdedf818a71c557160 - Sigstore transparency entry: 1629187480
- Sigstore integration time:
-
Permalink:
yuanxun-yx/vec2typst@41ba5f893d87f18ebe61156514e94f6ecb9b4860 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/yuanxun-yx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@41ba5f893d87f18ebe61156514e94f6ecb9b4860 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ae73b1fe489a6d788d8863706dc1c14afca502aed050b0d1d9d56e77be4fcd7
|
|
| MD5 |
de0fd770620b4b0969aee72e6d3594b1
|
|
| BLAKE2b-256 |
3903a7248887e77b59a10b20a52b6c7d5f76e530ccf828fe6e393160a122c4b2
|
Provenance
The following attestation bundles were made for vec2typst-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on yuanxun-yx/vec2typst
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vec2typst-0.1.0-py3-none-any.whl -
Subject digest:
8ae73b1fe489a6d788d8863706dc1c14afca502aed050b0d1d9d56e77be4fcd7 - Sigstore transparency entry: 1629187504
- Sigstore integration time:
-
Permalink:
yuanxun-yx/vec2typst@41ba5f893d87f18ebe61156514e94f6ecb9b4860 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/yuanxun-yx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@41ba5f893d87f18ebe61156514e94f6ecb9b4860 -
Trigger Event:
push
-
Statement type: