summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-breakbox.html
blob: 2da33de2c395ab768f300cacf8cccda0ea949357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<head>
<title>UK TeX FAQ -- question label breakbox</title>
</head><body>
<h3>Breaking boxes of text</h3>
<p/>(La)TeX boxes may not be broken, in ordinary usage: once you&rsquo;ve
typeset something into a box, it will stay there, and the box will jut
out beyond the side or the bottom of the page if it doesn&rsquo;t fit in the
typeset area.
<p/>If you want a substantial portion of your text to be framed (or
coloured), the restriction starts to seem a real imposition.
Fortunately, there are ways around the problem.
<p/>The <i>framed</i> package provides <code>framed</code> and
<code>shaded</code> environments; both put their content into
something which looks like a framed (or coloured) box, but which
breaks as necessary at page end.  The environments &ldquo;lose&rdquo; footnotes,
marginpars and head-line entries, and will not work with
<i>multicol</i> or other column-balancing macros.  The
<i>memoir</i> class includes the functionality of the
<i>framed</i> package.
<p/>The <i>boites</i> package provides a <code>breakbox</code>
environment; examples of its use may be found in the distribution, and
the package&rsquo;s <i>README</i> file contains terse documentation.  The
environments may be nested, and may appear inside
<code>multicols</code> environments; however, floats, footnotes and
marginpars will be lost.
<p/>For Plain TeX users, the facilities of the <i>backgrnd</i>
package may be useful; this package subverts the output routine to
provide vertical bars to mark text, and the macros are clearly marked
to show where coloured backgrounds may be introduced (this requires
<i>shade</i>, which is distributed as tex macros and
device-independent Metafont for the shading).  The author of
<i>backgrnd</i> claims that the package works with LaTeX 2.09, but
there are reasons to suspect that it may be unstable working with
current LaTeX.
<dl>
<dt><tt><i>backgrnd.tex</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/generic/misc/backgrnd.tex">macros/generic/misc/backgrnd.tex</a>
<dt><tt><i>boites.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/boites.zip">macros/latex/contrib/boites</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/boites/">browse the directory</a>)
<dt><tt><i>framed.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/misc/framed.sty">macros/latex/contrib/misc/framed.sty</a>
<dt><tt><i>memoir.cls</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse the directory</a>)
<dt><tt><i>shade.tex</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/generic/shade.zip">macros/generic/shade</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/generic/shade/">browse the directory</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=breakbox">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=breakbox</a>
</body>