perl -p -i -e 's/\\caption\\end/\\caption{} \\end/; \
s/ / /g; \
s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \
- s/\\chapter\{(Foreword|Prefacio|Forord|Introduction|Introducción|Introduksjon)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \
s/\\section\{(Notes|Notas)\}/\\section*{$$1}/; \
s/(Web links?|Vínculos Web)/\\section*{$$1}/;' $@
<xsl:param name="latex.encoding">utf8</xsl:param>
+ <xsl:param name="preface.tocdepth">1</xsl:param>
+
<!-- do not list figures -->
<xsl:param name="doc.lot.show">example</xsl:param>
log 0, 'change parts to colophon, dedication and chapter'
partreplace(xml, 'colophon', 'colophon')
partreplace(xml, 'dedication', 'dedication')
-partreplace(xml, 'foreword', 'chapter')
-partreplace(xml, 'introduction', 'chapter')
+partreplace(xml, 'foreword', 'preface')
+partreplace(xml, 'introduction', 'preface')
partreplace(xml, 'bibliography', 'chapter')
partreplace(xml, 'acknowledgments', 'chapter')