diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-05-06 17:10:19 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-05-06 17:10:19 +0200 |
commit | 1d5e519d130e447a28a697a7265a562a8d3317b3 (patch) | |
tree | 3190e2aadffc34ddaacb2856fc46eb5240d124cb | |
parent | 8b5c35e41c5ea7fceec83a5134708ae02bcba395 (diff) | |
download | uni-1d5e519d130e447a28a697a7265a562a8d3317b3.tar uni-1d5e519d130e447a28a697a7265a562a8d3317b3.tar.gz uni-1d5e519d130e447a28a697a7265a562a8d3317b3.tar.bz2 uni-1d5e519d130e447a28a697a7265a562a8d3317b3.tar.xz uni-1d5e519d130e447a28a697a7265a562a8d3317b3.zip |
Update pdf environment
-rwxr-xr-x | gup/pdf.gup | 9 | ||||
-rw-r--r-- | preamble.tex | 9 | ||||
-rw-r--r-- | shell.nix | 6 |
3 files changed, 15 insertions, 9 deletions
diff --git a/gup/pdf.gup b/gup/pdf.gup index 7604813..3b3aa3a 100755 --- a/gup/pdf.gup +++ b/gup/pdf.gup | |||
@@ -1,8 +1,9 @@ | |||
1 | #!/usr/bin/env zsh | 1 | #!/usr/bin/env zsh |
2 | 2 | ||
3 | gup -u ${2%.pdf}.md | 3 | base=(${2%.pdf}.(md|lhs)([1])) |
4 | 4 | ||
5 | for i in 0 1; do | 5 | gup -u ${base} preamble.tex |
6 | pandoc -t latex -o $2 -V "geometry=margin=2cm" -V "fontfamily=libertine" -H preamble.tex --listings --latex-engine=lualatex ${2%.pdf}.md >&2 | 6 | |
7 | for i ({0..1}); do | ||
8 | pandoc -t latex -o $1 -V "geometry=margin=2cm" -V "fontfamily=libertine" -H preamble.tex --listings --latex-engine=lualatex ${base} >&2 | ||
7 | done | 9 | done |
8 | [[ -e $2 ]] && touch $2 | ||
diff --git a/preamble.tex b/preamble.tex index d602be5..bd24801 100644 --- a/preamble.tex +++ b/preamble.tex | |||
@@ -1,6 +1,8 @@ | |||
1 | \usepackage{libertine} | ||
1 | \usepackage{listings} | 2 | \usepackage{listings} |
2 | \usepackage{algorithmic} | 3 | \usepackage{algorithmic} |
3 | \usepackage{amsmath} | 4 | \usepackage{amsmath} |
5 | \usepackage{amsthm} | ||
4 | \usepackage{bussproofs} | 6 | \usepackage{bussproofs} |
5 | \usepackage{tikz} | 7 | \usepackage{tikz} |
6 | \usepackage{tikz-qtree,tikz-qtree-compat,circuitikz} | 8 | \usepackage{tikz-qtree,tikz-qtree-compat,circuitikz} |
@@ -13,7 +15,10 @@ frame=tb, | |||
13 | numbers=left, | 15 | numbers=left, |
14 | numberstyle=\tiny, | 16 | numberstyle=\tiny, |
15 | breaklines=true, | 17 | breaklines=true, |
16 | postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}} | 18 | postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}}, |
19 | extendedchars=true, | ||
20 | inputencoding=utf8, | ||
21 | keywordstyle= | ||
17 | } | 22 | } |
18 | 23 | ||
19 | \DeclareMathOperator{\Hom}{Hom} | 24 | \DeclareMathOperator{\Hom}{Hom} |
@@ -24,3 +29,5 @@ postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space} | |||
24 | \providecommand{\lequiv}{\ensuremath{\Leftrightarrow}} | 29 | \providecommand{\lequiv}{\ensuremath{\Leftrightarrow}} |
25 | \providecommand{\limplies}{\ensuremath{\Rightarrow}} | 30 | \providecommand{\limplies}{\ensuremath{\Rightarrow}} |
26 | \providecommand{\seq}{\ensuremath{\Longrightarrow}} | 31 | \providecommand{\seq}{\ensuremath{\Longrightarrow}} |
32 | |||
33 | \newtheorem*{def*}{Definition} | ||
@@ -11,11 +11,9 @@ pkgs.stdenv.mkDerivation rec { | |||
11 | (pkgs.callPackage ./mars.nix {}) | 11 | (pkgs.callPackage ./mars.nix {}) |
12 | pkgs.sqlite | 12 | pkgs.sqlite |
13 | (pkgs.haskellPackages.ghcWithPackages (p: | 13 | (pkgs.haskellPackages.ghcWithPackages (p: |
14 | with p; [ yesod yesod-bin pandoc monad-par persistent-sqlite | 14 | with p; [ yesod yesod-bin pandoc monad-par persistent-sqlite containers base-unicode-symbols containers-unicode-symbols |
15 | ])) | 15 | ])) |
16 | (pkgs.texlive.combine { | 16 | pkgs.texlive.combined.scheme-full |
17 | inherit (pkgs.texlive) scheme-small libertine tipa cm-super context bussproofs mweights fontaxes backnaur enumitem varwidth beamer algorithms tikz-qtree circuitikz todonotes; | ||
18 | }) | ||
19 | ]; | 17 | ]; |
20 | shellHook = '' | 18 | shellHook = '' |
21 | export PROMPT_INFO="${name}" | 19 | export PROMPT_INFO="${name}" |