Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Organizing my papers in org-mode

Tags:

emacs

org-mode

I've just started using org-mode, and so far find it quite useful. I have a very large collection of technical papers in a directory tree, and I'd like to go through them and index them through org-mode. What I'd like is to have a way of going through them and look at the unannotated ones, and annotate them one by one. I imagine doing this by first making up a file of links like [[xxx.pdf][not done yet]], and then being presented with the not done ones, glancing at them and deciding how what annotations to put in. In addition I'd like to add tags. What I'd really like is to be able to make up new tags on the fly. Has anyone done anything like this in org-mode?

Victor

like image 697
Victor Miller Avatar asked Jun 02 '12 18:06

Victor Miller


People also ask

What can I do with Org mode?

Org mode is routinely used to build and manage complex workflows. It does this using an elegantly simple syntax that scales from basic markup to full LaTeX typesetting and from plain text notes to literate programs. Everything you need to get started is demonstrated in the example.

How do I set up org mode?

To enable Org mode on your current document, type M-x org-mode which will enable the Org mode on the current document. Those are minuses, not underscores. MY PROJECT is the title of the document, this can be anything. This will enable Org mode for this document, no matter what the file-ending is.

How do I convert Org mode to PDF?

To export your org file to a web page, type C-c C-e to start the exporter and then press h to select html and o to select open. A new web page should now open in your browser. Similarly, typing l and o in the exporter will convert the org file to latex and then compile it to produce a pdf and display that.

How do I sync org mode?

Open a new buffer, switch to org-mode ( M-x org-mode ). To import a document in a new buffer you can just run M-x os . It prompts you for an URL. Org-sync should import the issues from the repo.


1 Answers

If you have your papers organized like this,

% ls -1 ~/References/functional-programming
The Lambda Calculus.pdf
Recursive Functions of Symbolic Expressions and Their.pdf

you can run a quick script to build an org-file. Save the following as make-org and run it from your directory of papers (sh make-org > papers.org).

#! /bin/sh
#
# make-org -- generates an org-mode file from a directory of PDFs
#
# AUTHOR:
#   Jon-Michael Deldin
# USAGE:
#   cd ~/path/to/papers && make-org > papers.org
#

echo "#+TITLE:   Research Papers"
echo "#+STARTUP: align hidestars indent lognotedone"
echo

for f in *.pdf; do
    name=${f%.*} # strip extension
    path=$(echo $f | sed 's/ /%20/') # encode spaces as %20
    echo "* TODO $name :unread:"
    echo
    echo "[[file:$path][$name]]"
    echo
done

Open papers.org in Emacs, run C-u C-c C-q to realign the tags. Your file should now look like this:

org-mode research papers

In addition I'd like to add tags. What I'd really like is to be able to make up new tags on the fly.

Once you have a headline (thing with * at the beginning, you can hit C-c C-c and add any tag you want.

You may find this detailed write-up of using org-mode and RefTeX or this alternate approach useful, especially if you use LaTeX.

like image 123
jmdeldin Avatar answered Oct 18 '22 06:10

jmdeldin