On 29. mai 2010 01:04, george legge wrote:
On Sat, May 29, 2010 at 8:33 AM, Julien Rioux
<jri...@physics.utoronto.ca <mailto:jri...@physics.utoronto.ca>> wrote:
Hi,
I am not completely clear on what you want to accomplish, but you might
want to have a look at the sidecap package [1]. I wrote a minimalistic
module to use the package in LyX [2]. Maybe that would help. Otherwise,
sorry for the noise.
Thank you Julien for the prompt reply.
I have read your documentation.
Your package does allow figures to move into the margin and captions to
be placed on either side.
But it does not appear to tackle the major problem, which is:
How to get figures (of all widths) to justify to a boundary several cm
outside the text edge.
A figure, (including the caption) can be shifted left or right if you
want to. Here is one way:
1.Insert the figure float.
2.The first thing inside this float should be horizontal space.
Use a negative length to move into the left margin, or use a
positive length to move into the right margin.
(Insert->Formatting->Horizontal Space). Set the type
to "custom". That lets you type in a custom length.
3. After the horizontal space, insert a minipage. (Insert->Box)
In the settings, make sure it is a minipage, set the width to
100% of line length, and use "no frame". (Frames makes it easier
to see what happens, but they have width of their own, so they
interfere with precise positioning.)
4. Put all your figure content inside this minipage. Both the
image and the caption. (The caption can be moved inside
the minipage by copy-paste.)
This gives you a figure of normal width, i.e. the distance between
the margins. But you can push it right and left by adjusting the
horizontal spacing at the beginning of the figure float.
You may also want to vary the width of the minipage for further control.
The edges of the minipage will be the "margins" for your figure. So you
can decide how a very long caption will break up.
Tip: You can see the edges of this minipage by writing a long line. For
example, a horizontal space of the "fill" type, with some suitable
fill pattern. (Or use a frame for the minipage, but be aware that
the frame makes the minipage wider in order to make romm for frame lines.)
The actual graphic can be but next to the right or left edge by
using Edit->Paragraph Settings and make the paragraph with the
figure left-adjusted or right-adjusted.
This way, you can line your figure up perfectly with any edge
you like.
Helge Hafting