From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Bib file path relative to home using tilde ~ in Ubuntu Date: Sun, 14 Oct 2012 05:49:36 -1000 Message-ID: References: <87391i31i3.fsf@yagnesh.org> <87r4p21d9a.fsf@yagnesh.org> <87ehl124y6.fsf@yagnesh.org> <20121014072830.GA824@smoon> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNQRn-0003zw-QE for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 11:49:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNQRl-0002SL-Va for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 11:49:47 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:60603) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TNQRl-0002RM-MF for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 11:49:45 -0400 In-Reply-To: <20121014072830.GA824@smoon> (Vladimir Lomov's message of "Sun, 14 Oct 2012 16:28:30 +0900") 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: Vladimir Lomov Cc: emacs-orgmode@gnu.org Vladimir Lomov writes: > 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. I don't know which TeX distribution Ubuntu uses. If it is one of the distributions with kpathsea, then "kpsepath bib" should list standard paths that will be searched for bibtex files. My system shows nine locations, including three under my home directory. These locations work regardless of how emacs is started (from a shell or the gui). hth, Tom > > 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 -- Thomas S. Dye http://www.tsdye.com