Docs

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

  1. Install texshelf from the project's tap:

    brew install texshelf/tap/texshelf
    
  2. Check that it runs:

    texshelf --version
    

Without Homebrew

  1. Open Terminal and run the installer. It downloads the latest release, checks its SHA-256 and puts texshelf and typshelf in ~/.local/bin:

    curl -fsSL https://tex.jjsm.science/install.sh | sh
    
  2. 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
    
  3. Check that it runs:

    texshelf --version
    

With Homebrew

  1. Install texshelf from the project's tap:

    brew install texshelf/tap/texshelf
    
  2. Check that it runs:

    texshelf --version
    

Without Homebrew

Builds exist for x86-64 and ARM64. The installer needs curl and tar.

  1. Run the installer. It downloads the latest release, checks its SHA-256 and puts texshelf and typshelf in ~/.local/bin:

    curl -fsSL https://tex.jjsm.science/install.sh | sh
    
  2. If the installer says the folder is not on your PATH, add it and open a new terminal (use ~/.zshrc if your shell is zsh):

    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    
  3. Check that it runs:

    texshelf --version
    
  1. Open PowerShell. Administrator mode is not needed.

  2. Run the installer. It downloads the latest release, checks its SHA-256, puts texshelf.exe and typshelf.exe in %LOCALAPPDATA%\texshelf\bin and adds that folder to your PATH:

    irm https://tex.jjsm.science/install.ps1 | iex
    
  3. 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.

  1. Install the latest release from crates.io:

    cargo install texshelf
    

    Or the current main branch:

    cargo install --git https://github.com/texshelf/texshelf texshelf
    
  2. Check that it runs:

    texshelf --version
    

Tip

Both installers read TEXSHELF_INSTALL_DIR to install somewhere else and TEXSHELF_VERSION to pin a release, such as v0.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.

Pages