TeXSmith fragment that drops the HEIG-VD logo on the first page of a document.
Project description
TeXSmith Fragment - HEIG-VD Logo
A TeXSmith fragment that drops the HEIG-VD letterhead logo on the first page of a document.
Install
uv add texsmith-fragment-heig-logo
# or
pip install texsmith-fragment-heig-logo
The package registers a heiglogo fragment via the
texsmith.fragments entry-point group, so TeXSmith picks it up
automatically — no path configuration needed.
Usage
In your document's YAML front matter (or in texsmith.yaml), append the
fragment to the rendering pipeline:
fragments:
append:
- heiglogo
heiglogo:
color: false # set to true for the red HEIG-VD logo
The logo is positioned 1 cm from the top-left of the page on every page of the document.
Attributes
| Attribute | Default | Description |
|---|---|---|
heiglogo.color |
false |
Render the logo in HEIG-VD red (e1251b) instead of black. |
Requirements
- TeXSmith ≥ 0.3.0
- A LaTeX engine with
xelatexorlualatex(the bundledheiglogo.styusesfontspecand refusespdflatex). - The
TeX Gyre Herosfont family (already present in standard TeX Live distributions).
How it works
The package ships three files under
src/texsmith_fragment_heig_logo/fragment/:
fragment.toml— declares the fragment to TeXSmith and exposes theheiglogo_colorattribute.heiglogo.sty— the docstrip-generated LaTeX package.heiglogo.jinja.tex— a one-line Jinja template that calls\AddToShipoutPictureBG*{\logo[...]}.
The package's __init__.py exports a FRAGMENT_PATH constant. The
pyproject.toml declares it as the entry point:
[project.entry-points."texsmith.fragments"]
heiglogo = "texsmith_fragment_heig_logo:FRAGMENT_PATH"
When TeXSmith starts, its FragmentRegistry._discover_entry_points()
scans the texsmith.fragments group, loads each entry, and registers the
fragment directory as if it were built-in.
Regenerating heiglogo.sty from upstream
heiglogo.sty is a generated artefact; the canonical sources live at
HEIG-VD/logos as a .dtx file. To
refresh the bundled copy:
git clone https://github.com/HEIG-VD/logos
cd logos/heig-vd/latex
latex heiglogo.dtx
cp heiglogo.sty <this-repo>/src/texsmith_fragment_heig_logo/fragment/heiglogo.sty
Bump the package version and commit.
Licence
- The wrapper code (Python module, manifest, Jinja template, build
configuration) is released under the MIT license — see
LICENSE. - The bundled
heiglogo.styfile is distributed under the LaTeX Project Public License (LPPL) 1.3c or later — seeLICENSE-LPPLand the upstream repository.
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 texsmith_fragment_heig_logo-0.0.2.tar.gz.
File metadata
- Download URL: texsmith_fragment_heig_logo-0.0.2.tar.gz
- Upload date:
- Size: 6.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 |
306e9c8f99f590df25b4404511bf5a6a65f4ee4079afe5bb91154dfebaed6735
|
|
| MD5 |
e3e47703a0986906ec2948534d61e1dd
|
|
| BLAKE2b-256 |
aa896784794f78b4804796d5eb6530209b7a932bd4fcc5bb8332d0ad0b4d8a3b
|
Provenance
The following attestation bundles were made for texsmith_fragment_heig_logo-0.0.2.tar.gz:
Publisher:
ci.yml on yves-chevallier/texsmith-fragment-heig-logo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
texsmith_fragment_heig_logo-0.0.2.tar.gz -
Subject digest:
306e9c8f99f590df25b4404511bf5a6a65f4ee4079afe5bb91154dfebaed6735 - Sigstore transparency entry: 1383323313
- Sigstore integration time:
-
Permalink:
yves-chevallier/texsmith-fragment-heig-logo@5727df040e4dde2a51e7e777fe06d40929baa5c9 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/yves-chevallier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@5727df040e4dde2a51e7e777fe06d40929baa5c9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file texsmith_fragment_heig_logo-0.0.2-py3-none-any.whl.
File metadata
- Download URL: texsmith_fragment_heig_logo-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.3 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 |
1c798af96c40bf3516736df177633a073f697ad7d2d53d99b221271f83bd3d93
|
|
| MD5 |
ebfff75cdb2a45c664f695ef5e44cda0
|
|
| BLAKE2b-256 |
46e62b2701b40233a339f618ebacdc7d2fda7b9ca5387ef42dec06564972d5bb
|
Provenance
The following attestation bundles were made for texsmith_fragment_heig_logo-0.0.2-py3-none-any.whl:
Publisher:
ci.yml on yves-chevallier/texsmith-fragment-heig-logo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
texsmith_fragment_heig_logo-0.0.2-py3-none-any.whl -
Subject digest:
1c798af96c40bf3516736df177633a073f697ad7d2d53d99b221271f83bd3d93 - Sigstore transparency entry: 1383323339
- Sigstore integration time:
-
Permalink:
yves-chevallier/texsmith-fragment-heig-logo@5727df040e4dde2a51e7e777fe06d40929baa5c9 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/yves-chevallier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@5727df040e4dde2a51e7e777fe06d40929baa5c9 -
Trigger Event:
push
-
Statement type: