Annotum, the future of scholarly publising

Annotum is “an open-source, open-process, open-access scholarly authoring and publishing platform based on WordPress.” This sound very interesting if you are into scholarly publishing, like the open-* ideas, and work with collaborators – or just work in different places.

It supports LaTeX, figure upload with captions, bibliography management (quite easy through DOIs), and I guess some other features that I have not explored. I am particularly interested in linking all sorts of files (e.g. data), and export capabilities (specially, into straight LaTeX).

This is the reference to a trial article I have written: Daniel Duque. A trial: Annotum trial [Internet]. Version 3. Annotum trial. 2012 Mar 16.


Lost pdf author and title with latex

¿Lost pdf author and pdf title? Just go ahead, edit the pdf file, and perhaps  (YMMV) you’ll find a readable section with the relevant info. Look for “\Title”. This happened to me while running latex + dvips -Ppdf  + dvips… the author and title info from the hyperref section was lost in the process (pdflatex seems work ok.)

The relevant section of my pdf:

<</Producer(dvips + GPL Ghostscript  9.0)
/CreationDate(Tue May 31 19:00:02 2011)
/Creator(gnuplot 4.4 patchlevel 0)
/Title(Proyecto Investigador)
/Author(Daniel Duque)



vi, emacs quick macros


Some may be used to the magical “.” (period) command in vi, which magically repeats “the last thing you did”. Since this last thing can be quite complicated, this is some kind of easy macro in practice. Imagine you want to add a period at the end of every sentence of a list. Simple: type “A-<esc>” (i.e. A-hyphen-escape key) on the first sentence. Then go j.j.j.j.j.j.j. like mad. You can also type “4.” to do the thing 4 times (not very useful in this case).


But you know all this if you use vi anyway (why do you use it otherwise?). What I guess many people don’t know is that emacs also has quick macros. Type “C-x (” (i.e. control-x open parenthesis) and read the warning “defining keyboard macro”. “Keyboard” means this is not defined in some other way (e.g. in a config file). Now, type your macro. In the previous case you could type now C-a, “-“, down-arrow. Them “C-x )” to end your macro. Notice this includes the “down-arrow”, which moves to the next line (C-n is a more traditional way to do this). Type now C-e to execute the macro once. Type C-n C-x to do it several times (n is a number).


Cambiar nombres de secciones en LaTeX

Para cambiar el nombre de una sección, hay que cambiar el comando correspondiente, de una lista que puede encontrarse en el FAQ de TeX. Pero si se usa babel, hay que hacerlo después de \begin{document}, no antes (“preámbulo”). Lo elegante, para no olvidarse, es escribir en el preámbulo:



El comando AtBeginDocument se encarga de ejecutar lo que queramos después de \begin{document}.

Continue reading

Fancy headers in LaTeX books

First in a series of notes on book formating under LaTeX. This is the header.tex file that defines the format for the headers and footers for each page. It’s pretty standard, as described in e.g. the Page Layout chapter of the wikibook on LaTeX. The only trick is taken from Mark Schenk’s page about his MSc Thesis: this piece of code makes empty pages (typically, the ones on even pages across the first pages of some chapters) completely and immaculately empty.

Continue reading


Readability: a very nice book bookmarklet (I didn’t know this word even existed) to improve readability of any given page.

Readability is a simple tool that makes reading on the Web more enjoyable by removing the clutter around what you’re reading. Follow the steps below to install Readability in your Web browser

Try it on online newpaper articles (not front pages!). Also great with manuals, blog pages…