Skip to main content

A Python CLI with utilities for scientific LaTeX documents.

Project description

TeXCLIques

A CLI that provides a set of utilities for working with scientific LaTeX documents.

Installation

This module is available on PyPI. To install it, run:

pip install texcliques

Usage

This module provides a command-line interface (CLI) through the texcliques script. To use it, run:

texcliques [OPTIONS] COMMAND [ARGS]...

Commands

  • extract-citations: Extract bibliography entries from a LaTeX document or sections thereof given a BibTeX file.

[!NOTE] For more information on a specific command, run:

texcliques COMMAND --help

Extract Citations

Positional Arguments

  • TEXFILE: The LaTeX file to extract citations from.

  • BIBFILE: The BibTeX file to extract citations from.


Optional Arguments

  • -s, --section: Specifies the section from which to extract the citations. If not specified, the entire TEXFILE is used.

  • -p, --pattern: The Regex pattern to use for identifying citations in the TEXFILE.

    • Default: \\cite[tp]?{([^}]+)}

    [!IMPORTANT] The pattern must contain a single capturing group that matches the reference ID.

  • --sort: Sort the citations in natural order based on their key.

  • -o, --output: The base name of the output file(s).

    • Default: citations
  • --fields (FIELDS): The fields to extract from the BIBFILE.

    • Default: id, title, author
  • --formats: The output formats to save the citations into.

    • Default/Supported: toml, yaml, json

Contributing

To contribute to texcliques:

  1. Fork this repository.
  2. Create a new branch following the naming convention <username>/branch-name.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Create a pull request to this repository.

License

This module is licensed under the MIT License. See the LICENSE file for more information.

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

TeXCLIques-0.0.5.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

TeXCLIques-0.0.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file TeXCLIques-0.0.5.tar.gz.

File metadata

  • Download URL: TeXCLIques-0.0.5.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for TeXCLIques-0.0.5.tar.gz
Algorithm Hash digest
SHA256 700a10820701934c1bf942bb9233e755f1add5033a6a4f0a8a2a51a33fa57d49
MD5 d47b57006762bfd0c74229b44ca88b11
BLAKE2b-256 bbace83cbaf7155c8cc22e86d48695158cce3c7b77eaf0c6618293b6420e7279

See more details on using hashes here.

File details

Details for the file TeXCLIques-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: TeXCLIques-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for TeXCLIques-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a623170ba09b37dfcb43794f2415b3f04961bf3dcd64a0e8149f969f843d4e16
MD5 1f60eb31c9f6b968c63c4407e3ea0d92
BLAKE2b-256 9e166586dba70787a1b19c9324f33d012ea531efc8396a7b61ebe8bc33581afd

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