#
# This is file `tbtolatex',
# generated on 2002/10/10 at 04:43 with the docstrip utility.
#
# The original source files were:
#
# tbookshl.dtx  (with options: `tbtolatex')
#
#======================================================================
#    tbtolatex - Part of the tbook Program
#    Copyright 2002 Torsten Bronger <bronger@users.sourceforge.net>
#
#  This program may be distributed and/or modified under the
#  conditions of the LaTeX Project Public License, either version 1.2
#  of this license or (at your option) any later version.
#  The latest version of this license is in
#    http://www.latex-project.org/lppl.txt
#  and version 1.2 or later is part of all distributions of LaTeX
#  version 1999/12/01 or later.
#
#  This file may only be distributed together with a copy of the tbook
#  base system. You may however distribute the tbook base system
#  without such generated files.
#
#  The program tbook consists of all files listed in manifest.txt.
#======================================================================
#
if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
  echo "tbtolatex 1.4" ;
  echo "(2002/08/27)" ;
  echo "usage: tbtolatex [-t] document-name [parameter = value]..." ;
  echo "Convert the tbook file document-name.xml to LaTeX.  (Saxon wrapper)" ;
  echo " -t --traditional    prepare tbtohtml to create HTML4 files, and not XHTML" ;
  echo " document-name       name of the tbook document (without the .xml extension!)" ;
  echo " parameter           an XSLT parameter" ;
  echo " value               value for that parameter" ;
  echo "for further information see tbookman.pdf or the man pages." ;
  exit 0 ;
fi

if [ "$1" == "-t" ] || [ "$1" == "--traditional" ] ; then
  saxon -w0 $2.xml /usr/share/xml/tbook/tbtoltx.xsl html-equations=bitmaps html-extension='.html' \
                               $3 $4 $5 $6 $7 $8 $9 | tbrplent > $2.tex ;
else
  saxon -w0 $1.xml /usr/share/xml/tbook/tbtoltx.xsl $2 $3 $4 $5 $6 $7 $8 $9 | tbrplent > $1.tex ;
fi

#
# End of file `tbtolatex'.

