]> git.unchartedbackwaters.co.uk Git - francis/relativity.git/commitdiff
Add TeX4ht build script.
authorFrancis Russell <francis@unchartedbackwaters.co.uk>
Tue, 29 Nov 2011 11:10:40 +0000 (11:10 +0000)
committerFrancis Russell <francis@unchartedbackwaters.co.uk>
Tue, 29 Nov 2011 11:10:40 +0000 (11:10 +0000)
convert_tex4ht [new file with mode: 0755]

diff --git a/convert_tex4ht b/convert_tex4ht
new file mode 100755 (executable)
index 0000000..b645b4e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+# Output is XHTML, document character encoding will be UTF-8.
+OPTIONS1="xhtml,charset=utf-8"
+
+# Yes, that first whitespace character is meant to be there.
+# unicode support, generate unicode characters instead of escape codes, environment file.
+OPTIONS2=" -cunihtf -utf8"
+
+mk4ht xhlatex ./relat10.tex "${OPTIONS1}" "${OPTIONS2}"
+ebook-convert relat10.html "Einstein - Relativity.mobi"