jose-villar

Notes written in markdown

View on GitHub

Markdown

Beamer

Available Themes

    ---
    title:
    - Tutorial
    author:
    - José Villar
    date:
    - \today
    institute:
    - Universidad de Talca
    theme:
    - CambridgeUS
    colortheme:
    - beaver
    ---

Body

Conversion

Articles

Header

    ---
    header-includes:
    - \usepackage[spanish]{babel}
    ---

Conversion

Fenced Code Blocks

The color scheme of code blocks can be selected using the --highlight-style option. To see a list of highlight styles, type pandoc --list-highlight-styles.

Example usage:

    pandoc test.md -o test.pdf --indented-code-classes=numberLines --toc
    --highlight-style=espresso

Note: You need to install texlive-latexextra for the above command to work

Templates

To use a latex template, you can make changes to the default, which you can find by using the following command:

    pandoc -D latex > template.tex

Defaults

You can use a yaml file with default configurations by doing the following:

  1. Create a file at ~/.local/share/pandoc/defaults/
  2. Use pandoc <input> -o <output> defaults=<fileName>

     !pandoc % -o test.pdf --defaults=article --template=template.te
    

Citation of Figures

Citation of Tables