Some TeX Developments

Coding in the TeX world

Scripting in TeXworks

with 8 comments

Stefan Löffler has recently posted to the TeXworks mailing list that he’s sorted out a patch to integrate Lua into TeXworks. Many people will be aware that Lua is very much the scripting language of the moment in the TeX world, because of the LuaTeX project. So it makes sense to consider it as a method for scripting TeXworks. The idea has always been that TeXworks will have a simple interface but powerful features available to those who want them. So adding scripting is a vital step forward. With a light-weight scripting system available, power users can code their own features into TeXworks while leaving the basics accessible to everyone.

That doesn’t mean that Lua has to be the (only) language available: Jonathan Kew (TeXworks lead developer) has suggested QtScript (which is JavaScript-like) as a possibility. TeXworks is built using Qt, so there is a definite logic here. As Jonathan himself points out, actually having a patch available certainly means that Lua is likely to be integrated!

Written by Joseph Wright

June 9th, 2009 at 10:08 am

Posted in TeXworks

Tagged with

8 Responses to 'Scripting in TeXworks'

Subscribe to comments with RSS or TrackBack to 'Scripting in TeXworks'.

  1. [...] von Lua in den Editor TeXworks: http://www.texdev.net/2009/06/09/scripting-in-texworks/ [...]

  2. It would be really nice if Jonathan updated the builds; they’re quite dated and I so far was unable to build TeXWorks myself.

    Simon Spiegel

    9 Jun 09 at 11:01 am

  3. I’m luck that Windows builds are made available by Alain Delmoitte. In the longer term, some kind of installer is going to be needed. I guess Jonathan is hoping for volunteers!

    Joseph Wright

    9 Jun 09 at 11:51 am

  4. I’d be even ready to create builds from time to time and host; unfortunately I can’t even build the damn thing …

    Simon Spiegel

    9 Jun 09 at 2:45 pm

  5. I looked at TeXworks features ( haven’t tried the program tho ) and it seems to me that AUCTeX has all its features. Do you know if this is a roughly correct impression?

    One of its key features, immediate preview of the document, do you know if this is implemented by incremental compiling, or by recompiling the whole doc everytime changes are saved?

    Thanks. — Leo

    Leo

    9 Jun 09 at 2:59 pm

  6. Simon,

    I think that’s why there are not “official” builds that often :-) I get the feeling once you have a “recipe” all is well, but getting to that stage is a pain.

    Joseph Wright

    9 Jun 09 at 3:03 pm

  7. Leo,

    It depends on what you think of as “features”. The aim of TeXworks is to have a relatively “clean” interface that newer users can get to grips with, without dropping powerful features. AUCTeX is built on emacs, which as we know is not everyone’s choice for ease of use! Remember that TeXworks is inspired by the Mac-only TeXshop programme. Emacs it is not :-)

    TeXworks doesn’t do any kind of incremental compilation. What you get is two windows, with one showing source and the other PDF output. The user decides when to compile, and the magic of SyncTeX lets you go from source to PDF or vice versa. The key point here is that this works with any TeX variant. As I understand it, AUCTeX uses preview-latex, but this is not much use for plain TeX or ConTeXt users. TeXworks is “format neutral”, with nothing in the core code which makes assumptions about which type of TeX is in use.

    Joseph Wright

    9 Jun 09 at 3:10 pm

  8. Many thanks, Joseph.

    SyncTeX is nice.

    Leo

    9 Jun 09 at 3:13 pm

Leave a Reply