Org Mode Reflex Bibliography Definition

One of the most common questions for new (and seasoned) users of org-mode is how to organize agenda files. Should you put everything in one big file organized by project? Should you create a new file for each project? Or should you have separate "containers" for different types of data: i.e., one file (or subtree) for appointments, one for reference, one for todos, and so on.

The short answer: it doesn't matter. The agenda will be able to parse and organize your TODOs, appointments, and deadlines no matter how they are organized in your files.

If you are using org-mode for the first time, the simplest approach may be to use a single file and to enter projects or todos as the appear. Then, whenever you review your file, reorganize your todos and projects into "groupings" (i.e., trees) that make sense to you. If a tree starts to get too big, then start a new file. Perhaps you'll discover that you want to keep your "work" and "personal" tasks in different files.

Perhaps the main consideration in organizing your files is to consider inheritance and restriction. If you'd like a number of items to belong to the same category or to have the same tags for easy agenda filtering, then they probably belong in the same tree and/or file.

An example:

  • If you'd like all your appointments to belong to the category "appts", then it probably doesn't make sense to scatter them as first level headings among multiple files. It would make more sense to create an appointments file or heading with the category "appts".
  • On the other hand, if you'd prefer to organize your appointments by area of responsibility (e.g., work, personal, health, etc.), then it would make perfect sense to place them in separate trees and/or files.

I am trying to get Emacs (24.3.1), Org-mode (8.0.3, from ELPA) and BibTeX (from TeX Live 2012) to work together. I have followed the instructions under the Bibliography section in but after exporting the document to LaTeX, compiling to PDF, and opening the result (with key sequence in the latest Org mode) I see a question mark instead of a citation (i.e., [?]) which means that the reference was not resolved by LaTeX. In fact, checking the buffer, I see the following warning:

It looked to me that probably Org-mode was looking for a file with the same base name as the file but renaming the file and updating the line did not solve the problem.

Here are two minimal and files that together can be used to reproduce the behavior described above:

The following, using , gives the same result:

Currently I am using the following ugly hack to get the references resolved: I generate the file from the file (using a minimal file) and then I the resulting file directly in my file. This is rather cumbersome and of course requires that I regenerate the file every time I make a change to the file. Although this process can be automated in Emacs by writing a lisp function to encapsulate these actions, I'd rather solve the problem than streamline a hack.

Edit I have checked the file generated by Org mode. It does have the following necessary lines exported in it:



Leave a Reply

Your email address will not be published. Required fields are marked *