Mass renaming papers with BibTex+JabRef export filters

Monday, June 28th, 2010 | Author:

If you manage your (scientific) references, such as journal articles, arXiv papers and textbooks within some reference management system that uses BibTex as storage/export format, and you have local copies of your files, then the following might be of interest:

I wrote a JabRef export filter that takes a BibTex file with file links (so, BibTex fields of the form file={somefile.pdf}) and writes a linux shell script to rename the files systematically according to the scheme [bibtexkey] - [authors] - [title].[extension]. Then JabRef can find the file again via its automatic file association mechanism. I use lower-case bibtexkeys but the export filter is easily adaptable, read about it on the JabRef custom export filter documentation page.

Just create (or download) a file named "renamer.layout" and fill in this line:
\begin{file}mv "\format[FileLink]{\file}" "\format[ToLowerCase,FormatChars]{\bibtexkey} - \format[AuthorNatBib,ToLowerCase,FormatChars,RemoveBrackets]{\author} - \format[FormatChars,RemoveBrackets,ToLowerCase]{\title}.\format[Replace(.*:,),ToLowerCase]{\file}"\end{file}
then open JabRef and go to the menu entry Options->Manage custom exports->Add new where you enter (for example) "renamer" as Export name, the full path to your renamer.layout file in the Main layout file field and "sh" as File extension.

Then open your BibTex file (.bib) with JabRef and then select the menu entry File->Export and select in the drop-down-menu Files of Type your newly created export filter renamer (*.sh). This gives you a shell script which, if executed, renames all files linked from the BibTex document into a standardised format (and moves all into the directory from where you execute the script).

Continue reading «Mass renaming papers with BibTex+JabRef export filters»

Category: English, Mathematics | Comments off

Managing news

Wednesday, January 27th, 2010 | Author:

Today in the series "How to do XYZ with software?":

How to manage news?

It is vital to get at least some news. You need to know about political developments, to be informed when it's time to cast your vote (or, if you're not living in a democracy, when it's time to protest). You need to know about developments in your work, so you can adapt and don't risk losing your job because you're too old-fashioned. You need to know about economy if you're investing money. You need to stay informed about every project you want to participate in. Maybe you even need to know what pop-stars do, because if not, you have nothing to talk about with your friends.
How to cope with this information overload?
Continue reading «Managing news»

Category: English | Comments off

Managing the paper's metadata

Monday, January 25th, 2010 | Author:

Today in the series "How to do XYZ with software?":

Annotations and other metadata issues

(You might not want to read this if you're not using Linux or if you're not a developer)
Continue reading «Managing the paper's metadata»

Category: English | 6 Comments

Managing papers

Saturday, January 23rd, 2010 | Author:

Today in the series "How to do XYZ with software?":

How to manage papers?

I have lots of PDFs on my hard-disk, and most of them is half-read or unread. Since I'm studying mathematics, these PDFs are lecture notes, research papers, my own notes and several more-or-less relevant books. How do I organise them? It's a problem.

Continue reading «Managing papers»

Category: English, Mathematics | Comments off

Managing contacts

Thursday, January 21st, 2010 | Author:

Today in the series "How to do XYZ with software?":

How to manage contacts?

Managing contacts has never been easy - there are various kinds of data floating around (phone numbers, email addresses, private addresses, work addresses, birthdays ...) and the data is always changing ("Hey I got a new phone number ... "). It's better to keep all contacts in one place and to take back-ups of your precious data.

Continue reading «Managing contacts»

Category: English, Not Mathematics | One Comment

Managing photos

Tuesday, January 19th, 2010 | Author:

Today in the series "How to do XYZ with software?":

How to manage photos?

Probably you have some photos on your computer. Probably you even have a digital camera or at least a mobile phone with integrated camera. If you're looking forward to take a second look at your photos in a few years, you'll need to sort, catalogue and back-up your photos! How to do this?

Continue reading «Managing photos»

Category: English, Not Mathematics | Comments off