@@ -25,7 +25,9 @@ pandoc -s README -o example0.rtf
25S5 HTML slide show (all in one file):
25S5 HTML slide show (all in one file):
26pandoc -s -m -i -w s5 S5DEMO -o example0.html
26pandoc -s -m -i -w s5 S5DEMO -o example0.html
27Docbook XML:
27Docbook 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/
29Converting a web page to markdown:
31Converting a web page to markdown:
30html2markdown http://www.gnu.org/software/make/ -o example0.txt
32html2markdown http://www.gnu.org/software/make/ -o example0.txt
31From markdown to PDF:
33From markdown to PDF:
@@ -49,9 +51,9 @@ click on the name of the output file:
50while [ $# -gt 0 ]; do
52while [ $# -gt 0 ]; do
51 description="$1"
53 description="$1"
52− command="$2"
54+ lastnum=$num
53 num=$(($num + 1))
55 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/")
55 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
57 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
56 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
58 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
57 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
59 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')