[comp.text] LaTeX question

rusty@weyl.Berkeley.EDU (Rusty Wright) (11/09/86)

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

schooler@inmet.UUCP (01/30/87)

A LaTeX question:

  When writing examples of code transformations, I like to make a
\tabular whose entries are \minipages with \verbatim environments.
This works very well except that I have to specify an explicit width
for the \minipage.  Does anyone know of a way to fit a "minimal" box
around a \verbatim environment so that \tabular will pack things as
usual?
		-- Richard Schooler
		Intermetrics, Inc.
		{ihnp4,ima}!inmet!schooler

akk2@ur-tut.UUCP (04/04/87)

This is for TeX and LaTeX gurus out there.

I want to leave blank pages in my document for Tables and  
Figures and not really have to figure out manually where the
page break is going to be and then asking to skip a page.

To make things a little clearer, an example :

......as shown in Figure 1............................
......................................................
......................................................
...............P......................................
............lots more text............................

Suppose the above is part of my document and when I run it
through LaTeX, I get a page break at 'P'. I want it to
now leave a blank page after 'P', increment the page counter,
and then print the rest. Is there an easy way to do this ?
Now, I could do this by first running it and determining
the page breaks and then putting in a \vfill\eject or
some such thing, but I am looking for a more elegant way.
Any takers ?




-- 
-----------------------
Atul Kacker
UUCP: ...seismo!rochester!ur-tut!akk2

ken@rochester.UUCP (04/04/87)

Why not define a figure that takes up a full page? Like this:

begin{figure}[ht]	% check this, you want it to float to next page
% declare something here that takes up a full page, like a picture or
% a vbox
\caption{You can label the figure and reference it} \label{fig:2}
end{figure}

By the way, send your question to texhax@score.stanford.edu too. You
might get a better answer.

	Ken

akk2@ur-tut.UUCP (Atul Kacker) (08/31/87)

I am trying to use \vfill within the LaTeX table environment    
without much success. What I want to be able to do is to move
the caption down to the bottom of the page using the rubber
length \vfill. LaTeX seems to ignore the \vfill command. Am I
missing something ? Is there another way of doing the same thing ?

My LaTeX file looks something like this :


\documentstyle[12pt]{report}
\begin{document}
\begin{table}[p]
\centerline{This is where the actual table will go}
\vfill
\caption[Test table]{This is the caption for the test table. It will contain
a description of the salient features of the table}
\end{table}
\end{document}


The \vfill command doesn't do anything. The caption stays 10pt below
the table (or in this case the \centerline stuff). REP12.STY defines
a vskip of 10pt in its definition of @makecaption and I couldn't
figure out how to change it to a rubber length. I also tried putting
\caption in a \parbox but that did the same thing.

Any help would be appreciated. Thanks

Atul Kacker
....{seismo}!rochester!ur-tut!akk2
OR  akk2@tut.cc.rochester.edu


-- 
       -------------------------------------------------------------
       Atul Kacker      ...{seismo,topaz,nike}!rochester!ur-tut!akk2 
                      OR   akk2@tut.cc.rochester.edu
       -------------------------------------------------------------