{"id":16976246,"url":"https://github.com/johnyf/svglatex","last_synced_at":"2025-04-12T01:36:03.655Z","repository":{"id":14397416,"uuid":"17107998","full_name":"johnyf/svglatex","owner":"johnyf","description":"Include SVG graphics in LaTeX via Inkscape","archived":false,"fork":false,"pushed_at":"2024-10-31T14:47:22.000Z","size":155,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T21:21:25.670Z","etag":null,"topics":["beamer","converts","equation","graphics","inkscape","latex","pdf","python3","svg"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnyf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-23T12:56:24.000Z","updated_at":"2024-10-31T14:50:17.000Z","dependencies_parsed_at":"2022-09-17T22:22:03.308Z","dependency_job_id":null,"html_url":"https://github.com/johnyf/svglatex","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyf%2Fsvglatex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyf%2Fsvglatex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyf%2Fsvglatex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnyf%2Fsvglatex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnyf","download_url":"https://codeload.github.com/johnyf/svglatex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504766,"owners_count":21115204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beamer","converts","equation","graphics","inkscape","latex","pdf","python3","svg"],"created_at":"2024-10-14T01:25:27.676Z","updated_at":"2025-04-12T01:36:03.621Z","avatar_url":"https://github.com/johnyf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nA Python package for including [SVG](\n    https://en.wikipedia.org/wiki/Scalable_Vector_Graphics)\ngraphics in [LaTeX](https://en.wikipedia.org/wiki/LaTeX) via [Inkscape](\n    https://inkscape.org).\nThe package includes a script that converts:\n\n- SVG to [PDF](https://en.wikipedia.org/wiki/PDF) and LaTeX text,\n  with the text overlaid in LaTeX over the graphics as PDF.\n  The package first separates text from graphics, and then uses Inkscape to\n  convert the SVG graphics to a PDF. The text is stored in a LaTeX file with\n  extension `.pdf_tex`.\n\n- SVG to PDF, with the text included in the PDF. The package uses Inkscape to\n  convert the entire SVG to a PDF.\n\nSVGLaTeX converts the SVG only if the PDF file is older than the SVG source.\n\n\n# Requirements\n\n- [Inkscape](https://en.wikipedia.org/wiki/Inkscape) \u003e= 1.0.0: needs to\n  be installed and the executable `inkscape` in the environment variable\n  [`$PATH`](https://en.wikipedia.org/wiki/PATH_(variable)).\n  The DPI setting in the package `svglatex` corresponds to\n  [Inkscape version 0.92.0](https://inkscape.org/release/inkscape-0.92/)\n  and higher.\n\n  On Linux you can install `inkscape` using the operating system's package\n  manager, for example `apt install inkscape` on [Debian](\n      https://www.debian.org).\n\n  On macOS you can create a symbolic link to `inkscape` and `inkscape-bin`\n  as follows:\n\n  ```shell\n  ln -s \\\n      $HOME/Applications/Inkscape.app/Contents/Resources/bin/inkscape \\\n      $HOME/bin/inkscape\n  ln -s \\\n      $HOME/Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin \\\n      $HOME/bin/inkscape-bin\n  ```\n\n  This assumes that the file `Inkscape.app` is installed in the directory\n  `/$HOME/Applications/`.\n  The environment variable `$HOME` is described [here](\n      https://en.wikipedia.org/wiki/Environment_variable#Examples).\n\n  The last version supporting `inkscape \u003c 1.0.0` was `svglatex == 0.0.2`.\n\n\n# Installation\n\nFrom the [Python Package Index (PyPI)](https://pypi.org) using the\npackage installer [`pip`](https://pip.pypa.io):\n\n```shell\npip install svglatex\n```\n\nThe Python package installs a script named `svglatex` as entry point.\nThis script can be invoked from the command line, for example:\n\n```shell\nsvglatex -h\n```\n\n\n# Usage\n\nFor including SVG files in a LaTeX document,\ninstall the Python package `svglatex`\nand the LaTeX style [`svglatex.sty`](\n    https://github.com/johnyf/latex_packages/blob/main/svglatex.sty),\nwhich includes the LaTeX commands `\\includesvg` and `\\includesvgpdf`.\nThe style file `svglatex.sty` can be:\n\n- placed in the directory `$HOME/texmf/tex/latex/local/`, and then invoking\n  `texhash $HOME/texmf` registers the style with LaTeX.\n  You can find the appropriate location with\n  `kpsewhich -var-value=TEXMFHOME`, as discussed [here](\n      https://tex.stackexchange.com/a/1138/8666).\n  To confirm the LaTeX package installation invoke\n  `kpsewhich svglatex.sty`\n  Alternatively,\n\n- placed in the LaTeX document directory, or\n\n- the contents of `svglatex.sty` can be copied to\n  the LaTeX document's preamble.\n\nFor convenience, the file `svglatex.sty` is in the directory `tests/`.\nExamples of usage are in the test files `tests/*.tex`.\nSee `svglatex.sty` for documentation, in particular it needs calling LaTeX\nwith `--shell-escape`.\n\n\n# Tests\n\nSee the file `tests/README.md`.\n\n\n# License\n\n[BSD-3](https://opensource.org/licenses/BSD-3-Clause), see file `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnyf%2Fsvglatex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnyf%2Fsvglatex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnyf%2Fsvglatex/lists"}