Code Monkey home page Code Monkey logo

latex-watcher's People

Contributors

maxbeier avatar meltuhamy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nicoring egnwd

latex-watcher's Issues

Add option to set flagging-options for build

Hi @meltuhamy,

nice piece of work you did there. I'm currently using latex-watcher with the package minted (https://ctan.org/tex-archive/macros/latex/contrib/minted/) which forces the pdflatex flag -shell-escape to be set.
I just put that additional flag into line 86 of the compilePDFLatex function

compilePDFLatex = function(cb){
  process.stdout.write('  » pdflatex');
  var pdflatex      = spawn('pdflatex', ['-interaction=nonstopmode','-shell-escape',texName]);
  pdflatex.on('exit', function (code) {
    process.stdout.write((code==0 ? '\r  ✓ pdflatex'.green : '\r  × pdflatex'.red) + '\n');
    if(code != 0){
      displayErrors(cb);
    } else if(cb != undefined) cb();
  });
},

So, my latex-watcher command is not changed:

latex-watcher -c pdflatex,bibtex,pdflatex,pdflatex -t document.tex -b document

It would be nice to add the functionality of adding arbitrary flags and options to the run commands. Like

latex-watcher -c pdflatex[shell-escape],bibtex,pdflatex[shell-escape,anotherkey=anothervalue],pdflatex[shell-escape] -t document.tex -b document

If you like that feature i'll put a pull request here soon. If you are not interested in any contribution or action on this, just let me know.

Have a happy new year!

Compile once option

It would be nice to have a one-off compile option (e.g. latex-watcher --once -c pdflatex,clean -t main or latex-watcher --once -c clean). This would be nice since it's always a pain to clean up latex temp files.

Does not work!

Version of pdflatex: pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013)
Version of node: v0.10.26
When I run "latex-watcher -c pdflatex -t main -b main", it gets stuck with "Compiling -- pdflatex"

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.