@@ -27,7 +27,6 @@ set -- $EXAMPLES
27IFS=$oldifs
27IFS=$oldifs
32echo '% Pandoc examples
31echo '% Pandoc examples
@@ -44,6 +43,6 @@ for command in "$@"; do
44 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
43 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
45 echo "1. <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
44 echo "1. <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
46 echo $command >&2
45 echo $command >&2
47− result=$($command) # run the command and create output file
46+ result=$(PATH=$PROGPATH:$PATH $command) # run the command and create output file