all2md.packagers.arxiv

ArXiv submission package generator.

This module provides the ArxivPackager class which converts AST documents into complete, ArXiv-ready LaTeX submission archives (.tar.gz or directory).

class all2md.packagers.arxiv.ArxivPackager

Bases: object

Generate ArXiv-ready LaTeX submission packages from AST documents.

Parameters:

options (ArxivPackagerOptions or None) – Packager configuration options.

Initialize packager with options.

__init__(options: ArxivPackagerOptions | None = None)

Initialize packager with options.

package(doc: Document, output: str | Path, bib_file: str | Path | None = None) Path

Generate an ArXiv submission package from an AST document.

Parameters:
  • doc (Document) – AST document to package.

  • output (str or Path) – Output path for the archive or directory.

  • bib_file (str, Path, or None) – Optional path to a .bib bibliography file.

Returns:

Path to the created archive or directory.

Return type:

Path