texshelf
texshelf starts LaTeX and Typst projects from templates. It has a command-line
tool and a website, tex.jjsm.science, that shows
every template with a PDF preview.
One install gives you two commands. texshelf lists LaTeX templates by default
and typshelf lists Typst ones. They are otherwise the same program.
Install
With Homebrew
-
Install texshelf from the project's tap:
brew install texshelf/tap/texshelf -
Check that it runs:
texshelf --version
Without Homebrew
-
Open Terminal and run the installer. It downloads the latest release, checks its SHA-256 and puts
texshelfandtypshelfin~/.local/bin:curl -fsSL https://tex.jjsm.science/install.sh | sh -
If the installer says the folder is not on your
PATH, add it and open a new terminal:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc -
Check that it runs:
texshelf --version
With Homebrew
-
Install texshelf from the project's tap:
brew install texshelf/tap/texshelf -
Check that it runs:
texshelf --version
Without Homebrew
Builds exist for x86-64 and ARM64. The installer needs curl and tar.
-
Run the installer. It downloads the latest release, checks its SHA-256 and puts
texshelfandtypshelfin~/.local/bin:curl -fsSL https://tex.jjsm.science/install.sh | sh -
If the installer says the folder is not on your
PATH, add it and open a new terminal (use~/.zshrcif your shell is zsh):echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc -
Check that it runs:
texshelf --version
-
Open PowerShell. Administrator mode is not needed.
-
Run the installer. It downloads the latest release, checks its SHA-256, puts
texshelf.exeandtypshelf.exein%LOCALAPPDATA%\texshelf\binand adds that folder to yourPATH:irm https://tex.jjsm.science/install.ps1 | iex -
Open a new PowerShell window, so it picks up the new
PATH, and check that it runs:texshelf --version
You need Rust 1.82 or newer.
-
Install the latest release from crates.io:
cargo install texshelfOr the current
mainbranch:cargo install --git https://github.com/texshelf/texshelf texshelf -
Check that it runs:
texshelf --version
Tip
Both installers read
TEXSHELF_INSTALL_DIRto install somewhere else andTEXSHELF_VERSIONto pin a release, such asv0.2.1.
texshelf does not include a compiler. texshelf doctor lists the TeX and Typst tools it finds, and texshelf tex install installs one if you have none.
First project
texshelf search article
texshelf view article
texshelf init article my-paper
cd my-paper
latexmk -pdf main.tex
view opens the template's prebuilt PDF, so you can look before you download.
init creates the folder, asks for the title and author, and runs git init.
The last line it prints is the command that compiles the document.