Skip to main content

Local LaTeX project scaffolder

Project description

NewTex-CLI

newtex-cli cover image

1. Installation

pipx install newtex-cli

Common pip install alternative:

python -m pip install newtex-cli

Works on macOS, Linux, and Windows (with Python/pipx).

2. Configuration

Bundled templates are discovered dynamically from src/newtex/resources/templates.

2.1 Global template config (recommended)

Configure templates once and use newtex from anywhere:

newtex --template-set acm-conf=/absolute/path/or/url/to/template
newtex --default-template-set acm-conf
newtex --templates-list

This writes to ~/.config/newtex/templates.yml.

3. CLI commands

3.1 Command reference

Command Description
newtex --help Show CLI help
newtex --version Show current installed version
newtex --update Update to the latest published version
newtex --upgrade Alias of --update
newtex --template-set <alias>=<path-or-url> Add or update a global template alias
newtex --template-set <alias>=<path-or-url> --template-description "..." Add alias with description
newtex --default-template-set <alias> Set the global default template alias
newtex --set-default-template <alias> Backward-compatible alias for --default-template-set
newtex --templates-list Show configured global templates
newtex Start interactive project creation
newtex <project-name> <template> Create a project in non-interactive mode
newtex <project-name> <template> --no-git Skip git init
newtex <project-name> <template> --track-pdf Keep compiled PDFs tracked
newtex <project-name> <template> --no-vscode Exclude shared .vscode/ settings
newtex <project-name> <template> --open Open generated project in VS Code

3.2 Quick examples

newtex --help
newtex --version
newtex --update
newtex --upgrade
newtex
newtex exlang-paper acm-conf
newtex exlang-paper acm-conf --no-git
newtex exlang-paper acm-conf --track-pdf
newtex exlang-paper acm-conf --no-vscode
newtex exlang-paper acm-conf --open

Interactive flow now shows a scaffold plan summary before generation and asks for confirmation.

4. Notes

  • Project names must be lowercase kebab-case (example: exlang-paper).
  • If a template path is invalid, the CLI exits with an error message.
  • Template sources support three modes:
    • local directory path (copied as-is)
    • package://<name> (copied from bundled package resources)
    • remote template URL (scaffolded via Copier)

5. Install on another machine

pipx install newtex-cli
# or
python -m pip install newtex-cli

Then configure templates on that machine:

newtex --template-set acm-conf=/absolute/path/or/url/to/template
newtex --default-template-set acm-conf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

newtex_cli-0.1.7.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

newtex_cli-0.1.7-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file newtex_cli-0.1.7.tar.gz.

File metadata

  • Download URL: newtex_cli-0.1.7.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for newtex_cli-0.1.7.tar.gz
Algorithm Hash digest
SHA256 9a5ab3bafe3751608a60becc79beeb27ea49e206fb79ea7233c0b3a6fe3165fe
MD5 24c1af084be05df494411fbf5deba95a
BLAKE2b-256 f9a6eb7b57c059cae1f295870c559b7c51550463fcd0a192499c8f33a31756db

See more details on using hashes here.

File details

Details for the file newtex_cli-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: newtex_cli-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for newtex_cli-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bc8c1ff26b26665d90779bdba0b0814089226cb02e01eef3a2751630bd74a89f
MD5 5012bfa1ca9c655b492a75f5c4435b3a
BLAKE2b-256 0384552a7d0b52eed3856461647c729fe8568fcaed3dc7b20405237ccf7aa1d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page