Skip to content

Commit

Permalink
Merge branch 'pandoc'
Browse files Browse the repository at this point in the history
  • Loading branch information
merlijn-sebrechts committed Jul 29, 2018
2 parents ede4e1e + f4e5bcc commit 16a6b94
Show file tree
Hide file tree
Showing 8 changed files with 11,584 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
hack-the-hackerspace*.pdf
hack-the-hackerspace.pdf
hack-the-hackerspace-booklet-body.pdf
hack-the-hackerspace*.html
test*.pdf
test*.tex
30 changes: 13 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
language: R
# addons:
# apt:
# packages:
# - pandoc
# - texlive-xetex
# - texlive-plain-extra
# - texlive-generic-recommended
# - texlive-latex-recommended
# - texlive-latex-extra
# - texlive-fonts-recommended
# - texlive-fonts-extra
# - latex-xcolor
# - dvipng
# - lmodern
install: tlmgr install mdframed mweights needspace sourcecodepro sourcesanspro collection-fontsextra
script: pandoc --verbose pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.pdf --template eisvogel.tex --toc --listings --metadata date="`date +%D`" --include-before-body=include-cover.tex
addons:
apt:
packages:
- poppler-utils
install: tlmgr install mdframed mweights needspace sourcecodepro sourcesanspro collection-fontsextra pdfjam
script: |
pandoc --verbose pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.pdf --template eisvogel.tex --toc --listings --metadata date="`date +%D`" --include-before-body=include-cover.tex --include-after-body=include-back.tex
numpages=$(pdfinfo hack-the-hackerspace.pdf | awk '/^Pages/ { print $2}')
pdfbook hack-the-hackerspace.pdf 2-$(($numpages-2)) -o hack-the-hackerspace-booklet-body.pdf
deploy:
provider: releases
api_key:
secure: cIRIKuDWejK79Kojh2URkQBmQcKDJtH/MmrzgCySQ7ArjbZ6/cPkS014QbNmUft4GiRGZzIiulfkkvLtdT4UVGVXEw7gTK/V5b6bEci6fst4rDPL/hCDeXcLutOxcOwb7vei38V5XhE+1D2UcFQFNJFkeo60WKWR9ybIQ7pAemo=
file: hack-the-hackerspace.pdf
file:
- hack-the-hackerspace.pdf
- hack-the-hackerspace-booklet-cover.pdf
- hack-the-hackerspace-booklet-body.pdf
skip_cleanup: true
on:
repo: "0x20/HTH"
Expand Down
10 changes: 9 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,13 @@ sudo apt install pandoc texlive-plain-generic texlive-latex-extra texlive-fonts-
Generate the print version using `pandoc`.

```bash
pandoc pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.pdf --template eisvogel.tex --toc --listings --metadata date="`date +%D`" --include-before-body=include-cover.tex
pandoc --verbose pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.pdf --template eisvogel.tex --toc --listings --metadata date="`date +%D`" --include-before-body=include-cover.tex --include-after-body=include-back.tex
```

Generate the booklet version from the print version. The cover and back should be printed separately.

```bash
pandoc --verbose pandoc-metadata.yaml README.md [0-9]*.md -o hack-the-hackerspace.pdf --template eisvogel.tex --toc --listings --metadata date="`date +%D`" --include-before-body=include-cover.tex
numpages=$(pdfinfo hack-the-hackerspace.pdf | awk '/^Pages/ { print $2}')
pdfbook hack-the-hackerspace.pdf 2-$(($numpages-2)) -o hack-the-hackerspace-booklet-body.pdf
```
Binary file added back.pdf
Binary file not shown.
11,551 changes: 11,551 additions & 0 deletions cover+back.ai

Large diffs are not rendered by default.

Binary file modified cover.pdf
Binary file not shown.
Binary file added hack-the-hackerspace-booklet-cover.pdf
Binary file not shown.
9 changes: 9 additions & 0 deletions include-back.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
% This file contains latex code that should be added at the front of the
% generated latex document. This is done by using the pandoc command line
% option `--include-before-body=include-cover.tex'
%
% Note that, in order for this to work, \usepackage{pdfpages} also
% needs to be added to the header of the latex document. This is done
% in pandoc-metadata.yaml
%
\includepdf[pages=-]{back.pdf} % include the cover PDF

0 comments on commit 16a6b94

Please sign in to comment.