mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-19 22:37:51 +00:00
Added new examples for code highlighting.
This commit is contained in:
parent
af1f182c5c
commit
3aea1fcb39
Binary file not shown.
@ -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"
|
Binary file not shown.
Binary file not shown.
55
examples/listings/listings.md
Normal file
55
examples/listings/listings.md
Normal file
@ -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
Normal file
BIN
examples/listings/listings.pdf
Normal file
Binary file not shown.
BIN
examples/listings/listings.png
Normal file
BIN
examples/listings/listings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 196 KiB |
55
examples/without-listings/without-listings.md
Normal file
55
examples/without-listings/without-listings.md
Normal file
@ -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
Normal file
BIN
examples/without-listings/without-listings.pdf
Normal file
Binary file not shown.
BIN
examples/without-listings/without-listings.png
Normal file
BIN
examples/without-listings/without-listings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 198 KiB |
Loading…
Reference in New Issue
Block a user