Jekyll Configuration
09 July 2015

MathJax

Linebreaks

linebreak in multi-line formula
~\\\

example:

\[ {\begin{aligned} x&={\frac {128}{\pi }}2^{\text{zoom level}}(\lambda +\pi ){\text{ pixels}} ~\\ y&={\frac {128}{\pi }}2^{\text{zoom level}}\left(\pi -\ln \left[\tan \left({\frac {\pi }{4}}+{\frac {\varphi }{2}}\right)\right]\right){\text{ pixels}} \end{aligned} } \]

Github Pages

Org Mode

Themes

change theme
$ rake theme:switch name="twitter"
install theme
$ rake theme:install git="https://github.com/dhulihan/hooligan.git"

Include dygraphs in Jekyll-run site from R

  • stackoverflow: 31988717

  • generate with YAML:

    output:
    rmarkdown::html_fragment:
      self_contained: false
      lib_dir: lib
      fig.width: ..
      fig.height: ..
    
  1. render with rmarkdown::html_output, copy dygraph dependencies from header
  2. create a new jekyll layout in _layouts/ with the dygraphs dependencies (changing libs to /libs as mentioned before)
  3. run rmarkdown again, this time with rmarkdown::html_fragment to generate html without header
  4. copy html fragment to _includes/
  5. create a new blog post using layout specified in [2]
  6. include html fragment in body of blog post using %}

CV

markdown-cv

Plugins

ditaa

Installation

install ditaa
sudo dnf install ditaa
place the ditaa.rb plugin in your sites _plugins directory
github: matze: jekyll-ditaa/ditaa.rb

%} /—-+ DAAP /—–+—–+ Audio /——–+ | PC |<——| RPi | MPD |——->| Stereo | +—-+ +—–+—–+ +——–+ | ^ ^ | ncmpcpp | | mpdroid /———+ +——–=——–+ +—-=—-| Nexus S | +———+ %}

PHP Markdown integration

Flavours using the Markdown Extra syntax for definition lists:

  • Markdown Extra3
  • MultiMarkdown2
  • Pandoc6 (interestingly there is a compact_definition_lists parser option)
  • Python Markdown3
  • Kramdown2
  • Discount (uses = for main syntax though)
  • Lunamark1

Flavours that do not support definition lists:

  • GitHub Flavored Markdown
  • Redcarpet