Thomas de Graaff
August 23, 2016
Our main goal:
To make our research as reproducable and visible as possible
This entails:
HTML
LaTeX
Markdown
Much less notation than LaTeX. Originally,
LaTeX
is for paper (aka dead trees)Markdown
is for HTML
(blogs, wikipedia and so)Nowadays:
html
or pdf
(via LaTeX)—even in Word’s .docx
if needed (but error prone)Question 1: Why and when do we make use of
html
?
Question 2: Is one always better than the other?
Emphasis:
*italic* **bold**
_italic_ __bold__
Headers:
# Header 1
## Header 2
### Header 3
Unordened lists
* Item 1
* Item 2
+ Item 2a
+ Item 2b
Ordered List
1. Item 1
2. Item 2
3. Item 3
+ Item 3a
+ Item 3b
Links: Cheatsheet
[Cheatsheet](http://assemble.io/docs/Cheatsheet-Markdown.html)
Images:
![alt text](http://example.com/logo.png)
![alt text](figures/img.png)
footnotes:
As it is well known1
As it is well known[^fn1]
[^fn1]: You know nothing, John Snow
Code blocks:
```python
s = "Python syntax highlighting"
print s
```
which renders as:
s = "Python syntax highlighting"
print s
To embed mathematics ‘just’ use LaTeX (see here for list of symbols and note that LaTeX should be installed on your computer):
$$e=mc^2$$
which surprisingly looks as excel type of formulae and renders as:
\[e=mc^2\]
Inline equations just require $ $
, e.g.:
In economics it is well known that:
$\frac{d x}{d y} = -\frac{
\partial u(x,y)/ \partial y} {
\partial u(x,y)/ \partial x}$.
which renders as
In economics it is well known that: \(\frac{d x}{d y} = -\frac{ \partial u(x,y)/ \partial y} { \partial u(x,y)/ \partial x}\).
So how do we glue everything together and produce wonderful html
s and pdf
s out of thin air? With pandoc
Pandoc can convert from (not extensive):
Markdown
(whoohoo), LaTeX
, HTML
, DocBook
, Org
-mode, and … Words docx
(sort off)To (and here we go…)
if not already done do:
thdegraaff/ERSA-WooW
and save it locallygo to the folder ./Assignments/
Open Assignment1.md
in RStudio
and transform Assignment1.md
as much as possible in RStudio
:
LaTeX
example how the format sort of should be.Save it with the same name.
You know nothing, John Snow↩