Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c29e41d

Browse files
committed
Script to help locate markup that LaTeX2HTML has a problem with.
1 parent 584b16a commit c29e41d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Doc/tools/cklatex

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 $?

0 commit comments

Comments
 (0)