Skip to main content

CitationSorter

CitationSorter is a Python package for sorting and organizing citations in LaTeX documents. It is designed to help you neatly arrange in-text citations within LaTeX files based on the author and publication year.

Installation

You can install CitationSorter using pip:

pip install citation-sorter

Usage

CitationSorter can be used both as a library and as a command-line tool.

As a Library

You can use CitationSorter as a library in your Python scripts. Here's an example of how to use it:

from citation_sorter import CitationSorter

# Create an instance of the CitationSorter class
sorter = CitationSorter()

# Process LaTeX files in the input folder and save the modified versions in the output folder
sorter.process_folder(input_folder='input_folder_path', output_folder='output_folder_path')

As a Command-Line Tool

You can also use CitationSorter from the command line. After installing it, you can run it as follows:

citation_sorter input_folder output_folder

Replace input_folder with the path to the folder containing your LaTeX files and output_folder with the path where you want the modified files to be saved.

LaTeX File Format

CitationSorter works with LaTeX files containing citation commands starting with \cite. It sorts the citations within these commands based on the author's name and publication year.

Example LaTeX citation command:

\cite{smith2023book, jones2022paper, brown2021article}
\cite[p.1]{smith2023book, jones2022paper, brown2021article}
\citet{smith2023book, jones2022paper, brown2021article}
\citep{smith2023book, jones2022paper, brown2021article}

License

This project is licensed under the GPL-3.0 license. See the LICENSE file for details.

Metadata

Release files for citation-sorter 0.3.2

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

Source distribution (sdist)

Source distribution for citation-sorter 0.3.2
File Size Uploaded Provenance Actions
citation_sorter-0.3.2.tar.gz 15.3 kB Without provenance Details for citation_sorter-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for citation-sorter 0.3.2
File Interpreter ABI Platform Actions
citation_sorter-0.3.2-py3-none-any.whl Python 3 none any Details for citation_sorter-0.3.2-py3-none-any.whl

Total release size: 31.6 kB

Release files / citation_sorter-0.3.2.tar.gz

Download URL citation_sorter-0.3.2.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d6103f943d1f075db17e8232d8c19efa45f35c32dc8e97e068a64653daad38f2
BLAKE2b-256 checksum
How to use checksums
a677b6147807cf01aa365965fc246524f78ed4aeb92ecbe707251f41273fee00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / citation_sorter-0.3.2-py3-none-any.whl

Download URL citation_sorter-0.3.2-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb3724f59c259830ae7dba7cf7542fbd3bcc0bf15f53540dbd987ada8ae983a9
BLAKE2b-256 checksum
How to use checksums
b48cb8a2a55397d9ba8dec5875357f678fb6388a571c136328cdb60fbbc87302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for citation-sorter 0.3.2

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