From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: Bib file path relative to home using tilde ~ in Ubuntu Date: Sun, 14 Oct 2012 16:28:30 +0900 Message-ID: <20121014072830.GA824@smoon> References: <87391i31i3.fsf@yagnesh.org> <87r4p21d9a.fsf@yagnesh.org> <87ehl124y6.fsf@yagnesh.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNIcn-0001rQ-78 for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 03:28:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNIcm-00089K-9n for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 03:28:37 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:52735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNIcm-00089C-25 for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 03:28:36 -0400 Received: by mail-la0-f41.google.com with SMTP id p5so3057360lag.0 for ; Sun, 14 Oct 2012 00:28:34 -0700 (PDT) Content-Disposition: inline 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: emacs-orgmode@gnu.org Hello, ** Sanjib Sikder [2012-10-14 11:53:52 +0530]: > Hi, > ---------------------------------------------------------------------------------------------------------------------------------------- >> First of all can you confirm your .bashrc setting is working.? >> in the terminal >> --8<---------------cut here---------------start------------->8--- >> echo $BIBINPUTS > --8<---------------cut here---------------end--------------->8--- > *Here is the output* > ~$ echo $BIBINPUTS > .//:/home/USERNAME/bst//:.//:/home/USERNAME/bibFiles//: > ------------------------------------------------------------------------------------------------------------------------------------------ >> and also can you check what is the value of BIBINPUTS in emacs.? Within >> Emacs >> evaluate the following (either in scratch buffer or with key press `M-:' or >> with `M-x eval-expression') >> --8<---------------cut here---------------start------------->8--- >> (getenv "BIBINPUTS") >> --8<---------------cut here---------------end--------------->8--- > *OUTPUT* is: nil > --------------------------------------------------------------------------------------------------------------------------------------------- >> May be the last resort would be setting the variable within your .emacs >> --8<---------------cut here---------------start------------->8--- >> (setenv "BIBINPUTS" ".:$HOME/bib:") >> --8<---------------cut here---------------end--------------->8--- > I will try this one > ----------------------------------------------------------------------------------------------------------------- > BTW how you are starting emacs? (command line or gui mouse click?) > I am starting emacs from GUI mouse click. All the above tests are done only > with the .bashrc, i.e., after removing the lines from .profile and .gnomerc You use incorrert path for bibtex files, use $HOME/texmf/bibtex/bib this is the standard. latex as well as bibtex searches for files in standard paths, like the one above. If your files located in other places you have to set env. variables (TEXINPUTS and BIBINPUTS). However setting env. variables is a bit tricky. If one uses only terminal session it is enough to set variables in apropriate RC files: bash uses ~/.bash_profile and ~/.bashrc depending on type of shell (login or not), for zsh see manual. When run graphical session it depends what DE and DM are used. GNOME, Unity launched by gdm or lightdm read user settings from ~/.profile --- WBR, Vladimir Lomov -- Walk softly and carry a big stick. -- Theodore Roosevelt