Line | |
---|
1 | #! /bin/sh
|
---|
2 | # -*- ksh -*-
|
---|
3 |
|
---|
4 | # This script *helps* locate lines of normal content that end in '}';
|
---|
5 | # this is useful since LaTeX2HTML (at least the old version that we
|
---|
6 | # use) breaks on many lines that end that way.
|
---|
7 | #
|
---|
8 | # Usage: cklatex files... | less
|
---|
9 | #
|
---|
10 | # *Read* the output looking for suspicious lines!
|
---|
11 |
|
---|
12 | grep -n "[^ ]}\$" $@ | \
|
---|
13 | grep -v '\\begin{' | \
|
---|
14 | grep -v '\\end{' | \
|
---|
15 | grep -v '\\input{' | \
|
---|
16 | grep -v '\\documentclass{' | \
|
---|
17 | grep -v '\\title{' | \
|
---|
18 | grep -v '\\chapter{' | \
|
---|
19 | grep -v '\\chapter\*{' | \
|
---|
20 | grep -v '\\section{' | \
|
---|
21 | grep -v '\\subsection{' | \
|
---|
22 | grep -v '\\subsubsection{' | \
|
---|
23 | grep -v '\\sectionauthor{' | \
|
---|
24 | grep -v '\\moduleauthor{'
|
---|
25 |
|
---|
26 | exit $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.