summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-02-21 17:20:16 (GMT)
committerFred Drake <fdrake@acm.org>2000-02-21 17:20:16 (GMT)
commitc29e41df44ae2d13f6a1f82dbb30ef29df4353cc (patch)
tree66fe2c9051249ad638f45c377468287c053b94e5 /Doc
parent584b16a1f340b086526773ec3275589468ae4b04 (diff)
downloadcpython-c29e41df44ae2d13f6a1f82dbb30ef29df4353cc.zip
cpython-c29e41df44ae2d13f6a1f82dbb30ef29df4353cc.tar.gz
cpython-c29e41df44ae2d13f6a1f82dbb30ef29df4353cc.tar.bz2
Script to help locate markup that LaTeX2HTML has a problem with.
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/tools/cklatex26
1 files changed, 26 insertions, 0 deletions
diff --git a/Doc/tools/cklatex b/Doc/tools/cklatex
new file mode 100755
index 0000000..396e914
--- /dev/null
+++ b/Doc/tools/cklatex
@@ -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 $?