[texhax] wrapfig woes
Andy Farnell
padawan12 at obiwannabe.co.uk
Sun Oct 21 14:00:29 CEST 2007
Before I move on to some of the other suggestions given I want to
try and give \wrapfig some more effort first. The problem is that
it refuses to put my figures *here*. According to Google searches:
"Note that the wrapfigure environment is in fact non-floating."
But it's still throwing figures all over the place, sometimes onto
a different page. Typically I want three small wrapped figures per
page.
I have \usepackage{here} but \wrapfig doesn't seem to understand !h
as an argument.
The command I defined is given below.
% 1/3 width Wrapped figure
%(psfile, caption, label, scale, lines, wstrim1, wstrim2, wstrim3)
\newcommand{\wrapgrafthird}[8]{
\begin{wrapfigure}[#5]{o}{0.3\textwidth} %outside edge, 1/3 width
\centering
\vspace{#6}
\includegraphics[width=0.3\textwidth,angle=0, scale=#4]{#1}
\vspace{#7}
\captionsetup{margin=14pt, font=footnotesize, labelfont=bf}
\caption{#2}
\vspace{#8}
\label{#3}
\end{wrapfigure}
}
And then using it thus:
\wrapgrafthird{images/puredata/subpatches/subpatch-squared}%
{$x^2$ subpatch}{fig::squaredsubpatch}{0.75}{6}{-10pt}{-8pt}{0pt}%
Thanks for any clues.
Cheers,
Andy
--
Use the source
More information about the texhax
mailing list