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.

Is it possible to tell bibtex to use a file with a specific extension?

If you do \bibliography{mybib.org}, then bibtex simply looks for a file called mybib.org.bib. Is there any way to avoid the .bib extension?

Using texlive 2011-1.

share|improve this question
    
TeX has no interest in the file *.bib -- The compiler bibtex uses the file to create your bibliography file with the extension bbl. –  Marco Daniel Mar 1 '13 at 14:46
1  
Not with BibTeX; it requires the .bib extension. –  egreg Mar 1 '13 at 14:51
1  
If you're managing your bib files in Emacs org-mode, you can give the file a .bib ending and add a local variable to the file to tell Emacs to consider it to be an org file. –  Tyler Mar 1 '13 at 14:59
1  
@Tyler I rarely need to edit the actual entries, which is why bibtex-mode isn't that useful for me. The actual bibtex entry goes on a sub-headline (called ** Bibtex) inside each paper's headline. That way it is nicely hidden away from view, and I can focus on the title and notes I've made about the paper. Since the entry never starts with a * it doesn't bother org-mode in any way. And since bibtex just completely ignores everything outside the bib-entries, they both play nice with each other. –  Bruce Connor Mar 1 '13 at 15:38
1  
That sounds interesting. I keep an enormous single .bib file, with my notes embedded in a comments field within the entry. It's easily searched using bibtex-mode, but is becoming unwieldy. Could you post an example of your bib.org layout somewhere? I'd be very interested in seeing it. –  Tyler Mar 1 '13 at 15:52
show 8 more comments

1 Answer

up vote 4 down vote accepted

The compilation by bibtex doesn't allow such a combintion. The help function of the compiler demonstrates it:

localhost:~ marco$ bibtex --help
Usage: bibtex [OPTION]... AUXFILE[.aux]
  Write bibliography for entries in AUXFILE to AUXFILE.bbl,
  along with a log file AUXFILE.blg.
-min-crossrefs=NUMBER  include item after NUMBER cross-refs; default 2
-terse                 do not print progress reports
-help                  display this help and exit
-version               output version information and exit
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.