Skip to content
/ myLatex Public

A CLI for updating and auto-compiling *.tex file in Latex Environment. Work for both GNU-Linux systems and macOS

License

Notifications You must be signed in to change notification settings

Ghasak/myLatex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MyLatex

A CLI for updating and auto-compiling *.tex file in Latex Environment. Work for both GNU LINUX and macOS.

Image01 Image02

Requirements

macOS

We will need the following requirements:

  • pdflatex comes with installing Latex engine.
  • rubber similar to the pdflatex see the note below on how to install it for macOS.
  • fswatch this command line will allow watching file changes in the given directory.

How to install Rubber for mac

rubber is no longer existed, and there is a way around to install it. For your given python3 which is the default for the system: do the following.

git clone https://gitlab.com/latex-rubber/rubber.git ~/.rubber
cd ~/.rubber
python3 setup.py install     # this will create the build direcotry with the binary (executable) inside namely: rubber
python3 setup.py clean --all # this will remove the build directory

You will see that rubber get to install to your default python which is in my case anaconda (~/opt/anaconda3/bin). Check the installation by

cd ~/opt/anaconda3/bin
ls | grep rubber

Install fswatch

Check here:

brew install fswatch

GNU/Linux systems - Ubuntu 20.22

You will need only these packages:

sudo apt-get install rubber
sudo apt-get install inotify-tools

Setup

A simple curl for my raw-script which can be used to check the script, or map it to your machine

# To watch
curl -L https://raw.githubusercontent.com/Ghasak/myLatex/main/mylatex | bat
# To install
mkdir ~/.mylatex # or whatever
cd ~/.mylatex
touch mylatex
curl -L https://raw.githubusercontent.com/Ghasak/myLatex/main/mylatex >> ~/.mylatex/mylatex
chmod -x ~/.mylatex/mylatex
# In your .profile, or .zshrc or .bashrc whatever is your running shell, put
source PATH="$PATH:$HOME/.mylatex/"

How to use

keep the shell running to monitor your .text script-file.

mylatex text_file.tex

About

A CLI for updating and auto-compiling *.tex file in Latex Environment. Work for both GNU-Linux systems and macOS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages