emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Myles English" <mylesenglish@gmail.com>
To: Sanjib Sikder <sanjibju2002@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: BIBINPUT in .bashrc not recognized by Emacs
Date: Sat, 13 Oct 2012 21:38:01 +0100	[thread overview]
Message-ID: <874nlyjefq.fsf@ed.ac.uk> (raw)
In-Reply-To: <CAL1SgUrdSh=WOuft_4TjsNJqqMEoUPoWja+Sz+ENjtBA-nnsjg@mail.gmail.com>


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

  reply	other threads:[~2012-10-13 20:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-13 19:24 BIBINPUT in .bashrc not recognized by Emacs Sanjib Sikder
2012-10-13 20:38 ` Myles English [this message]
2012-10-16 17:01   ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874nlyjefq.fsf@ed.ac.uk \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sanjibju2002@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).