]> granicus.if.org Git - python/commitdiff
Script to help locate markup that LaTeX2HTML has a problem with.
authorFred Drake <fdrake@acm.org>
Mon, 21 Feb 2000 17:20:16 +0000 (17:20 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 21 Feb 2000 17:20:16 +0000 (17:20 +0000)
Doc/tools/cklatex [new file with mode: 0755]

diff --git a/Doc/tools/cklatex b/Doc/tools/cklatex
new file mode 100755 (executable)
index 0000000..396e914
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh
+#  -*- ksh -*-
+
+# This script *helps* locate lines of normal content that end in '}';
+# this is useful since LaTeX2HTML (at least the old version that we
+# use) breaks on many lines that end that way.
+#
+# Usage: cklatex files... | less
+#
+# *Read* the output looking for suspicious lines!
+
+grep -n "[^    ]}\$" $@ | \
+ grep -v '\\begin{' | \
+ grep -v '\\end{' | \
+ grep -v '\\input{' | \
+ grep -v '\\documentclass{' | \
+ grep -v '\\title{' | \
+ grep -v '\\chapter{' | \
+ grep -v '\\chapter\*{' | \
+ grep -v '\\section{' | \
+ grep -v '\\subsection{' | \
+ grep -v '\\subsubsection{' | \
+ grep -v '\\sectionauthor{' | \
+ grep -v '\\moduleauthor{'
+
+exit $?