Adding Title and Author to PDFs exported from Jupyter Notebook

I am doing some end of the year cleaning on my hard drive and just uploaded the Jupyter Notebook I used in the analysis of a mobile phone lying still earlier this year. For some future studies, I thought it would be interesting to explore the PDF export functionality from Jupyter. That worked very well except for that I didn’t get any title or author name on top: Then I found a solution on Stack Overflow....

December 30, 2022 · 1 min · 127 words · ARJ

Em-dash is not a hyphen

I have been doing quite a lot of manuscript editing recently and realize that many people—including academics—don’t understand the differences between the symbols hyphen, en-dash, and em-dash. So here is a quick explanation: hyphen (-): is used to join words (“music-related”). You type this character with the Minus key on the keyboard, so it is the easiest one to use. en-dash (–): is used to explain relationships between two concepts (“action–couplings”) or in number series (0–100)....

May 13, 2022 · 2 min · 327 words · ARJ

How to use quotation marks in academic writing

Quotation marks are used for different things in texts. Sometimes they are used to mark actual quotations, things that people have said and written. Other times they are used to mark a word, such as this is “funny”. Some people also use them to Single vs double quotes There is not a right or wrong when it comes to using single (’) or double (") quotes. Different style guides say different things, so use whatever is suggested....

November 10, 2021 · 1 min · 146 words · ARJ

What tools do I use for writing?

Earlier today I was asked about what tools I use when writing. This is not something I have written about here on the blog before, although I do have very strong opinions on my own tools. I actually really enjoy reading about how other people work, so writing about it here may perhaps also be interesting to others. Text editor: Atom Most of my writing, whether it is e-mail drafts, meeting notes, or academic papers, is done in the form of plain text files....

October 7, 2019 · 4 min · 734 words · ARJ

Unofficial ERC Starting Grant LaTeX template

After I mentioned that I used LaTeX for an ERC Starting Grant application in a previous blog post, I have gotten several questions from people about what type of LaTeX template I used. Unfortunately, the ERC does not provide any LaTeX template, only templates for MS Word and OpenOffice. My scientific workflow is so dependent on LaTeX/BibTeX that I decided to recreate a LaTeX document setup that resembled the MS Word template....

February 3, 2013 · 1 min · 197 words · ARJ

LaTeX fonts in OSX

When creating figures for papers written in LaTeX, I have found it aesthetically unpleasing to have different fonts in the figures than in the text. Most figures I create in either OmniGraffle or Matlab, and here I have relied on regular OSX fonts. Fortunately, I have discovered that it is possible to use LaTeX fonts in OSX. Apparently, this is now included as a feature in the latest version(s) of the MacTeX distribution (?...

February 7, 2012 · 1 min · 162 words · ARJ

Compact bibliography list in LaTeX

I have already written about how to compact lists earlier today. Now is the time to compact the bibliography… This is how the regular bibliography in LaTeX looks like: First I found a suggestion to use the setspace function, but it turns out that it is much easier to just use the bibsep option to natbib. Just add the following to the preamble: \usepackage{natbib} \setlength{\bibsep}{0.0pt} and you will get something like this:

November 2, 2011 · 1 min · 72 words · ARJ

Compact lists in LaTeX

I have for a long time been struggling with making lists more compact in LaTeX. While the standard lists often look good, as seen in the example below, there are times when space limits, etc. makes it necessary to save some space. Up until now I have been using things like the rather ugly \vspace{-7pt} command to remove space between list items. Now I finally decided to figure out a better solution....

November 2, 2011 · 1 min · 173 words · ARJ

Using MultiMarkDown

I tend to move between different computers/devices and OSes all the time, and have started to become very tired of storing text data in different formats that are either not compatible or tend to mess up the formatting between different applications (e.g. RTF files). To avoid this I am now testing to write all my text-based documents (notes, memos, letters, etc.) using MultiMarkDown. This is a so-called Lightweight markup language, similar to e....

June 30, 2011 · 2 min · 276 words · ARJ

Remove chapter and part text from LaTeX documents

When using the \part and \chapter tags in LaTeX you will typically end up with parts and chapters that say “part” and “chapter” before the name you have written. Putting these lines in your preamble will remove this: \renewcommand{\partname}{} \renewcommand{\chaptername}{} \renewcommand{\thechapter}{} \renewcommand{\thesection}{}

May 4, 2011 · 1 min · 42 words · ARJ