Set latexmk to continous preview, requires custom latexmkrc to call lhs2tex
authorChristiaan Baaij <baaijcpr@wlan229203.mobiel.utwente.nl>
Thu, 11 Feb 2010 11:30:36 +0000 (12:30 +0100)
committerChristiaan Baaij <baaijcpr@wlan229203.mobiel.utwente.nl>
Thu, 11 Feb 2010 11:30:36 +0000 (12:30 +0100)
Makefile
latexmkrc [new file with mode: 0644]

index f1782ef7aeda60f2443b049f52d73c6eec90d85a..33296797cf1f11e4ecdb96002c776017d8dee1ea 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,5 @@
 all:
-       lhs2TeX -v --poly < cλash.lhs > cλash.tex
-       latexmk -pdf -pv cλash.tex
+       latexmk -r latexmkrc -pdf -pvc cλash.lhs
 
 clean:
        latexmk -CA
diff --git a/latexmkrc b/latexmkrc
new file mode 100644 (file)
index 0000000..153eca0
--- /dev/null
+++ b/latexmkrc
@@ -0,0 +1,2 @@
+$pdflatex = 'lhs2TeX -v --poly < cλash.lhs > cλash.tex; pdflatex -file-line-error -halt-on-error -synctex=1 cλash.tex cλash.pdf';
+$clean_ext = "synctex.gz ptb tex";
\ No newline at end of file