diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/wrapfig/multiple-span.txt | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/wrapfig/multiple-span.txt')
-rw-r--r-- | Master/texmf-dist/doc/latex/wrapfig/multiple-span.txt | 187 |
1 files changed, 187 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/wrapfig/multiple-span.txt b/Master/texmf-dist/doc/latex/wrapfig/multiple-span.txt new file mode 100644 index 00000000000..5e4aae67a12 --- /dev/null +++ b/Master/texmf-dist/doc/latex/wrapfig/multiple-span.txt @@ -0,0 +1,187 @@ +Using wrapfig to span multiple columns +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Wrapfig can't automatically make matching cutouts in adjacent columns +because it doesn't know which text will land in just the right place +in the column next-door. It certainly can't handle floating in such +situations! + +Here are some methods for doing such layout "by hand". They are +practical for one or a few such figures where you can tweak the +layout for the final copy. It is too painful to do this for long +or frequently-revised documents. If you do have multiple fiddling, +fix the first one in each chapter (or after any forced page break), +rerun, then fix the second, etc. + +(These examples use calc.sty to evaluate overhangs in place.) + +Cutouts in Matching Columns + +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ + +Initially, write the document without the wrapfigure, and locate the +desired natural linebreak at "X". (This first step is used for all +methods described here.) Then change to + +~~~~~~~~X +\begin{wrapfigure}[6]{r}[.5\width+.5\columnsep]{6cm} +... +\end{wrapfigure} +~~~~.... + +and run LaTeX again. This will print the figure overlapping the right +column, but no matter. Use this run to locate position "Y" in the text. +For the final run, switch to: + +~~~~~~~~X +\begin{wrapfigure}[6]{r}[.5\width+.5\columnsep]{6cm} +... +\end{wrapfigure} +~~~~.... +...~~~~~~~Y +\begin{wrapfigure}[6]{l}[.5\width+.5\columnsep]{6cm} +\vfill +\end{wrapfigure} +~~~~~~~~~~~ + + +Taking a whole column plus a cutout + +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y +~~~~~~~~~ +~~~~~~~~~ +~~~~~~~~~ +~~~~~~~~~ +~~~~~~~~~ +~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ + +Locate "X" first, without any figure, as above, then write the +document like: + +~~~~~~~~X +\begin{wrapfigure}[6]{r}[\columnwidth+\columnsep]{9cm} +... +\end{wrapfigure} +~~~~.... + +and ignore the overprinting of the right column. Then, after locating +"Y" in the text, switch to: + +~~~~~~~~X +\begin{wrapfigure}[6]{r}[\columnwidth+\columnsep]{9cm} +... +\end{wrapfigure} +~~~~.... +...~~~~~~~Y\vspace{6\baselinskip} +~~~~~~~~~~~ +for the final layout + + +a whole column preceding a cutout + +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y + ~~~~~~~~~ + ~~~~~~~~~ + ~~~~~~~~~ + ~~~~~~~~~ + ~~~~~~~~~ + ~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ + +After locating "X", write the draft document like: + +~~~~~~~~X\vspace{6\baselinskip} +~~~~.... +~~~~~~~~~~~~~ +~~~~~~~~~ + +run LaTeX to locate "Y", and then switch to: + +~~~~~~~~X\vspace{6\baselinskip} +~~~~.... +~~~~~~~~~~~~~Y +\begin{wrapfigure}[6]{l}[\columnwidth+\columnsep]{9cm} +... +\end{wrapfigure} +~~~~~~~~~ + +Spanning (parts of) three columns + +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~X ~~~~~~~~~~~~~~~~~Y ~~~~~~~~~~~~~~~~~Z +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~ ~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ + +This uses a combination of the above. First locate X, then use + +~~~~~~~~X +\begin{wrapfigure}[6]{r}[.5\width+.5\columnwidth+\columnsep]{12cm} +... +\end{wrapfigure} +~~~~.... + +Locate Y from this, and change to + +~~~~~~~~X +\begin{wrapfigure}[6]{r}[.5\width+.5\columnwidth+\columnsep]{12cm} +... +\end{wrapfigure} +~~~~.... +~~~~~~~~~~~~Y\vspace{6\baselineskip} +~~~~~~~.... + +which allows you to locate Z, to end up with + +~~~~~~~~X +\begin{wrapfigure}[6]{r}[.5\width+.5\columnwidth+\columnsep]{12cm} +... +\end{wrapfigure} +~~~~.... +~~~~~~~~~~~~Y\vspace{6\baselineskip} +~~~~~~~.... +~~~~~~~~~~~~Z +\begin{wrapfigure}[6]{l}[.5\width+.5\columnwidth+\columnsep]{12cm} +\vfill +\end{wrapfigure} + + + + +(Of course, to do matching cut-outs properly requires typesetting +the text to a grid.) |