From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Myles English" Subject: Re: BIBINPUT in .bashrc not recognized by Emacs Date: Sat, 13 Oct 2012 21:38:01 +0100 Message-ID: <874nlyjefq.fsf@ed.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN8Lk-0005Jd-8h for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 16:30:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TN8Li-0007mE-WD for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 16:30:20 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:38956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN8Li-0007l9-Oc for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 16:30:18 -0400 Received: by mail-wi0-f177.google.com with SMTP id hj13so564772wib.12 for ; Sat, 13 Oct 2012 13:30:17 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sanjib Sikder Cc: emacs-orgmode@gnu.org Hi Sanjib, Sanjib Sikder writes: > Hi, > > I was trying to set a location for my bibliography files which can be found > by org mode. The following lines in .bashrc does not work with orgmode > latex export > > export TEXINPUTS=".//:$HOME/bibFiles//:$TEXINPUTS" > export BSTINPUTS=".//:$HOME/bibFiles//:$BIBINPUTS" > export BIBINPUTS=".//:$HOME/bst//:$BSTINPUTS" That doesn't look quite right, this looks better: export TEXINPUTS="./:${HOME}/bibFiles:${TEXINPUTS}" Then type "echo $TEXINPUTS" in a terminal to see what it says. > I have put these lines in .gnomerc and .profile also I suggest you try one thing at a time. > Normal pdflatex and bibtex runs from terminal successfully locates the bib > folder and bib files If the directory where you run these commands from is the same directory that your files are in it doesn't have to look up the environment variables. What happens if you type 'echo $BIBINPUTS' in that directory? > and generates the document with correct references but orgmode latex > export does not. If I put the .bib file where my .org file is, then > orgmode successfuly creates the document with reeerences. > > How can i set BIBINPUT correctly so that emacs finds the bib files ? > > the following link says that emacs does not recognize .bashrc. Even after > putting those codes in .gnomerc and .profile, emacs does not find the bib > files > I wonder if you have another file that is loaded first so that the ~/.profile is not loaded: $ man bash "it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable." Myles