Browse Source

Added an example on how to generate beamer slides.

pull/106/head
Wandmalfarbe 5 years ago
parent
commit
b38f9e4d79
  1. 52
      examples/beamer/beamer.md
  2. BIN
      examples/beamer/beamer.pdf
  3. BIN
      examples/beamer/beamer.png
  4. 4
      examples/build-examples.sh

52
examples/beamer/beamer.md

@ -0,0 +1,52 @@
---
title: "Example PDF"
author: [Author]
date: "2019-06-16"
subject: "Markdown"
keywords: [Markdown, Example]
lang: "en"
...
# Vinaque sanguine metuenti cuiquam Alcyone fixus
Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab
esse, obstat gravitate.
```java
public class Example implements LoremIpsum {
public static void main(String[] args) {
if(args.length < 2) {
System.out.println("Lorem ipsum dolor sit amet");
}
} // Obscura atque coniuge, per de coniunx
}
```
# Obscura atque coniuge, per de coniunx
- Vertitur iura tum nepotis causa motus.
```html
<!DOCTYPE html>
<html>
<head>
<title>This is the title of the page.</title>
</head>
<body>
<img src="./image.jpg" alt="This is an image.">
</body>
</html>
```
# Scyrumve spiro subitusque mente
```{.sql caption="Pallas nuper longusque cratere habuisse sepulcro pectore fertur."}
CREATE TYPE person_t AS (
firstName VARCHAR(50) NOT NULL,
lastName VARCHAR(50) NOT NULL
);
CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS
$$ SELECT 'P: ' || initcap($1.firstName); $$
LANGUAGE SQL;
```

BIN
examples/beamer/beamer.pdf

Binary file not shown.

BIN
examples/beamer/beamer.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

4
examples/build-examples.sh

@ -11,6 +11,10 @@ echo "- basic-example"
pandoc "basic-example/basic-example.md" -o "basic-example/basic-example.pdf" --from markdown --template "../eisvogel.latex" --listings
pdftoppm -r 150 -png "basic-example/basic-example.pdf" > "basic-example/basic-example.png"
echo "- beamer"
pandoc "beamer/beamer.md" -o "beamer/beamer.pdf" --from markdown --to beamer --template "../eisvogel.latex" --listings
pdftoppm -r 150 -png "beamer/beamer.pdf" > "beamer/beamer.png"
echo "- custom-titlepage"
pandoc "custom-titlepage/custom-titlepage.md" -o "custom-titlepage/custom-titlepage.pdf" --from markdown --template "../eisvogel.latex" -V "logo=custom-titlepage/logo-inverted.pdf" --listings
pdftoppm -r 150 -png "custom-titlepage/custom-titlepage.pdf" > "custom-titlepage/custom-titlepage.png"

Loading…
Cancel
Save