1 Introduction

This could be your intro. Let’s start with an image (see Fig. 1). Check the github project for more info. A raw version of this content is available here.

1.1 Heading 2

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.1.1 Heading 3

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.1.1.1 Heading 4

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.2 Bold

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.3 Italic

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.4 Bold and italic

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.5 Struck through

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.6 Numbered lists

  1. All human beings are born free and equal in dignity and rights.
  2. All human beings are born free and equal in dignity and rights.
  3. All human beings are born free and equal in dignity and rights.
  4. All human beings are born free and equal in dignity and rights.

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.7 Unnumbered lists

1.8 Mixed lists

1.9 Figures and captions

Figure 2: Eleanor Roosevelt hält die englische Version der Allgemeinen Erklärung der Menschenrechte (FDR Presidential Library & Museum, CC BY 2.0 https://creativecommons.org/licenses/by/2.0, via Wikimedia Commons)

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

We can also generate subfigures (within div element):

a b

Figure 3: This is the main caption of this figure. a:  first figure;  b:  and another one

1.10 Code

Let’s start with some inline code and then move on to code blocks.

A bash script:

ping wikipedia.org

Some haskell code with a caption. It is important to use the lst prefix here.

Listing 1: My haskell Listing, no line numbers

main :: IO ()
main = putStrLn "Hello World!"

More info here (other syntax also possible).

Here is some python code:

def fib(n):
    a, b = 0, 1
    while a < n:
        print(a, end=' ')
        a, b = b, a+b
    print()
fib(1000)

And now for some C code, using different caption syntax:

Listing 2: Also with a caption

#include<stdio.h>
int main()
{
    int a, b = 10;
    a = -b--;
    printf("a = %d, b = %d", a, b);
    return 0;
}

1.11 URLs and email addresses

wikipedia.org, info@wikipedia.org. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.12 Tables

Check out some options here.

Table 1: Table caption goes here
column 1 column 2
All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.
All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

And a more simple table, with custom HTML class for styling. With the amount of --- we can set the relative width of a column too.

Table 2: Simple table with custom styling
col 1 col 2 col 3
row-1a row-1b row1-c is a very long row, let’s see how that will look
row-2a row-2b row2-c

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

And here goes a rather wide table (scrollable in x). Optionally, we can add a HTML div wrapper to set minimal column widths, or some other styling spec. For min-width, the class options are: c75, c100,c125, c150, c175, c200, c250, c300, cfull (number corresponds to pixels). The last one sets each column to full width of it’s content. Note that this styling only applies to the HTML output. LaTeX is styled via the corresponding LaTeX template.

A table with full column width (class=cfull)
column 1 column 2 column 3 column 4 column 5 column 6 column 7
All human beings are born free and equal in dignity and rights Period. Big row
All human beings are born free and equal in dignity and rights End of sentence check mobile

A LaTeX table (other tex snippets also possible) that will be ignored in HTML, but allowed in PDF and Tex formats.

1.13 Footnotes

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.1 And you should now it’s like this yeah. And not something else.

1.14 Quotes

Alle Menschen sind frei und gleich an Würde und Rechten geboren.

All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights.

1.15 Scientific citations

Syntax: [@<ref-in-bibfile>].

All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood [1].

All human beings are born free and equal in dignity and rights, and we can combine multiple citations [1], [2].

And let’s try another one [2].

1.16 Equations

x2 + y2 = z2   (1)

1.17 Cross-references

Thanks to pandoc-crossref you can crossreference equations Eq. 1, figures (Fig. 2) and tables (Table 1). We can also refer to sections in different files, such as Sec. Conclusion.

Or, you can also do Eq. 1 to actually link it.

It is also possible to refer to a codeblock, e.g., Lst. 1.

1.18 Section with custom metadata

Here, instead of the default #section-with-custom-metadata, the ID becomes #sec:customsection). Now you can refer to it like Sec. 1.18, with pre-configured prefixes like in LaTeX.