Menu

#81 Plugin for generic push citations to application

closed
None
5
2012-11-08
2007-11-17
No

This plugin provides a configurable function for pushing citations to external applications. You configure the plugin by selecting this entry in the dropdown list for push to external applications, and then right-clicking the icon and selecting "Settings".

The settings panel lets you set a cite command string, which will be used as a CLI command when you activate the push function. Spaces in the command string will be used to split the command into separate parts. To insert a non-breaking space, use the escape sequence "\s" (without the quotes). You indicate the point where the selected entries' cite keys should be inserted with "\k" (without the quotes). Finally, literal backslashes must be escaped, so they are written as "\\" (without the quotes).

Note that plugins are only supported in JabRef versions newer than version 2.3 (at the time of writing this, only the SVN version supports plugins). This plugin is made available partly as an example for people who want to develop plugins.

To use the plugin, drop it into a directory named "plugins" directly below the directory where the JabRef jar file is located. JabRef must be restarted to find the plugin.

Discussion

  • Morten Omholt Alver

    The plugin itself. Contains the source code and ant build script.

     
  • Thomas Arildsen

    Thomas Arildsen - 2008-03-28

    Logged In: YES
    user_id=1539622
    Originator: NO

    Could you please post an example of a correct command string?
    I have tried entering the following under settings:
    /usr/bin/emacsclient\s-n\s-e\s"(insert\s\"\\\\\\\\\cite{\k}\")"

    This gives me an exception with the message:
    java.io.IOException: Cannot run program "/usr/bin/emacsclient -n -e "(insert \"\\\\\cite{Adrat2001}\")"": java.io.IOException: error=2, No such file or directory

    However, if I paste /usr/bin/emacsclient -n -e "(insert \"\\\\\cite{Adrat2001}\")" from the above error message to the command line and run it, it works fine (Ubuntu 7.10 with Emacs 22.1.1).
    I have also tried the following under settings (notice spaces):
    /usr/bin/emacsclient -n -e "(insert\s\"\\\\\\\\\cite{\k}\")"

    This doesn't produce any exceptions, but it doesn't insert anything in Emacs either...

     

Log in to post a comment.

MongoDB Logo MongoDB