[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: [Groff] checkeq functionality available?
From: |
rbh |
Subject: |
Re: Re: [Groff] checkeq functionality available? |
Date: |
Wed, 5 Dec 2001 08:07:16 -0600 (CST) |
I use groff on Solaris whiich comes with checkeq.
eqn (geqn) recognizes equations delimited by the .EQ and .EN pairs but
also permits inline equations/symbols using spefified delimiters in an
ordinary text line, e.g.,
.EQ
delim $$
.EN
This line of text shows that $ alpha $ is the first letter of the Greek
alphabet.
I currently have over 200 pages of lecture notes in groff format, with equations
on each page.
If one writes $ alpha ... geqn will search the document for the closing $.
geqn
spits out a lot of error messages which are not very helpful in finding the
offending delimiter.
The text below has a missing delimiter at line 32.
The result of processin with geqn is
groff -ms -e junk.trf > j
geqn:junk.trf:73:fatal error: end of file before `$'
The output of checkeq is
rbh>checkeq junk.trf
junk.trf:
New delims $$, line 3
$$ in EQ, line 3
18 line $$, lines 32-49
18 line $$, lines 49-66
Unfinished $$
This output states that the delimiters were defined in line 3, that there is
a FORBIDDEN delimited equation that is more than one line. The fact that it
starts
at line 32 is a hint. Of course the later errors are related to the fact that
the $$ are out of sequence.
The operation of checkeq is as follows
LOOK for new delimiters defined in the .EQ/.EN pair,
.EQ
delim [begin_character ][end_character]
.EN
(note one can use a $@ instead of the easier $$)
scan through the text, ignoring anything in within .EQ/.EN and look for
the delimeter sets on a line of text. If delimeter extends beyond the end of a
line,
write an error message.
For technical proposals with US budgets, the $ symbol also represents a dollar.
So
.EQ
delim $$
.EN
technical text
reset the symbol
.EQ
delim !!
.EN
budget information $100,000.00 for this advise
reset back to useful equation
.EQ
delim $$
.EN
technical text
Robert B. Herrmann
Professor of Geophysics
Saint Louis University
3507 Laclede Avenue
St. Louis, MO 63103
TEL: 314 977 3120
FAX: 314 977 3117
Email: address@hidden
------
.EQ
delim $$
.EN
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
$ alpha $ is listed here.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
$ alpha is listed here.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
\$ alpha \$ is listed here.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
$ alpha $ is listed here.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.