all2md.options.arxiv

Configuration options for ArXiv submission package generation.

This module provides the ArxivPackagerOptions dataclass for controlling how documents are packaged into ArXiv-ready LaTeX submission archives.

class all2md.options.arxiv.ArxivPackagerOptions

Bases: CloneFrozenMixin

Configuration options for ArXiv submission package generation.

Controls document class, figure extraction settings, output format, and bibliography handling for generating ArXiv-ready LaTeX archives.

Parameters:
  • document_class (str, default "article") – LaTeX document class to use.

  • document_class_options (list[str], default []) – Options for the document class (e.g. [“twocolumn”, “12pt”]).

  • figure_format (str, default "png") – Format for extracted figures.

  • figure_dpi (int, default 300) – DPI for extracted figures.

  • figure_dir (str, default "figures") – Subdirectory name for figures in the archive.

  • output_format ({"tar.gz", "directory"}, default "tar.gz") – Output format for the submission package.

  • bibliography_style (str, default "plain") – BibTeX bibliography style.

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

  • main_tex_filename (str, default "main.tex") – Filename for the main LaTeX file in the archive.

  • packages (list[str], default ["amsmath", "graphicx", "hyperref", "natbib"]) – LaTeX packages to include in the preamble.

document_class: str = 'article'
document_class_options: list[str]
figure_format: Literal['png', 'jpg', 'pdf'] = 'png'
figure_dpi: int = 300
figure_dir: str = 'figures'
output_format: Literal['tar.gz', 'directory'] = 'tar.gz'
bibliography_style: str = 'plain'
bib_file: str | None = None
main_tex_filename: str = 'main.tex'
packages: list[str]
__init__(document_class: str = 'article', document_class_options: list[str] = <factory>, figure_format: Literal['png', 'jpg', 'pdf']='png', figure_dpi: int = 300, figure_dir: str = 'figures', output_format: gz', 'directory']='tar.gz', bibliography_style: str = 'plain', bib_file: str | None = None, main_tex_filename: str = 'main.tex', packages: list[str] = <factory>) None