Our main goal:
To make our research as reproducable and visible as possible
This entails:
HTML
LaTeX
Markdown
Latex
and friendsLaTeX
Tex
, a markup language invented by Donald KnuthHTML
pages (e.g., Wikipedia)HTML
(see also)\documentclass[12pt]{article}
\begin{document}
\section{My Paper}
I just discovered that:
\begin{equation}
e=mc^2
\end{equation}
\end{document}
LaTeX
is for paper (aka dead trees)Markdown
is for HTML
(blogs, wikipedia and so)Question 1: Why and when do we make use of pdf’s and not 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:
http://assemble.io/docs/Cheatsheet-Markdown.html
[Cheatsheet](http://assemble.io/docs/Cheatsheet-Markdown.html)
Images:
![alt text](http://example.com/logo.png)
![alt text](figures/img.png)
Code blocks:
markdown
python s = “Python syntax highlighting” print s
which renders as:
s = "Python syntax highlighting"
print s
To embed mathematics ‘just’ use Latex notation:
$$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 kwown 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 kwown 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 htmls and pdfs out of thin air? With pandoc
R
git clone https://github.com/darribas/WooWii
go to /WooWii/Paper/Assignment3/
RepPaper.txt
as much as possible in RStudio
table