Switch from txt2tags to using pandoc with Markdown (Pandoc flavour) input.

This commit is contained in:
Jim Hague 2016-10-29 21:51:59 +01:00
parent fcc48a7a58
commit 07e6191f9c
5 changed files with 4 additions and 13 deletions

View File

@ -1,6 +1,3 @@
This is a txt2tags input file.
The first 3 lines are headers, and are ignored.
This book is for tunes that are not part of the regular
Havoc session or dance repertoire.

View File

@ -1,6 +1,3 @@
This is a txt2tags input file.
The first 3 lines are headers, and are ignored.
This book provides the dots for the music to all the dances
performed by Cry Havoc. The name of the dance is given as the tune title.
If the name of the tune differs from the name of the dance, the tune

View File

@ -1,6 +1,3 @@
This is a txt2tags input file.
The first 3 lines are headers, and are ignored.
This book provides the dots for the tunes commonly played at Cry Havoc
music sessions.

View File

@ -37,8 +37,8 @@ done
for item in intro
do
rm -f $builddir/$item.tex
if [ -r $booke/$item.txt ]; then
txt2tags --no-headers --target=tex --outfile=$builddir/$item.tex $booke/$item.txt
if [ -r $booke/$item.md ]; then
pandoc --from=markdown --to=latex --output=$builddir/$item.tex $booke/$item.md
else
touch $builddir/$item.tex
fi

View File

@ -86,8 +86,8 @@ sed -e "s/@BUILD@/$buildno/" -e "s/@SUBTITLE@/$subtitle/" \
for item in intro
do
rm -f $webdir/$item.html
if [ -r $booke/$item.txt ]; then
txt2tags --no-headers --target=html --outfile=$webdir/$item.html $booke/$item.txt
if [ -r $booke/$item.md ]; then
pandoc --from=markdown --to=html --output=$webdir/$item.html $booke/$item.md
else
touch $webdir/$item.html
fi