I use it. I had just tested it and noticed it wasn't working. Then Terry fixed it. So I tested it with the new version and it works just great.
Chris On Thursday, November 27, 2014 2:58:47 PM UTC-8, Terry Brown wrote: > > On Thu, 27 Nov 2014 13:17:04 -0800 (PST) > Juaco <[email protected] <javascript:>> wrote: > > > I am trying to use the bibtex plugin for the generation of LaTeX > > documents... successless. > > Just checking - you've added `bibtext.py` without the `#` in > @enabled-plugins under @settings in myLeoSettings.leo? > > Unfortunately, I suspect the bibtext.py plugin is old and in need of > maintenance, is anyone using it? I use the program Jabref for Bibtex, > even though it's in Java :-\ > > Well, never mind, I just fixed the version on trunk, so Juaco if you're > using that (i.e. git install or option (2) at > http://leoeditor.com/download.html it should be working now. > > (https://github.com/leo-editor/leo-editor/commit/ad0392f) > > bibtex.py relies on hooks which are I suspect no longer working, that's > what the rest of this email's about, so might not be of interest to all. > > http://leoeditor.com/scripting.html#event-handlers lists `icondclick1` > but Leo is generating `headdclick1` now (that's not listed). I just > switched them and it seemed to fix the save on double click issue. > > bibtex.py uses headkey2 too, that seems to be firing ok, so I'm not > sure why that's not working. Ah, headkey2 doesn't return `\r` in ch > anymore, it returns None, and also only fires on Enter. > > It would be really cool to have a unit test for all the hooks at > http://leoeditor.com/scripting.html#event-handlers, and some sort of > scan for calls to hooks that don't exist and hooks that aren't listed > there. But it would be a lot of work too. > > Cheers -Terry > > > I am working under Linux Debian and don't manage to activate the > > actions of "DoubleClicking" on a node for writing or reading a *.bib > > file. I tried also under Windows XP, but an error when creating the > > file was reported ("global name file not found"). > > > > I also did not understand the meaning of the expresion "hooked to > > pressing enter when typing the headline text". I am interpreting it > > as "after you write the node text, select it fully and press enter, > > the corresponding template will be inserted". > > > > I assume that I should activate another plugin, similarly to the > > FileActions plugin. > > > > Thanks in advance for any hint, Juaco > > > > Below an extract of the documentation of the bibtex plugin: > > > > " > > > > Create a bibliographic database by putting '@bibtex filename' in a > > headline. Entries are added as nodes, with '@entrytype key' as the > > headline, and the contents of the entry in body text. The plugin will > > automatically insert a template for the entry in the body pane when a > > new entry is created (hooked to pressing enter when typing the > > headline text). The templates are defined in dictionary 'templates' > > in the <<globals>> section, by default containing all required fields > > for every entry. > > > > > > The file is written by double-clicking the node. Thus ... " > > > > > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
