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
- 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.7 Unnumbered lists
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.8 Mixed lists
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
- All human beings are born free and equal in dignity and rights.
- All human beings are born free and equal in
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.9 Figures and captions
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):
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 ()
= putStrLn "Hello World!" main
More info here (other syntax also possible).
Here is some python code:
And now for some C code, using different caption syntax:
Listing 2: Also with a caption
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.
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.
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.
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.