diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-08-03 12:49:29 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-08-03 12:49:29 +0200 |
commit | 230688a0b842cf57b316a7ba62910ca387afbce7 (patch) | |
tree | 6367087d25147335972cacf19bd34fb868863fd7 /default.svg.do | |
parent | 7170488c37105691f4a690cbcf1e43000d779b59 (diff) | |
download | dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.gz dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.bz2 dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.xz dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.zip |
Start of complete rewrite to switch to hakyll
Diffstat (limited to 'default.svg.do')
-rw-r--r-- | default.svg.do | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/default.svg.do b/default.svg.do deleted file mode 100644 index 76a3b0b..0000000 --- a/default.svg.do +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | redo-ifchange $2.expr build/preview/preview.sty build/preview/prtightpage.def build/preamble.tex | ||
2 | INPUT=$(realpath $2.expr) | ||
3 | TDIR=$(mktemp -d --tmpdir=/tmp) | ||
4 | PREAMBLE=$(realpath build/preamble.tex) | ||
5 | |||
6 | pushd $(dirname $2) >/dev/null | ||
7 | TEXDIR=$(pwd) | ||
8 | popd >/dev/null | ||
9 | |||
10 | cp build/preview/preview.sty build/preview/prtightpage.def $TDIR | ||
11 | |||
12 | pushd $TDIR >/dev/null | ||
13 | latex -jobname=image >/dev/null <<EOF | ||
14 | \input{$PREAMBLE} | ||
15 | \begin{document} | ||
16 | \begin{preview} | ||
17 | \( | ||
18 | \input{$INPUT} | ||
19 | \) | ||
20 | \end{preview} | ||
21 | \end{document} | ||
22 | EOF | ||
23 | |||
24 | dvisvgm --exact --no-fonts $TDIR/image.dvi 2>&1 | sed -e '/depth=/!d;s/^.*depth=\(.*\)$/\1/' > $TEXDIR/vertical-align | ||
25 | cat $TDIR/image.svg | ||
26 | popd >/dev/null | ||
27 | |||
28 | rm -rf $TDIR \ No newline at end of file | ||