Browse Source

Added new examples for code highlighting.

pull/6/head
Wandmalfarbe 8 years ago
parent
commit
3aea1fcb39
  1. BIN
      examples/basic-example/basic-example.pdf
  2. 8
      examples/build.sh
  3. BIN
      examples/custom-titlepage/custom-titlepage.pdf
  4. BIN
      examples/default-titlepage/default-titlepage.pdf
  5. 55
      examples/listings/listings.md
  6. BIN
      examples/listings/listings.pdf
  7. BIN
      examples/listings/listings.png
  8. 55
      examples/without-listings/without-listings.md
  9. BIN
      examples/without-listings/without-listings.pdf
  10. BIN
      examples/without-listings/without-listings.png

BIN
examples/basic-example/basic-example.pdf

Binary file not shown.

8
examples/build.sh

@ -7,4 +7,10 @@ pandoc "custom-titlepage/custom-titlepage.md" -o "custom-titlepage/custom-titl
pdftoppm -r 150 -png "custom-titlepage/custom-titlepage.pdf" > "custom-titlepage/custom-titlepage.png"
pandoc "default-titlepage/default-titlepage.md" -o "default-titlepage/default-titlepage.pdf" --from markdown --template "../eisvogel.latex" --listings
pdftoppm -r 150 -png "default-titlepage/default-titlepage.pdf" > "default-titlepage/default-titlepage.png"
pdftoppm -r 150 -png "default-titlepage/default-titlepage.pdf" > "default-titlepage/default-titlepage.png"
pandoc "listings/listings.md" -o "listings/listings.pdf" --from markdown --template "../eisvogel.latex" --listings
pdftoppm -r 150 -png "listings/listings.pdf" > "listings/listings.png"
pandoc "without-listings/without-listings.md" -o "without-listings/without-listings.pdf" --from markdown --template "../eisvogel.latex" --highlight-style kate
pdftoppm -r 150 -png "without-listings/without-listings.pdf" > "without-listings/without-listings.png"

BIN
examples/custom-titlepage/custom-titlepage.pdf

Binary file not shown.

BIN
examples/default-titlepage/default-titlepage.pdf

Binary file not shown.

55
examples/listings/listings.md

@ -0,0 +1,55 @@
---
title: "Example PDF"
author: [Author]
date: 2017-02-20
subject: "Markdown"
tags: [Markdown, Example]
...
# Vinaque sanguine metuenti cuiquam Alcyone fixus
## Aesculeae domus vincemur et Veneris adsuetus lapsum
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
}
```
Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. Obscura atque coniuge, per de coniunx, sibi medias
commentaque virgine anima tamen comitemque petis, sed.
```html
<!DOCTYPE html>
<html>
<head>
<title>This is the title of the page.</title>
</head>
<body>
<a href="http://example.com">This is a link.</a>
<img src="./image.jpg" alt="This is an image.">
</body>
</html>
```
Vertitur iura tum nepotis causa; motus. Diva virtus! Acrota
destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente
Pirithoi abstulit, lapides.
```sql
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/listings/listings.pdf

Binary file not shown.

BIN
examples/listings/listings.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

55
examples/without-listings/without-listings.md

@ -0,0 +1,55 @@
---
title: "Example PDF"
author: [Author]
date: 2017-02-20
subject: "Markdown"
tags: [Markdown, Example]
...
# Vinaque sanguine metuenti cuiquam Alcyone fixus
## Aesculeae domus vincemur et Veneris adsuetus lapsum
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
}
```
Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. Obscura atque coniuge, per de coniunx, sibi medias
commentaque virgine anima tamen comitemque petis, sed.
```html
<!DOCTYPE html>
<html>
<head>
<title>This is the title of the page.</title>
</head>
<body>
<a href="http://example.com">This is a link.</a>
<img src="./image.jpg" alt="This is an image.">
</body>
</html>
```
Vertitur iura tum nepotis causa; motus. Diva virtus! Acrota
destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente
Pirithoi abstulit, lapides.
```sql
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/without-listings/without-listings.pdf

Binary file not shown.

BIN
examples/without-listings/without-listings.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Loading…
Cancel
Save