@@ -25,7 +25,9 @@ pandoc -s README -o example0.rtf
2525S5 HTML slide show (all in one file):
2626pandoc -s -m -i -w s5 S5DEMO -o example0.html
2727Docbook XML:
28−pandoc -s -w docbook README -o example0.db
28+pandoc -s -S -w docbook README -o example0.db
29+Chunked XHTML via Docbook and the third-party `xmlto` tool:
30+xmlto xhtml example(-1).db -o example0/
2931Converting a web page to markdown:
3032html2markdown http://www.gnu.org/software/make/ -o example0.txt
3133From markdown to PDF:
@@ -49,9 +51,9 @@ click on the name of the output file:
4951num=0
5052while [ $# -gt 0 ]; do
5153 description="$1"
52− command="$2"
54+ lastnum=$num
5355 num=$(($num + 1))
54− command=$(echo $command | sed -e "s/0/$num/")
56+ command=$(echo $2 | sed -e "s/0/$num/" -e "s/(-1)/$lastnum/")
5557 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
5658 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
5759 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')