Article View: comp.text
Article #2040Re: LaTeX: figure placement and centering
From: Brian T. Schellenberger
Date: Tue, 06 Nov 1990 21:01
Date: Tue, 06 Nov 1990 21:01
80 lines
3409 bytes
3409 bytes
In article <457@scubed.SCUBED.COM> rankin@scubed.scubed.com (Tom Rankin) writes:
|Here are my problems:
|
| 1. Location of figures.
|
| I'm attempting to specify that I would like my figures to appear
| "here", as in *right* *here*!, using the following construct:
|
| \begin{figure}[h]
| [...contents of figure...] \end{figure}
|
| The figures are consistently coming up at the *end* of my
| document, not in-line as desired (and as advertised by the "here"
| location specifier). Very frustrating. How do I have to hold my
| mouth to get this to work?
This will happen if there is not, in fact, room on the current page to put
the figure right there. Thus, a "here" \figure is not the same as one that
floats along with your text. If you want it to float, you are better off
just putting in in-line and defining your own environment to bump up the
numbering.
| 2. Centering the tabbing environment within a figure.
|
| I'm trying to center a \tabbing environment using either of the
| following constructs:
|
| \begin{figure}[h]
| \centering
| \begin{tabbing}
| [...tabbing stuff...]
| \begin{tabbing}
| \end{figure}
|
| OR
|
| \begin{figure}[h]
| \begin{center}
| \begin{tabbing}
| [...tabbing stuff...]
| \end{tabbing}
| \end{center}
| \end{figure}
|
| The result is the same in both cases, the material withing the tabbing
| environment ends up left justified.
Sorry, but centering doesn't center tabbed lines; if it did, it would end
up (by the nature of things) centering each line, which would be *really*
silly. The best you can do is to the put the tabbing environment in a
\parbox or \minipage, experimenting 'til you get the width right. Then
*that* will center.
| 3. Getting \samepage to work as advertised.
|
| I've tried on numerous occasions to creat sections of text that are
| delimited on the top and the bottom by \rule lines (used for
| in-line EXAMPLES). I'd like to get the entire example to appear on a
| single page without stranding part of the example (usually a single
| rule line) on a separate page. My attempt to get this to happen looks
| like this:
|
| {\samepage
| \noindent
| \rule{127mm}{.1mm}
| \vspace{-2mm}\\
| {\large \bf EXAMPLE:} Example Title \\
| [...text of example]
| \noindent
| \rule{127mm}{.1mm}
| }
\samepage is weird and, for my purposes pretty thouroughly worthless. Try
putting this stuff in a \minipage or \parbox instead, and it *has* to stick
together.
--
-- Brian, the Man from Babble-on. bts@unx.sas.com
-- (Brian Schellenberger)
"And when the votes were cast, the winner was . . .
Mister James K. Polk, Napolean of the stump." -- THEY MIGHT BE GIANTS.
Technical Details
Message-ID:
<1990Nov06.210152.21068@unx.sas.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!ncar!gatech!mcnc!rti!mozart!btsReferences:
<457@scubed.SCUBED.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!ncar!gatech!mcnc!rti!mozart!bts From: bts@unx.sas.com (Brian T. Schellenberger) Newsgroups: comp.text Subject: Re: LaTeX: figure placement and centering Keywords: LaTeX, report, figure, centering, center, samepage Message-ID: <1990Nov06.210152.21068@unx.sas.com> Date: 6 Nov 90 21:01:52 GMT References: <457@scubed.SCUBED.COM> Organization: SAS Institute Inc. Lines: 80