Skip to main content

What is this?

This is a cli tool for managing latex projects.

Features

  • blatex init : Initialize latex document with templates
  • blatex compile : Compile from any sub-directory of the project.
  • blatex clean : Clean temporary files from any sub-directory.
  • blatex packages : List packages used by the document, and mark if they are installed. It will also recommend texlive packages that contain the missing tex package.
  • blatex errors : Parse errors and warnings, and display them nicely.
  • blatex templates : list available templates and their sources.

Dependencies

The default latex engine is latexmk. This can however be altered by editing the commands in the '.blatex' file in the root directory (this file is generated when initializin the project).

Package functionality requires the use of texlive for package management.

This package has only been tested on linux, but there are plans to get it workning on windows.

Getting Started

Make sure you have latexmk or another latex compiler installed. This package works with latexmk out of the box so it is recomended.

Run the following in any directory:

blatex init

This is now root of your latex project. If the directory is empty, you will be prompted to use a template.

Compile the document by running this command from any sub-directory of the project:

blatex compile

All features of every command or command group can be found by passing the '-h' flag.

Configuration files

blatex uses two separate configuration files. One local to the current document and one global to the entire system.

Local Configuration File

Upon initializing a project, a hidden file with the name '.blatex' will appear in the project root. This file is used by blatex as a config file, but also to locate the root directory of the project.

This file contains json data for configuring blatex in this project specifically.

Here are the settings:

Option Description
main-file The main '.tex' file of the project.
main-file-placeholder The string that will automatically be replaced by the main file path in the other options.
compile-cmd The command used for compiling the document. Change this if you are not using latexmk.
clean-cmd The command used for cleaning up temporary files in the root directory.

Global Configuration File

This file contains the global configuration of blatex and contains setting regarding custom templates and among other things.

This file is found here: '~/.config/blatex/config.json'.

If you have not made your own yet, you can simply run the following command:

blatex config global create 

This will create a global configuration file with the default configuration.

Here is a list of global options:

Option Description
enable_builtin_templates Enable the templates built into the blatex pip package
custom_template_dirs List of directories to look for templates ('.zip' files) in
package-install-location Location where texlive packages are installed. This is used in the blatex list packages command.

Metadata

Release files for blatex 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blatex 0.1.3
File Size Uploaded Provenance Actions
blatex-0.1.3.tar.gz 3.8 MB Without provenance Details for blatex-0.1.3.tar.gz

Release files / blatex-0.1.3.tar.gz

Download URL blatex-0.1.3.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
203532e3a44eb1df059aad83cd4967fdcd3fd3df8ea8fec9fb040e1d1d184c6c
BLAKE2b-256 checksum
How to use checksums
82e7e03cd58143b76877807f78dd32dbc1118a909e8143a3a3239e6110dc503a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for blatex 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page