Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

bibtex failing

Help
mardi
2010-02-05
2013-04-24
  • mardi
    mardi
    2010-02-05

    Hi, thanks for the awesome plugin.

    Just want to check if the developers are aware of the following issue:

    bibtex 0.99c has recently introduced a security feature. It fails when the files it works on are _not_ in its cwd.
    Example:

    bibtex /some/dir/file.bib ---> fails

    cd /some/dir/
    bibtex file.bib ---> OK

    My gedit and its latex plugin is broken due to this. I'm on Archlinux 64bit.

    For more details:
    http://bugs.archlinux.org/task/17978#comment56989
    http://tug.org/pipermail/tlbuild/2010q1/001304.html

    If you guys are aware and have already addressed this, just disregard this message.

    Cheers,

     
  • mardi
    mardi
    2010-02-06

    No worries, cheers for the reply.

    In case anybody else has the same problem:
    A quick temporary fix is to write a bash wrapper script around bibtex.

    1
    2
    3
    4
    5
    6
    7
    8
    #!/bin/bash
    file=`basename $1`
    path=`dirname $1`
    echo $file
    echo $path
    pushd $path
    bibtex $file
    popd
    

    It basically goes to the directory you give it and executes bibtex from there. Works for me and my gedit-latex plugin.

    Cheers