Coder Social home page Coder Social logo

latex-watcher's Introduction

latex-watcher

A (very) simple latex file watcher to auto-compile tex files.

Usage

  1. You will need node.js version >= 0.8 (check with node -v).
  2. Install latex-watcher using npm: npm install -g latex-watcher
  3. Run latex-watcher from your latex project directory. Check options below:

Options

-c, --command  list of commands to run. e.g latex,bibtex,pdflatex  [required]  [default: "pdflatex"]
-t, --tex      tex file to compile on changes                      [required]
-b, --bib      bib file used (required if bibtex is used)

The currently allowed commands are:

  • latex
  • pdflatex
  • bibtex
  • makeglossaries
  • cleanup (removes temporary latex files after compilation)

Example

The command below compiles the main.tex file with latex, then bibtex (using main.bib), then latex again, then pdflatex every time any .tex files are changed, added or removed.

❯ node watch.js -c latex,bibtex,latex,pdflatex -t main -b main
Watching
latex ✓
bibtex ✓
latex ✓
pdflatex ✓

Notes

The project uses gaze for file watching, colors for, er... colors, and optimist for awesome command-line argument stuff.

I've only tested and implemented this based on my own personal use. It currently works for me with Linux and OSX.

latex-watcher's People

Contributors

egnwd avatar maxbeier avatar meltuhamy avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.