Skip to content

Commit 26a802e

Browse files
committed
Produce Word version of the book.
1 parent 91ceb8c commit 26a802e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ code3/*.zip
1313
book3/x.pdf
1414
book3/x.epub
1515
book3/x.mobi
16+
book3/x.docx
1617
unit2/testtmp
1718
unit3/testtmp
1819
tsugi

book3/book.sh

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ echo Using python command: $MY_PYTHON
1414
# For yucks make the epub
1515
cat epub-metadata.txt *.mkd | grep -v '^%' | $MY_PYTHON pre-html.py | $MY_PYTHON verbatim.py | iconv -f utf8 -t ascii//TRANSLIT | pandoc --default-image-extension=svg --css=epub.css -o x.epub
1616

17+
# For yucks make the word
18+
cat epub-metadata.txt *.mkd | grep -v '^%' | $MY_PYTHON pre-html.py | $MY_PYTHON verbatim.py | iconv -f utf8 -t ascii//TRANSLIT | pandoc --default-image-extension=svg -t docx -o x.docx
19+
1720
rm tmp.* *.tmp *.aux
1821
pandoc A0-preface.mkd -o tmp.prefacex.tex
1922
sed < tmp.prefacex.tex 's/section{/section*{/' > tmp.preface.tex

0 commit comments

Comments
 (0)