From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sanjib Sikder Subject: Re: Bib file path relative to home using tilde ~ in Ubuntu Date: Sat, 13 Oct 2012 20:06:28 +0530 Message-ID: References: <87391i31i3.fsf@yagnesh.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec545479a3344e404cbf1bd16 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN2pz-00082G-4s for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 10:37:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TN2px-0008Bw-SG for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 10:37:11 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:40180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TN2px-0008Bs-LB for emacs-orgmode@gnu.org; Sat, 13 Oct 2012 10:37:09 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so7634669ied.0 for ; Sat, 13 Oct 2012 07:37:08 -0700 (PDT) In-Reply-To: <87391i31i3.fsf@yagnesh.org> 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: Yagnesh Raghava Yakkala Cc: emacs-orgmode@gnu.org --bcaec545479a3344e404cbf1bd16 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Thank you for the reply. I have put the following in my .bashrc file export BIBINPUTS=3D".:$HOME/bib:" export BSTINPUTS=3D".:$HOME/bst:" export TEXINPUTS=3D".:$HOME/bib:" where bib and bst are my two folders whose actual path are /home/USERNAME/bib for example. But it is still not working. Thanks [I did one mistake, initially instead of placing these in .bashrc, i had run those in terminal. Is it causing any problem?] ----------------------------- *Sanjib Sikder *Ph.D. Fellow Chemical Engineering IIT Bombay* * On Sat, Oct 13, 2012 at 7:41 PM, Yagnesh Raghava Yakkala wr= ote: > > Hello Sanjib, > > Sanjib Sikder writes: > > > Hi, > > > > Can I use the bib file path using tilde (~) when doing latex export ? > > > > for example, Why can not I use \bibliography{~/Bib/RefAbv} ? > > where my bibliography file name is RefAbv.bib > > It gives error : undefined citation > > > > I do not want to use \bibliography{/home/USERNAME/Bib/RefAbv} > > > > I use dropbox. So if I can use tilde , then synchronzation is perfect. = I > can > > work in any machine without changing the path of my bib files. > > > > Also I do not want to put the bib file in my working directory. > > > > I am using Ubuntu 12.04 > > Its more of bibtex not finding than org-export problem. > > I have this in my .bashrc (~/git/bib is the folder I put my citations) > > --8<---------------cut here---------------start------------->8--- > export BIBINPUTS=3D".:$HOME/git/bib:" > export BSTINPUTS=3D".:$HOME/git/bib:" > export TEXINPUTS=3D".:$HOME/git/bib:" > --8<---------------cut here---------------end--------------->8--- > > And in my org file I don't even give any path name.. > --8<---------------cut here---------------start------------->8--- > \bibliographystyle{plain} > \bibliography{bibfile} > --8<---------------cut here---------------end--------------->8--- > > > Thanks., > -- > =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 > --bcaec545479a3344e404cbf1bd16 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

Thank you for the reply.

I have put the following in my .= bashrc file

export BIBINPUTS=3D".:$HOME/bib:"
export BS= TINPUTS=3D".:$HOME/bst:"
export TEXINPUTS=3D".:$HOME/bib:= "


where bib and bst are my two folders whose actual path are /home/US= ERNAME/bib for example.

But it is still not working.

Thanks<= br>
[I did one mistake, initially instead of placing these in .bashrc, i= had run those in terminal. Is it causing any problem?]

-----------------------------
Sanjib Sikder
Ph.D. Fellow
Chemical Engineering
IIT Bombay






On Sat, Oct 13, 2012 at 7:41 PM, Yagnesh= Raghava Yakkala <hi@yagnesh.org> wrote:

Hello Sanjib,

Sanjib Sikder <sanjibju2002@gm= ail.com> writes:

> Hi,
>
> Can I use the bib file path using tilde (~) when doing latex export ?<= br> >
> for example, Why can not I use \bibliography{~/Bib/RefAbv} ?
> where my bibliography file name is RefAbv.bib
> It gives error : undefined citation
>
> I do not want to use \bibliography{/home/USERNAME/Bib/RefAbv}
>
> I use dropbox. So if I can use tilde , then synchronzation is perfect.= I can
> work in any machine without changing the path of my bib files.
>
> Also I do not want to put the bib file in my working directory.
>
> I am using Ubuntu 12.04

Its more of bibtex not finding than org-export problem.

I have this in my .bashrc (~/git/bib is the folder I put my citations)

--8<---------------cut here---------------start------------->8---
export BIBINPUTS=3D".:$HOME/git/bib:"
export BSTINPUTS=3D".:$HOME/git/bib:"
export TEXINPUTS=3D".:$HOME/git/bib:"
--8<---------------cut here---------------end--------------->8---

And in my org file I don't even give any path name..
--8<---------------cut here---------------start------------->8---
\bibliographystyle{plain}
\bibliography{bibfile}
--8<---------------cut here---------------end--------------->8---


Thanks.,
--
=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

--bcaec545479a3344e404cbf1bd16--