Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a folder, say C:\example\paper with a bib-file C:\example\1.bib.

I also have a tex file C:\example\paper\main.tex where I would like to put a link to 1.bib. I can put the whole path, of course, but I wonder if there is a method to put link for a parent folder C:\example from its subfolder C:\example\paper?

share|improve this question
5  
On a Unix system \bibliography{../1} works; it should also on Windows. –  egreg Sep 22 '11 at 9:39
    
Which Windows version and which filesystem (NTFS or FAT) are you using? –  Martin Scharrer Sep 22 '11 at 9:40
    
I use Windows 7 with NTFS. @egreg, your example works, thanks. Will you write it as an answer? –  Ilya Sep 22 '11 at 11:29
add comment

1 Answer 1

up vote 11 down vote accepted

One can refer to the parent folder by ../ both on Unix systems and in Windows; therefore

\bibliography{../1}

will work for the bibliography file 1.bib that resides in the parent folder.

Note that paths on Windows are expressed with \, but for TeX related programs the slash / works in its place and is of course preferable.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.