HowTo pandoc markdown

HowTo pandoc markdown

Licence : Creative Commons Attribution 4.0 International (CC BY-NC-SA 4.0)
Copyright : Jeremy Fix, CentraleSupelec
Last revision : January 23, 2024 09:11
Link to source : howto.md
Lectures project page: https://github.com/jeremyfix/deeplearning-lectures/

Some options and extensions are provided by the makefile; Some metadata are inserted within the compilation line.

Links

Href

Inline link : here is a doc of the pandoc MD

Biblio

You can cite a bibentry (Lin, Chen, & Yan, 2013). These are automatically inserted at the end of the document. These entries are extracted and formated from the biblio.bib file. It makes use of the pandoc citeproc extension.

Codes

Python

1
2
3
4
5
6
7
8
import keras

def my_function():
   "just a test"
   print 8/2x
while(True):
   x = x + 1
print(x)

Ok

def my_function2():
   "just a test dlkdjqlkdsj"
   print 8/2x

Bash

mymachine:~:mylogin$ echo "Das ist rishtig wunderbach"
Das ist rishtig wunderbach

Math

Below is an example of a math block

\[\xi = 2\]

\[\hat{\xi} = \frac{1}{p}\sum_{i=1}^{n} \sum_{x_j \in C_i} \lVert x_j-\mathbf{w}_i \rVert^2.\]

But you could also make use of inline math as in \(e^{i\pi} + 1 = 0\).

References

Lin, M., Chen, Q., & Yan, S. (2013). Network in network. arXiv. Retrieved from https://arxiv.org/abs/1312.4400