menu

How do I take notes?

Overview

This is a Jekyll template that will make it easy to:

  1. Add references to references.bib and papers to the papers folder.
  2. Create pages with notes and automatically render and cite references on any page.
  3. Push to the main branch and trigger a build for GitHub pages
  4. Search or otherwise interact with the interface

Each point is explained in more detail below, and if you want more instructions for overall site configuration, see the repository README.

1. References

If you simply want to interact with the references here, the references.bib in the base of the repository can be linked to the papers folder and you can open them in your citation manager of choice. An example manager tool is BibDesk. By default, you should expect the name of the paper pdf to match the name of the citation (and BibDesk will do this automatically for you, this is called “AutoFile”) and it’s suggested to do a format like papers/%f{Cite Key}. You can also just add citations and papers manually, it’s up to you!

2. How to take notes

Once you have your papers, you of course want to take notes! Basically, any post that you write under _posts will render into a page of notes. Any reference that you add to your references file will automatically render on the home page, and can be easily read from here or referenced in any page.

The rederences will generally be available to cite anywhere in the site where you can write Markdown. I chose this approach because I like writing in Markdown. While we could investigate solutions to run a web server and render a PDF, the simpler approach of using Markdown will likely be more comfortable for users with different editor preferences.

Citations

The simplest thing you might want to do is cite something. For example, if I type:

{% cite metz2011nonrigid %}

If you want to cite a particular set of pages or lines, you can do:

{% cite metz2011nonrigid --locator 23-5 %}

And then I can include the entire list of references, usually at the end of the page, as follows:

{% bibliography --cited %}

You can remove the --cited to include all references, regardless of being mentioned or not. And then I can easily render the citation (missing reference). Or make a citation that references lines [1, Pp. 23-5]. You should be able to click either of those numbers and be taken to the references at the bottom.

References

In the same spirit as the above, you can print the reference for any particular citation as follows:

{% reference metz2011nonrigid %}

That renders to the following (and note the class is “citation” if you want to edit the style):

C. T. Metz, S. Klein, M. Schaap, T. van Walsum, and W. J. Niessen, “Nonrigid registration of dynamic medical imaging data using nD+ t B-splines and a groupwise optimization approach,” Medical image analysis, vol. 15, no. 2, pp. 238–249, 2011.

Quotes

You might also want to quote text, verbatim. That might look like this, for the same paper:

{% quote metz2011nonrigid %}
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor.

Lorem ipsum dolor sit amet, consectetur adipisicing.
{% endquote %}

And here is the rendered version of that.

Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor.

Lorem ipsum dolor sit amet, consectetur adipisicing.

(missing reference)
  1. C. T. Metz, S. Klein, M. Schaap, T. van Walsum, and W. J. Niessen, “Nonrigid registration of dynamic medical imaging data using nD+ t B-splines and a groupwise optimization approach,” Medical image analysis, vol. 15, no. 2, pp. 238–249, 2011. Full details | PDF
Examples

For an example post see the Registration example page, and the How to Write Notes page for formatting examples.</span>

3. How to organize notes

I would expect to create a post for each topic, and then reference the relevant papers within it to create a list of references at the bottom that are a subset of your references. This is fairly easy to do starting with an existing page as a template, or the empty example below:

---
title: How to write notes
categories: [about]
tags: [jekyll]
datacamp: 1
maths: 1
toc: 1
---

{% cite keyToReference %}

{% quote metz2011nonrigid %}
This is an example of a cited quote.
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor.

Lorem ipsum dolor sit amet, consectetur adipisicing.
{% endquote %}

<hr>

{% bibliography --cited %}

You can generally organize your notes posts however you like, and make a citation where appropriate.

Tags and Categories

Tags are a strategy for grouping notes. For example, I might tag notes with authors, or other relevant metadata. You can add a list of tags to any post front end matter as follows:

tags: [vsoch,manbat]

You don’t need to define tags a-priori - they will render regardless. For categories, you’ll need to edit the _data/categories.yml file to add names and slugs. A category is more appropriate for grouping information. For example, for the dummy papers here, I might have a category of registration. You can also define categories in front end matter:

categories: [registration]

A single string should work as well.

Thanks

This template would not be possible without notetheme and the jekyll-scholar plugin for citation management. Thank you!

Support

If you have any questions or want to request a feature, please don’t hesitate to open an issue.

Top