WinEdtWinEdt cannot find bibliography files

Information and discussion about WinEdt, a commercial integrated LaTeX environment for Windows
Post Reply
JWalkup
Posts: 5
Joined: Thu Sep 18, 2008 9:17 pm

WinEdt cannot find bibliography files

Post by JWalkup »

I am using WinEdt 5.5 with MikTeX 2.7. I have a bibliography file titled ruby.bib that works fine when the file is located in the same directory as the main source latex document. Here is the source code:

\bibliographystyle{unsrt}
\bibliography{ruby}

I then placed ruby.bib in the directory C:\bibfiles.

I went into the Tree.ini file and modified it thusly:

PATH="%P;%p;C:\bibfiles" // add additional locations for your bib files, eg.:

I saved the Tree.ini file, then chose Options->Advanced->Load.

When I compile the main latex document, none of the contents of ruby.bib are accessed. I tried Macros->Run Startup Macro as well. I shut down WinEdt and restarted it, to no effect.

What am I doing wrong? What is the exact procedure to follow when placing bibliography files in a newly created folder?

How would I hard code the location of the bibfiles in my main Latex document?

Thanks for any help I receive.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

WinEdt cannot find bibliography files

Post by localghost »

You can try to use the complete path of your bibliography directly.

Code: Select all

\bibliography{C:/bibfiles/ruby}
This should work similar to paths of graphic files.


Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: WinEdt cannot find bibliography files

Post by balf »

I have no tree.ini file. Where is it supposed to be located?
A suggestion: set the environment variable BIBINPUTS=C:\bibfiles at the Windows level. It describes the extra paths for .bib files.

B.A.
JWalkup
Posts: 5
Joined: Thu Sep 18, 2008 9:17 pm

Re: WinEdt cannot find bibliography files

Post by JWalkup »

The Tree.ini file can be found under Options-> Advanced in WinEdt.

What do you mean by "Windows level"?
JWalkup
Posts: 5
Joined: Thu Sep 18, 2008 9:17 pm

Re: WinEdt cannot find bibliography files

Post by JWalkup »

Thanks for the suggestion, balf. It works.

Strange that I was always able to get the Tree.ini file to work before I had to rebuild MikTeX, but after the last build no luck. LaTeX can be really frustrating sometimes. I really dread rebuilds.
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: WinEdt cannot find bibliography files

Post by balf »

"At the Windows level" meant those environment variables that are set on starting Windows (you can set them in System Properties, Advanced: I guess it's what you've done, since it now works).

Regards,
B.A.
Post Reply