emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bib file path relative to home using tilde ~ in Ubuntu


From: Vladimir Lomov
Subject: Re: [O] Bib file path relative to home using tilde ~ in Ubuntu
Date: Sun, 14 Oct 2012 16:28:30 +0900
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]