diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-figurehere.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-figurehere.html | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-figurehere.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-figurehere.html deleted file mode 100644 index b77f658812b..00000000000 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-figurehere.html +++ /dev/null @@ -1,73 +0,0 @@ -<head> -<title>UK TeX FAQ -- question label figurehere</title> -</head><body> -<h3>Figure (or table) <em>exactly</em> where I want it</h3> -<p/>This is of course a contradiction: <code>figure</code> and -<code>table</code> are <em>designed</em> to float, and will always have -the potential to appear away from where you asked for them. Therefore -you have to find a means of getting the caption and other effects -without allowing the figure or table to float. -<p/>The most straightforward way is to use one of the <i>float</i> or -<i>here</i> packages; they give you a <code>[H]</code> float placement -option that prevents floating: -<blockquote> -<pre> -\begin{figure}[H] - \centering - \includegraphics{foo} - \caption{caption text} - \label{fig:nonfloat} -\end{figure} -</pre> -</blockquote><p> -As the example shows, these <code>[H]</code> figures (and correspondingly, -tables) offer all you need to cross-reference as well as typeset. -<p/>However, you don’t actually <em>have</em> to use <i>float</i> (or -<i>here</i>) since it is, in fact, doing rather little for you. -You can place your figure as you please, with a sequence like -<blockquote> -<pre> -\begin{center} - \includegraphics{foo} - \captionof{figure}{caption text} - \label{fig:nonfloat} -\end{center} -</pre> -</blockquote><p> -which relies on the <code>\</code><code>captionof</code> command to place a caption in -ordinary running text. That command may be had from the extremely -simple-minded package <i>capt-of</i> or from the highly -sophisticated <i>caption</i> package. -<p/>Using either method, you have to deal with the possibility of the -figure or table being too large for the page. (Floating objects will -float away in this circumstance; “doing it by hand”, like this, you -take upon yourself the responsibility for avoiding -‘<i>Overfull <code>\</code><code>vbox</code></i>’ errors. -<p/>A further problem is the possibility that such “fixed floats” will -overtake “real floats”, so that the numbers of figures will be out -of order: figure 6 could be on page 12, while figure 5 had floated to -page 13. It’s best, therefore, either to stay with floating figures -throughout a document, or to use fixed figures throughout. -<p/>If it’s really impossible to follow that counsel of perfection, you -can use the <i>perpage</i> package’s command <code>\</code><code>MakeSorted</code> -command: -<blockquote> -<pre> -... -\usepackage{float} -\usepackage{perpage} -\MakeSorted{figure} -\MakeSorted{table} -... -</pre> -</blockquote><p> -and the sequence of float numbers is all correct. -<dl> -<dt><tt><i>capt-of.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/capt-of.zip">macros/latex/contrib/capt-of</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/capt-of/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/capt-of.html">catalogue entry</a> -<dt><tt><i>caption.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/caption.zip">macros/latex/contrib/caption</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/caption/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/caption.html">catalogue entry</a> -<dt><tt><i>float.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/float.zip">macros/latex/contrib/float</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/float/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/float.html">catalogue entry</a> -<dt><tt><i>here.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/here.zip">macros/latex/contrib/here</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/here/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/here.html">catalogue entry</a> -<dt><tt><i>perpage.sty</i></tt><dd>Distributed as part <a href="http://mirror.ctan.org/macros/latex/contrib/bigfoot.zip">macros/latex/contrib/bigfoot</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/bigfoot/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/perpage.html">catalogue entry</a> -</dl> -<p/><p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=figurehere">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=figurehere</a> -</body> |