Article View: comp.text
Article #3103LaTeX question
From: Rusty Wright
Date: Sun, 09 Nov 1986 20:24
Date: Sun, 09 Nov 1986 20:24
37 lines
2029 bytes
2029 bytes
This is probably more of a TeX question than a LaTeX one; is there a
TeX command that will cause all vertical and horizontal space
preceeding it to disappear? What I'm trying to do is make a new
environment with the LaTeX \newenvironment command for mathematical
proofs. Proofs generally begin with the word ``Proof'' in boldface,
then an arbitrary amount of text probably interspersed with equations,
then a ``QED'' symbol which is a small rectangle (depending upon the
document style it's either solid black or just an outline of the
rectangle). Depending upon the document style the QED symbol may be
flush right or it may be an end-of-sentence space to the right of the
period of the last sentence.
If the user's LaTeX file contained
\begin{proof}
blah blah blah.
\end{proof}
it would be easy to handle (\begin{proof} would produce ``Proof'' in
the appropriate typeface with the appropriate punctuation and
\end{proof} would produce the appropriate QED symbol in the right
place), but there's no reason that they can't have any number of
spaces in front of the \end{proof} line or any number of blank lines
preceeding it. Likewise for horizontal and vertical space after the
\begin{proof} line.
What I need is the TeX/LaTeX command(s) that would make it look like
the user's file contained
\begin{proof}blah blah blah.\end{proof}
-----------------------
rusty c. wright
rusty@weyl.berkeley.edu
ucbvax!weyl!rusty
Technical Details
Message-ID:
<232@cartan.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!lll-crg!nike!ucbcad!ucbvax!cartan!weyl.Berkeley.EDU!rustyShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!lll-crg!nike!ucbcad!ucbvax!cartan!weyl.Berkeley.EDU!rusty From: rusty@weyl.Berkeley.EDU (Rusty Wright) Newsgroups: comp.text Subject: LaTeX question Message-ID: <232@cartan.Berkeley.EDU> Date: Sun, 9-Nov-86 15:24:41 EST Article-I.D.: cartan.232 Posted: Sun Nov 9 15:24:41 1986 Date-Received: Thu, 13-Nov-86 00:31:50 EST Sender: daemon@cartan.Berkeley.EDU Reply-To: rusty@weyl.Berkeley.EDU (Rusty Wright) Organization: Math Dept. UC Berkeley Lines: 33