Skip to content

An intelligent LaTeX and BibTeX assistant that helps verify and clean up your academic documents.

Notifications You must be signed in to change notification settings

timaeus-research/texpert

Repository files navigation

Texpert

An intelligent LaTeX and BibTeX assistant that helps verify and clean up your academic documents.

Features

  • BibTeX entry verification against online sources (DOI and arXiv)
  • Automatic update of arXiv preprints to their published versions
  • Comprehensive metadata retrieval from Semantic Scholar and DOI
  • Smart detection of conference vs journal papers [WIP]
  • Preservation of important fields (abstract, URL, volume, etc.)
  • Support for both direct updates and BibTeX-only output

Installation

pip install texpert

Usage

Command Line Interface

# Verify a BibTeX entry
texpert verify references.bib

# Update arXiv preprints to published versions
texpert update references.bib

# Get updated BibTeX without modifying the file
texpert update references.bib --bibtex-only

# Show changes without modifying file
texpert update references.bib --dry-run

# Control confidence threshold for matches
texpert update references.bib --min-confidence 0.9

Python API

from texpert import BibVerifier
from texpert.sources import SemanticScholarSource

# Create verifier instances
verifier = BibVerifier()
semantic_scholar = SemanticScholarSource()

# Find published version of arXiv paper
published = semantic_scholar.find_published_version("2308.12108")

# Verify a BibTeX entry
result = verifier.verify_entry(entry)

Development

To set up the development environment:

git clone https://github.com/jqhoogland/texpert.git
cd texpert
pip install -e ".[dev]"

Run tests:

pytest

License

MIT License

About

An intelligent LaTeX and BibTeX assistant that helps verify and clean up your academic documents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published