Using Markdown for Note Taking

sudo apt-get install texlive-pdf pandoc

Creating PDF Files

To convert from Markdown to PDF you do this (-V allows specification of variables such as margins):

pandoc --latex-engine=xelatex -V geometry:margin=3cm -s -o doc.pdf

Creating docx Files

Converting to Word docx format is the same. It’s possible to also take in a template document, using the -t argument, which is used to apply styles to the finished document.

pandoc --latex-engine=xelatex -V geometry:margin=3cm -s -o doc.docx


# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4

Text Formatting

Emphasis, aka italics, with *asterisks* or _underscores_. Strong emphasis, aka bold, with **asterisks** or __underscores__. Combined emphasis with **asterisks and _underscores_**. Strikethrough uses two tildes. ~~Scratch this.~~


Timestamps There are VS Code plugins for adding timestamps, e.g.: 2020-03-13T10:24:30.403Z.


## Quotes > Blockquotes are very handy in email to emulate reply text. > This line is part of the same quote. Quote break. This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.


# Links [I'm an inline-style link]( [I'm an inline-style link with title]( "Google's Homepage") [I'm a relative reference to a repository file](../blob/master/LICENSE)


See this VS Code plugin for pasting images.

# Images You can use [this VS Code plugin]( to paste images into Markdown. It saves them to the same location as the markdown file. ![Here's an example image](2020-03-13-09-49-17.png)

Syntax Highlighted Code

# Code ```javascript var s = "JavaScript syntax highlighting"; alert(s); ``` ```python s = "Python syntax highlighting" print s ``` ``` No language indicated, so no syntax highlighting. But let's throw in a <b>tag</b>. ```


# Tables | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 |



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Leading with strategy, design and architecture, we connect cloud, data, and cyber to engineer and deliver large-scale, complex transformations.