Skip to content

Pre-processes latex working papers for archival at arXiv.org

License

Notifications You must be signed in to change notification settings

jaateixeira/arXivIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

arXivIt

Pre-processes LaTeX working papers for archival at arXiv.

ArXiv is an online repository of electronic preprints (known as e-prints) in various fields of science, particularly in physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering, systems science, and economics. It is owned and operated by Cornell University. Researchers can submit their papers to arXiv to make them publicly accessible before they are published in peer-reviewed journals. This allows for rapid dissemination of research findings and facilitates open access to scientific literature. ArXiv provides a platform for researchers to share their work, receive feedback, and establish priority for their discoveries. It has become an essential resource in the scientific community for staying updated on the latest research developments.

arXivIt is a script designed to prepare your LaTeX project for submission to arXiv. It automates the process of validating, cleaning, and packaging your project into a .tar file that complies with arXiv's strict requirements. This manual explains how to use arXivIt and what it does. The script is friendly with latex, pdflatex and biblatex/biber.

Features

arXivIt performs the following tasks to ensure your LaTeX project is ready for arXiv submission:

  1. Validates Sources:

    • Ensures your project contains valid (La)TeX, AMS(La)TeX, or PDFLaTeX sources.
  2. Validates Figures:

    • Ensures figures are in valid formats: PostScript (PS, EPS), JPEG, GIF, PNG, or PDF.
  3. Flattens Main .tex File:

    • Combines all \input and \include statements into a single, flattened .tex file.
  4. Checks Filenames:

    • Ensures filenames comply with arXiv's strict requirements (e.g., no spaces, special characters, or overly long names).
  5. Removes Unused Files:

    • Deletes any files not referenced by your main .tex file.
  6. Handles Symlinks:

    • Replaces symbolic links with hard copies of the files.
  7. Removes Conflicting PDFs:

    • Deletes any .pdf files that might conflict with arXiv's processing.
  8. Cleans Hidden Files:

    • Deletes hidden files and directories (e.g., .gitignore, .DS_Store).
  9. Warns About Empty Files:

    • Alerts you if any files in your project are empty.
  10. Validates .bbl File:

    • Ensures the .bbl file matches the name of the main .tex file for proper reference processing.
  11. Removes comments:

    • Will ask if you want to remove latex comments (lines starting with %)

Usage

Input

  • A folder containing your LaTeX project. The folder must include:
    • A main .tex file (e.g., main.tex).
    • Any additional .tex files, figures, and references.

Output

  • A .tar file ready for upload to arXiv.

How to Run arXivIt

Prerequisites

  • Ensure you have Python 3 installed.
  • Install required Python packages (if any) using pip install -r requirements.txt.

Running the Script

  1. Place your LaTeX project in a folder (e.g., my_latex_project).
  2. Run the script from the command line:
    python arxivit.py /path/to/my_latex_project

About

Pre-processes latex working papers for archival at arXiv.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages