From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yagnesh Raghava Yakkala Subject: Re: Bib file path relative to home using tilde ~ in Ubuntu Date: Sun, 14 Oct 2012 18:42:54 +0900 Message-ID: <878vb91ja9.fsf@yagnesh.org> References: <87391i31i3.fsf@yagnesh.org> <87r4p21d9a.fsf@yagnesh.org> <14518.1350190655@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNKhJ-0002q5-Ij for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 05:41:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNKhI-0000pl-An for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 05:41:25 -0400 Received: from mailgate3.sys.hokudai.ac.jp ([133.87.1.146]:52625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNKhH-0000pN-Pn for emacs-orgmode@gnu.org; Sun, 14 Oct 2012 05:41:24 -0400 Received: from mailgate3.sys.hokudai.ac.jp (mailgate3.sys.hokudai.ac.jp [127.0.0.1]) by localhost.sys.hokudai.ac.jp (Postfix) with ESMTP id B4A62231558 for ; Sun, 14 Oct 2012 18:41:20 +0900 (JST) Received: from okhotsk19 (okhotsk19.lowtem.hokudai.ac.jp [133.87.217.175]) by mailgate3.sys.hokudai.ac.jp (Postfix) with ESMTP id A8D1D230CA3 for ; Sun, 14 Oct 2012 18:41:20 +0900 (JST) In-Reply-To: <14518.1350190655@alphaville> (Nick Dokos's message of "Sun, 14 Oct 2012 00:57:35 -0400") 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org, Sanjib Sikder Hello Nicholas, Very good explanation. Its like reading a standard textbook. Thank you very much for your continuous help to org community. Nick Dokos writes: > Sanjib Sikder wrote: > >> Hi, >>=20 >> "The easiest way to update is logout from the computer, login again and = start emacs." >>=20 >> I did that. Still not working :( >>=20 > > When you have problems like this, you need to take it in small > steps. > > o What shell are you using? Yagnesh's recommendation assumes > that you are running bash as your shell (presumably on some > Linux/Unix system). Is this assumption correct? > > o Assuming you are using bash, there are two relevant initialization > files: a login shell sources $HOME/.profile and any shell (be it a login > shell or one that is started as a descendant of your login shell) sourc= es > $HOME/.bashrc. > > o Adding > > export FOO=3Dbar > > to such an initialization file causes the variable FOO to be defined (w= ith value "bar") > and to be exported (i.e. it is available in the environment of *any* su= bprocess of > this shell). > > o So log out and log back in[fn:2], start a shell and at the prompt say > > echo $FOO > > Does it say "bar"? If not, don't go any further: the problem has nothin= g to do with > emacs (note that this is the first time I mention emacs). > > o If this part is OK, start emacs *from this shell*: it should inherit th= e variable. > You can check by evaluating this form: > > (getenv "FOO") > > Then the variable will also be available to any subprocesses started by= emacs. > > o In particular, if you define BIBINPUTS as Yagnesh suggests, then the bi= btex invoked > by the latex exporter under emacs will find the bib file where you told= it. >=20=20=20 > o What can go wrong? The usual problem is that you use some graphical > desktop environment and start emacs by clicking on some icon. Then > the emacs process does not have a bash shell as its parent, so it does > not inherit the exported variables. Try starting emacs from a bash > command line.[fn:2] > > Nick > > Footnotes: > [fn:1] If you define it in .bashrc, you shouldn't have to log out and log > back in: just start a new bash shell. > > [fn:2] I prefer defining variables in my .profile and I have arranged > for my .profile to be sourced by the appropriate initialization > file of my graphical desktop environment, so I get it whether I > log in at the console or through the graphical login. That > way *every* process, no matter how it is started, has the > variables available to it. I use .bashrc only for aliases (which > I use very rarely, so most of the time I don't have a .bashrc > file at all). > > > Thanks., --=20 =E0=B0=8E=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B1=8B =E0=B0=AE=E0=B0=B9=E0=B0=BE= =E0=B0=A8=E0=B1=81=E0=B0=AD=E0=B0=BE=E0=B0=B5=E0=B1=81=E0=B0=B2=E0=B1=81 = =E0=B0=85=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B0=BF=E0=B0=95=E0=B0=BF =E0=B0=B5= =E0=B0=82=E0=B0=A6=E0=B0=A8=E0=B0=AE=E0=B1=81=E0=B0=B2=E0=B1=81 YYR