Skip to content

HenriquesLab/homebrew-rxiv-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homebrew Tap for rxiv-maker

A Homebrew tap for installing rxiv-maker, an automated LaTeX article generation system.

Installation

Prerequisites

  • macOS 10.15+ or Linux
  • Homebrew package manager

Quick Install

# Add the tap
brew tap henriqueslab/rxiv-maker

# Install rxiv-maker
brew install rxiv-maker

System Dependencies

rxiv-maker requires additional system dependencies for full functionality:

macOS

# Install LaTeX distribution (recommended)
brew install --cask mactex

# Or minimal LaTeX installation
brew install --cask basictex

# Git is usually pre-installed with Xcode Command Line Tools
# If not available:
xcode-select --install

Linux

# Ubuntu/Debian
sudo apt-get update
sudo apt-get install texlive-full git make

# Fedora/CentOS/RHEL
sudo dnf install texlive-scheme-full git make

# Arch Linux
sudo pacman -S texlive-most git make

Usage

After installation, the rxiv command will be available in your PATH:

# Initialize a new manuscript
rxiv init

# Generate PDF
rxiv pdf

# Show help
rxiv --help

# Check version
rxiv version

Updating

# Update Homebrew and all packages
brew update && brew upgrade

# Update only rxiv-maker
brew upgrade rxiv-maker

Uninstalling

# Remove rxiv-maker
brew uninstall rxiv-maker

# Remove the tap (optional)
brew untap henriqueslab/rxiv-maker

Troubleshooting

Python Environment

rxiv-maker is installed in an isolated Python virtual environment to avoid conflicts with system Python packages. This follows Python PEP 668 best practices.

LaTeX Issues

If you encounter LaTeX compilation errors:

macOS

  1. Ensure MacTeX or BasicTeX is installed
  2. Add LaTeX to PATH: echo 'export PATH="/usr/local/texlive/2023/bin/universal-darwin:$PATH"' >> ~/.zshrc
  3. Reload shell: source ~/.zshrc
  4. Verify: which pdflatex

Linux

  1. Install full TeXLive distribution for best compatibility
  2. Verify LaTeX installation: pdflatex --version
  3. For Ubuntu/Debian: sudo apt-get install texlive-latex-extra texlive-fonts-recommended

Permission Issues

If you encounter permission errors:

# Fix Homebrew permissions
sudo chown -R $(whoami) $(brew --prefix)/*

# Or reinstall Homebrew (if issues persist)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

PATH Issues

If rxiv command is not found:

# Check if Homebrew bin is in PATH
echo $PATH | grep $(brew --prefix)/bin

# Add to PATH if missing (zsh)
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

# Add to PATH if missing (bash)
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

Development

This tap automatically tracks releases from the official rxiv-maker PyPI package.

Manual Updates

To manually update the formula:

  1. Check the latest version on PyPI
  2. Update Formula/rxiv-maker.rb
  3. Calculate new SHA256: brew fetch --build-from-source rxiv-maker
  4. Test the formula: brew install --build-from-source rxiv-maker

Testing

# Test formula syntax
brew audit --strict rxiv-maker

# Test installation
brew install --verbose --debug rxiv-maker

# Test functionality
rxiv --help

Support

License

This tap is licensed under the MIT License. See LICENSE for details.

The rxiv-maker software is separately licensed. See the rxiv-maker repository for its license terms.

About

Homebrew tap for rxiv-maker - Automated LaTeX article generation system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •