Re: Justifying figures to outer margin

2010-06-14 Thread george legge
On Tue, Jun 15, 2010 at 12:11 AM, Helge Hafting wrote:

> 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.)
>
>
Thank you Helge,

The "sidecap" package with the "wide" option appears to have answered most
of my needs;
but I shall bear in mind your suggestions for moving figures precisely.

George Legge


Re: Justifying figures to outer margin

2010-06-14 Thread Helge Hafting

On 29. mai 2010 01:04, george legge wrote:

On Sat, May 29, 2010 at 8:33 AM, Julien Rioux
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


Re: Justifying figures to outer margin

2010-05-31 Thread george legge
On Mon, May 31, 2010 at 10:57 PM, Julien Rioux
wrote:

> On 28/05/2010 7:04 PM, george legge wrote:
>
>> On Sat, May 29, 2010 at 8:33 AM, Julien Rioux> >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.
>>
>> George
>>
>>
> Hi George,
>
> First, I did not write the sidecap package; I only wrote a LyX module to
> better integrate the functionality of the LaTeX package within LyX.
>
> Second, there is a sidecap package option, "wide", which let the figure
> extend into the margin. Unfortunately, there is hardly any documentation
> about the sidecap package. I do not know how to customize this very well.
> But the attached LyX file use this option and the "innercaption" option to
> achieve something close to what you want, I think.
>
> Make sure you have sidecap.module somewhere where LyX can find it.
>
> Best of luck,
> Julien
>

Thank you Julien. Yes, I found the sidecap package a short while ago and
then found "wide".
"wide" certainly works on text and I am right now trying it on a figure.
It looks as though it should solve most of my problems; but I agree the
documentation is very sparse.
It is time I knocked off for the night. I shall let you know how successful
I am.

Cheers, George


Re: Justifying figures to outer margin

2010-05-31 Thread Julien Rioux

On 28/05/2010 7:04 PM, george legge wrote:

On Sat, May 29, 2010 at 8:33 AM, Julien Riouxwrote:
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.

George



Hi George,

First, I did not write the sidecap package; I only wrote a LyX module to 
better integrate the functionality of the LaTeX package within LyX.


Second, there is a sidecap package option, "wide", which let the figure 
extend into the margin. Unfortunately, there is hardly any documentation 
about the sidecap package. I do not know how to customize this very 
well. But the attached LyX file use this option and the "innercaption" 
option to achieve something close to what you want, I think.


Make sure you have sidecap.module somewhere where LyX can find it.

Best of luck,
Julien


wide-sidecap.lyx
Description: application/lyx


wide-sidecap.pdf
Description: Adobe PDF document


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 31.05.2010 03:06, schrieb george legge:


It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,


I expect that you need low-level TeX primitives to achieve this.


If I cannot free "overhang" from wrap, I shall go back to wrestling with
geometry.


Perhaps this helps you:
http://wiki.lyx.org/Tips/PaperLayout

regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge
Sorry Uwe, I forgot to add that the geometry package allows me to set up
exactly what I need in the way of margins.
It can set:
paperwidth = inner + width + outer   [I am calling them inner and outer
rather than left and right, because it is double sided]
where inner and outer are true margins, not used for printing.
and  width = textwidth + (marginparsep + marginparwidth)

It is the outer edge of this (marginparsep + marginparwidth) region which I
attempted to justify my figures to.
My requirement was that the outer edge of a figure line up with the outer
edge of the marginpara,
and the figure could extend back as far as needed into the text area, with
any space left available for caption.
I was having difficulty with this and I noticed that memoir by itself could
perform many (though not all) of geometry actions.
Then I was overjoyed to get your suggestion of using "overhang" but
subsequently "underjoyed" to find I could not free it from wrap.
If I cannot free "overhang" from wrap, I shall go back to wrestling with
geometry.
Thank you again for your help.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread george legge
>
> This is against usual typesetting rules and therefore not supported by
> LaTeX. I showed you 2 tricks to overcome this and I don't see other ways.
> But you should have a very, very important reason to print something in the
> page margin. Because in case that you print your document by a printing
> press you will get big problems.
>
> regards Uwe
>

I still have a real margin of about 1.5cm outside the images. But there is a
much larger margin outside the text.
It is quite common to use what is treated as a margin by the text, but is
available for placement of figures.
Possibly a layout program does it by setting up two columns and restricting
the text to just the inner column.
I don't think that is easy to do with LaTeX.
However your suggestion of using "overhang" was wonderful.I don't know how
"overhang" is achieved.
I just need the macro that produces "overhang" without the macro that
produces "wrap".
That sounds simple, but maybe it isn't.
Thank you for trying to help.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 23:22, schrieb george legge:


Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.


This is against usual typesetting rules and therefore not supported by LaTeX. I showed you 2 tricks 
to overcome this and I don't see other ways.
But you should have a very, very important reason to print something in the page margin. Because in 
case that you print your document by a printing press you will get big problems.


regards Uwe


Re: Justifying figures to outer margin

2010-05-30 Thread george legge
>
>   Is there an easy way to insert an "overhang" command into a Figure Float?
>>
>
> You only need to specify a width for your image that is wider than the page
> or column width. Use for example a width of 110 column%. Attached is an
> example where I have done this for a box.
>
> regards Uwe
>

Thank you Uwe, but that merely enlarges the image and extends it into the
margin.
It does not MOVE the image.  An overhang moves the image across into the
margin which is what I need.
Think of it this way:
 I wish to have an image (of any desired size) placed in the top
outer corner of the page.
Images will vary in width; but their outer edge will always hang outside the
text edge by the same distance.
It seems to me that this is exactly what "overhang" achieves.
If only I can get it to work with a regular image float, not just with a
wrap float.

Cheers, George


Re: Justifying figures to outer margin

2010-05-30 Thread Uwe Stöhr

Am 30.05.2010 05:45, schrieb george legge:


Thank you Uwe. "Overhang" is exactly what I need.
However, I do not want wrapping, and "overhang" seems to be offered only by
Wrap Float.
I don't think a plain Figure Float recognizes "overhang".
Is there an easy way to insert an "overhang" command into a Figure Float?


You only need to specify a width for your image that is wider than the page or column width. Use for 
example a width of 110 column%. Attached is an example where I have done this for a box.


regards Uwe


newfile2.lyx
Description: application/lyx


Re: Justifying figures to outer margin

2010-05-29 Thread george legge
On Sat, May 29, 2010 at 11:11 AM, Uwe Stöhr  wrote:

> Am 29.05.2010 01:04, schrieb george legge:
>
>
>  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.
>>
>
> Use a wrapped float. Its option "Overhang" is exactly what you need.
> Attached is a LyX example file.
> For more infos about wrapped floats have a look at sec. 3.2.2 "Wrap Floats"
> of the EmbeddedObjects manual that you find in LyX#s Help menu.
>
> regards Uwe
>

Thank you Uwe. "Overhang" is exactly what I need.
However, I do not want wrapping, and "overhang" seems to be offered only by
Wrap Float.
I don't think a plain Figure Float recognizes "overhang".
Is there an easy way to insert an "overhang" command into a Figure Float?

Alternatively can I turn off wrapping in a Wrap Float?

I still wish to insert a caption into the space created by the overhang.
I could force the overhang just by letting the caption push the figure
across, thereby creating an overhang,
though I need to do that with the caption always on the inner side.
However getting exactly the same overhang every time would be messy that
way.

Basically, I wish to get all my figures to float to the tops of pages, flush
to the outside and overhang text by a set distance,
thus visually defining a marginal column. Your "overhang" almost does it.

Cheers, George


Re: Justifying figures to outer margin

2010-05-28 Thread Uwe Stöhr

Am 29.05.2010 01:04, schrieb george legge:


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.


Use a wrapped float. Its option "Overhang" is exactly what you need. Attached 
is a LyX example file.
For more infos about wrapped floats have a look at sec. 3.2.2 "Wrap Floats" of the EmbeddedObjects 
manual that you find in LyX#s Help menu.


regards Uwe


Figure-margin-protrude.lyx
Description: application/lyx


Re: Justifying figures to outer margin

2010-05-28 Thread george legge
On Sat, May 29, 2010 at 8:33 AM, Julien Rioux 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.

George


Re: Justifying figures to outer margin

2010-05-28 Thread Julien Rioux

On 28/05/2010 5:09 PM, george legge wrote:

In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)



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.


[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/sidecap.html
[2] http://www.physics.utoronto.ca/~jrioux/resources/lyx/

--
Julien



Justifying figures to outer margin

2010-05-28 Thread george legge
In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)