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 entireTEXFILEis used. -
-p,--pattern: The Regex pattern to use for identifying citations in theTEXFILE.- Default:
\\cite[tp]?{([^}]+)}
[!IMPORTANT] The pattern must contain a single capturing group that matches the reference ID.
- Default:
-
--sort: Sort the citations in natural order based on their key. -
-o,--output: The base name of the output file(s).- Default:
citations
- Default:
-
--fields(FIELDS): The fields to extract from theBIBFILE.- Default:
id,title,author
- Default:
-
--formats: The output formats to save the citations into.- Default/Supported:
toml,yaml,json
- Default/Supported:
Contributing
To contribute to texcliques:
- Fork this repository.
- Create a new branch following the naming convention
<username>/branch-name. - Make your changes and commit them.
- Push your changes to your fork.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
700a10820701934c1bf942bb9233e755f1add5033a6a4f0a8a2a51a33fa57d49
|
|
| MD5 |
d47b57006762bfd0c74229b44ca88b11
|
|
| BLAKE2b-256 |
bbace83cbaf7155c8cc22e86d48695158cce3c7b77eaf0c6618293b6420e7279
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a623170ba09b37dfcb43794f2415b3f04961bf3dcd64a0e8149f969f843d4e16
|
|
| MD5 |
1f60eb31c9f6b968c63c4407e3ea0d92
|
|
| BLAKE2b-256 |
9e166586dba70787a1b19c9324f33d012ea531efc8396a7b61ebe8bc33581afd
|