Skip to content

Commit aeacbbc

Browse files
committed
Add pandoc options and PDF build script
1 parent b8b834e commit aeacbbc

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
if [[ $# -eq 0 ]]
4+
then
5+
input="proposal.md"
6+
else
7+
input="$1"
8+
fi
9+
10+
output="${input%.*}.pdf"
11+
12+
echo "Writing PDF to $output ..."
13+
pandoc --defaults pandoc.yaml "$input" --output "$output"
14+

pandoc.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
highlight-style: haddock
2+
# better Unicode support
3+
pdf-engine: xelatex
4+
variables:
5+
documentclass: article
6+
papersize: A4
7+
fontsize: 11pt
8+
# fallback font for symbols: https://eskola.uk/2021/pandoc-latex-font-fallback/
9+
header-includes: |
10+
\usepackage[Symbols]{ucharclasses}
11+
\newfontfamily\fallbackfont{DejaVu Sans}
12+
\setTransitionsForSymbols{\fallbackfont}{\normalfont}
13+
geometry:
14+
- margin=2.5cm
15+
colorlinks: true

0 commit comments

Comments
 (0)