mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Script to help locate markup that LaTeX2HTML has a problem with.
This commit is contained in:
parent
584b16a1f3
commit
c29e41df44
1 changed files with 26 additions and 0 deletions
26
Doc/tools/cklatex
Executable file
26
Doc/tools/cklatex
Executable file
|
@ -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 $?
|
Loading…
Add table
Add a link
Reference in a new issue