Rebuild the examples and set the language of the markdown documents to english.
@ -175,7 +175,7 @@ pandoc example.md -o example.pdf --template eisvogel -V lang=de
|
||||
|
||||
### Typesetting a Book
|
||||
|
||||
To typeset a book supply the template variable `-V book`.
|
||||
To typeset a book supply the template variable `-V book` from the command line or via `book: true` in the metadata.
|
||||
|
||||
To get the correct chapter headings you need to tell pandoc that it should convert first level headings (indicated by one `#` in markdown) to chapters with the command line option `--top-level-division=chapter`. Chapter numbers start at 1. If you need to change that, specify `first-chapter` in the template variables.
|
||||
|
||||
|
@ -4,6 +4,7 @@ author: [Author]
|
||||
date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
lang: "en"
|
||||
...
|
||||
|
||||
# Vinaque sanguine metuenti cuiquam Alcyone fixus
|
||||
|
Before Width: | Height: | Size: 243 KiB After Width: | Height: | Size: 243 KiB |
@ -4,6 +4,8 @@ author: [Author]
|
||||
date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
book: true
|
||||
classoption: [oneside]
|
||||
...
|
||||
|
||||
# Crinis mixtaque factisque ille
|
||||
|
Before Width: | Height: | Size: 555 KiB After Width: | Height: | Size: 555 KiB |
@ -26,7 +26,7 @@ pandoc "german/german.md" -o "german/german.pdf" --from markdown --template "../
|
||||
pdftoppm -r 150 -png "german/german.pdf" > "german/german.png"
|
||||
|
||||
# No lang option (-V lang=jp) here because it's
|
||||
# unspported in XeLaTex (in polyglossia).
|
||||
# unspported in XeLaTeX (in polyglossia).
|
||||
# These commands are disabled because the CJK font isn't available on travis.
|
||||
#pandoc "japanese/japanese.md" -o "japanese/japanese.pdf" --from markdown --template "../eisvogel.latex" --listings --pdf-engine=xelatex -V lang=en-us -V CJKmainfont="HiraginoSans-W4"
|
||||
#pdftoppm -r 150 -png "japanese/japanese.pdf" > "japanese/japanese.png"
|
||||
@ -44,7 +44,8 @@ pandoc "green-titlepage/green-titlepage.md" -o "green-titlepage/green-titlepag
|
||||
pdftoppm -r 150 -png "green-titlepage/green-titlepage.pdf" > "green-titlepage/green-titlepage.png"
|
||||
|
||||
echo "- book"
|
||||
pandoc "book/book.md" -o "book/book.pdf" --from markdown --template "../eisvogel.latex" --listings -V book -V classoption=oneside --top-level-division="chapter"
|
||||
# Additional options like `book: true` and `classoption: [oneside]` are set in the markdown file via the YAML metadata block.
|
||||
pandoc "book/book.md" -o "book/book.pdf" --from markdown --template "../eisvogel.latex" --listings --top-level-division="chapter"
|
||||
pdftoppm -r 150 -png "book/book.pdf" > "book/book.png"
|
||||
|
||||
echo "- images-and-tables"
|
||||
|
@ -5,6 +5,7 @@ date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum"
|
||||
lang: "en"
|
||||
titlepage: true
|
||||
titlepage-color: "06386e"
|
||||
titlepage-text-color: "FFFFFF"
|
||||
|
Before Width: | Height: | Size: 291 KiB After Width: | Height: | Size: 291 KiB |
@ -5,6 +5,7 @@ date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum"
|
||||
lang: "en"
|
||||
titlepage: true
|
||||
...
|
||||
|
||||
|
Before Width: | Height: | Size: 286 KiB After Width: | Height: | Size: 286 KiB |
@ -5,6 +5,7 @@ date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum"
|
||||
lang: "en"
|
||||
titlepage: true
|
||||
titlepage-color: "3C9F53"
|
||||
titlepage-text-color: "FFFFFF"
|
||||
|
Before Width: | Height: | Size: 287 KiB After Width: | Height: | Size: 287 KiB |
@ -4,6 +4,7 @@ author: [Author]
|
||||
date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
lang: "en"
|
||||
...
|
||||
|
||||
# Images and Tables
|
||||
|
@ -26,7 +26,8 @@ public class Example implements LoremIpsum {
|
||||
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
|
||||
```{.html caption="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."}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
@ -48,7 +49,6 @@ 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;
|
||||
|
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 213 KiB |
@ -5,6 +5,7 @@ date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum"
|
||||
lang: "en"
|
||||
titlepage: true
|
||||
titlepage-text-color: "7137C8"
|
||||
titlepage-rule-color: "7137C8"
|
||||
|
Before Width: | Height: | Size: 294 KiB After Width: | Height: | Size: 294 KiB |
@ -4,6 +4,7 @@ author: [Author]
|
||||
date: "2017-02-20"
|
||||
subject: "Markdown"
|
||||
keywords: [Markdown, Example]
|
||||
lang: "en"
|
||||
...
|
||||
|
||||
# Vinaque sanguine metuenti cuiquam Alcyone fixus
|
||||
|