LaTeXTools icon indicating copy to clipboard operation
LaTeXTools copied to clipboard

Use AutoLaTeX as the backend compiler

Open gallandarakhneorg opened this issue 11 years ago • 10 comments

Is it possible to use and configure the compiler AutoLaTeX in the plugin?

AutoLaTeX provides features similar to rubber, but it is more powerful on the generation of images.

gallandarakhneorg avatar Mar 12 '14 16:03 gallandarakhneorg

This is already possible using the mbuilder branch---but if you wait a day or two, it will be merged to the master branch, i.e., it will be possible by default. Basically, you will be able to configure the build system to your liking. At a minimum, you can use autolatex or rubber instead of latexmk by changing one settings. At a maximum, you can incorporate autolatex into LaTeXTools---I don't have time to do it, but if it's Python, it won't be hard.

On Wed, Mar 12, 2014 at 11:35 AM, Stéphane Galland <[email protected]

wrote:

Is it possible to use and configure the compiler AutoLaTeXhttp://gallandarakhneorg/autolatexin the plugin?

AutoLaTeX provides features similar to rubber, but it is more powerful on the generation of images.

Reply to this email directly or view it on GitHubhttps://github.com/SublimeText/LaTeXTools/issues/344 .

Marciano Siniscalchi Economics Department, Northwestern University http://faculty.wcas.northwestern.edu/~msi661

msiniscalchi avatar Mar 12 '14 16:03 msiniscalchi

I may wait a while, of course. It will not be a problem to call AutoLaTeX with a kind of command line. It was written for that.

The more difficult point is to extend the configuration panels of LaTeXTools to pass specific configuration parameters to AutoLaTeX (what image translator to enable/disable...) I did the job for Gedit with a dedicated plugin. But I want to integrate this feature in LaTeXTools, instead of provided a parallel plugin.

When I will have time, I will fork LaTeXTools, and work on this feature.

gallandarakhneorg avatar Mar 12 '14 17:03 gallandarakhneorg

Take a look at the mbuilder branch. Basically, a "custom builder" is like a plugin-within-a-plugin. Here's a post on my blog that describes how things work:

http://tekonomist.wordpress.com/2013/09/17/latextools-a-new-customizable-build-system/

In addition, there is a whole new section of the LaTeXTools settings file for builder-specific settings. These get passed to the builder automatically.

So, in principle, as long as the code is Python, it can be efficiently integrated with LaTeXTools. Indeed this would be an awesome contribution!

On Wed, Mar 12, 2014 at 12:13 PM, Stéphane Galland <[email protected]

wrote:

I may wait a while, of course. It will not be a problem to call AutoLaTeX with a kind of command line. It was written for that.

The more difficult point is to extend the configuration panels of LaTeXTools to pass specific configuration parameters to AutoLaTeX (what image translator to enable/disable...) I did the job for Gedit with a dedicated plugin http://www.arakhne.org/autolatex/doc.html#gui. But I want to integrate this feature in LaTeXTools, instead of provided a parallel plugin.

Reply to this email directly or view it on GitHubhttps://github.com/SublimeText/LaTeXTools/issues/344#issuecomment-37436017 .

Marciano Siniscalchi Economics Department, Northwestern University http://faculty.wcas.northwestern.edu/~msi661

msiniscalchi avatar Mar 12 '14 19:03 msiniscalchi

I agree. AutoLaTeX running smoothly with LaTeXTools would be great.

yitzhakbg avatar Mar 13 '14 12:03 yitzhakbg

As you may have seen, the new code is in master! So, hack away :) Happy to help---there is no docs except for the code, so I'll be happy to answer questions on how the builders interact with LaTeXTools.

msiniscalchi avatar Mar 14 '14 22:03 msiniscalchi

Any news on the possibility to use AutoLaTeX with LaTeXtools?

aleks223 avatar May 03 '14 18:05 aleks223

It is planned for July (gallandarakhneorg/autolatex#80) if I doing it myself. Earlier if someone want to contribute :smile:

gallandarakhneorg avatar May 03 '14 19:05 gallandarakhneorg

I'd like to contribute actually. Take a look at the latest version of LaTeXTools. There's infrastructure in place to add new build systems and have them integrate with the plugin. On May 3, 2014 2:03 PM, "Stéphane Galland" [email protected] wrote:

It is planned for July (gallandarakhneorg/autolatex#80https://github.com/gallandarakhneorg/autolatex/issues/80) if I doing it myself. Earlier if someone want to contribute [image: :smile:]

— Reply to this email directly or view it on GitHubhttps://github.com/SublimeText/LaTeXTools/issues/344#issuecomment-42113548 .

msiniscalchi avatar May 03 '14 19:05 msiniscalchi

I include AutoLaTeX according to the builder API of LaTeXTools. However, AutoLaTeX may be verbose, and outputs several information messages of its standard output.

Currently, the script makePDF.py outputs the console of AutoLaTeX after it has finished to be run. It may be useful to see the messages of AutoLaTeX during its execution in a kind of asynchronous output mechanism.

gallandarakhneorg avatar May 03 '14 22:05 gallandarakhneorg

Yes, this may be useful for other builders, too. That requires some lower-level hacking though. Thanks very much for the contribution!

On Sat, May 3, 2014 at 5:14 PM, Stéphane Galland [email protected]:

I include AutoLaTeX according to the builder API of LaTeXTools. However, AutoLaTeX may be verbose, and outputs several information messages of its standard output.

Currently, the script makePDF.py outputs the console of AutoLaTeX after it has finished to be run. It may be useful to see the messages of AutoLaTeX during its execution in a kind of asynchronous output mechanism.

— Reply to this email directly or view it on GitHubhttps://github.com/SublimeText/LaTeXTools/issues/344#issuecomment-42117869 .

Marciano Siniscalchi Economics Department, Northwestern University http://faculty.wcas.northwestern.edu/~msi661

msiniscalchi avatar May 03 '14 23:05 msiniscalchi