Re: Large figures with ContinuedFloat

2013-10-11 Thread Frank Leone



Dear Helge, and others,

I use boxfloat to create a box floating environment, which works really 
good. Now one of my boxes is larger than one page, so I would like it to 
continue. I found this post and tried the ERT trick (copying my entire float 
environment, insert \ContinuedFloat), but it doesn't help (nothing changes). 
I did include the the subfig package.

Could you help me out how I can do this instead/what I do wrong? Thanks a 
lot in advance,

  best,

 Frank



Re: Large figures with ContinuedFloat

2013-10-11 Thread Frank Leone



Dear Helge, and others,

I use boxfloat to create a box floating environment, which works really 
good. Now one of my boxes is larger than one page, so I would like it to 
continue. I found this post and tried the ERT trick (copying my entire float 
environment, insert \ContinuedFloat), but it doesn't help (nothing changes). 
I did include the the subfig package.

Could you help me out how I can do this instead/what I do wrong? Thanks a 
lot in advance,

  best,

 Frank



Re: Large figures with ContinuedFloat

2013-10-11 Thread Frank Leone



Dear Helge, and others,

I use boxfloat to create a box floating environment, which works really 
good. Now one of my boxes is larger than one page, so I would like it to 
continue. I found this post and tried the ERT trick (copying my entire float 
environment, insert \ContinuedFloat), but it doesn't help (nothing changes). 
I did include the the subfig package.

Could you help me out how I can do this instead/what I do wrong? Thanks a 
lot in advance,

  best,

 Frank



Re: Large figures with ContinuedFloat

2005-12-28 Thread Helge Hafting
On Wed, Dec 28, 2005 at 12:04:23AM +0100, Marc Vinyals wrote:
 Hi.
 
 I'm trying to span the subfigures inside a figure into multiple pages 
 (they don't fit in a single one and just get lost in PS output). I found 
 that caption package provides a way to do that, with a \ContinuedFloat 
 command that must be inserted _immediately_ after starting a float 
 environment. The problem is that with LyX I'm not able to do this 
 because when inserting an ERT box, its contents are located after 
 setting the nested standard environment inside the float. Does anybody 
 know how to do that or should I edit .tex files manually?

I see you found a better solution, but:

If you can't get what you want from a lyx float, then
create the entire float in ERT.  While this is some work, it
may still be simpler than editing the resulting tex file.
(The latter may be quite annoying if you ever have to
reprint your document and must remember to do this over again.)

To see how to write a float in ERT - export your document to latex.
The remove the float from the document, and paste the .tex-float
into a ERT inset.

Helge Hafting


Re: Large figures with ContinuedFloat

2005-12-28 Thread Helge Hafting
On Wed, Dec 28, 2005 at 01:05:18AM +0100, Marc Vinyals wrote:
 Hi again.
 
 I've solved most of my problem by playing a bit more with LyX. I tried 
 putting the subfigures in separate floats and with no caption, just as I 
 had done to prepare for inserting \ContinuedFloat commands but removing 
 the ERT boxes. When I previewed the results, subcaptions were OK (this 
 is (a) foo; (b) fooo; (c) ... instead of (a) foo; (a) fooo; (a) ...). 
 I'm not sure about what would happen if I put text between two floats or 
 how to make references correctly, but I suppose the last will be documented.
 
 I hope this will help anyone with the same problems, since I've not been 
 able to find related documentation.

There are two ways of crossreferencing in lyx.

The easy way is, of course, to use insert-label and insert-reference
whenever necessary.  But it may be tricky referencing subfigures this way.

The other way is to use latex commands.  Basically, if you insert a label
using latex commands in ERT, then every reference to that label will have to
be done using ERT and a latex command as well.  (To find these commands,
just export a lyx document with references to latex and see.)

The disadvantage of the latter method is obvious if you have lots
of references to some subfigure.  I have been able to work around
this, so I could use the lyx label/reference inserts even for
referencing subfigures made by lots of ERT and little else.

The trick is that you can terminate ERT anywhere - even in the
middle of some complicated latex construct.  Then, insert a lyx label
after the abruptly terminated ERT.  After that, a new ERT inset that continues
your latex command.  This way, you can use insert-reference to refer
to your subfigures.

I used a float containing stuff like this:
ERT inset containing \subfigure[]{
(Note how the latex command isn't terminated, so anything after this ERT
will be inside the subfigure)
After that, I had a xfig figure and a noraml lyx label for referencing.
The fact that the lyx label is emitted inside the \subfigure means
that any reference to it gets the correct Figure 1.1(b) format,
even though lyx itself doesn't support such references to subfigures.
(Well, at least lyx 1.3 didn't at the time I wrote that book)
Latex supports references to subfigures, and that is what counts.

Later, I had a ERT containing just the terminating } that ends the subfigure.

This sequence then repeats a few times, for every subfigure in the float.

I did not have your problem of needing page breaks, as my floats were small.
But this way, I got subfigures with referencable captions.

Helge Hafting


 


Re: Large figures with ContinuedFloat

2005-12-28 Thread Helge Hafting
On Wed, Dec 28, 2005 at 12:04:23AM +0100, Marc Vinyals wrote:
 Hi.
 
 I'm trying to span the subfigures inside a figure into multiple pages 
 (they don't fit in a single one and just get lost in PS output). I found 
 that caption package provides a way to do that, with a \ContinuedFloat 
 command that must be inserted _immediately_ after starting a float 
 environment. The problem is that with LyX I'm not able to do this 
 because when inserting an ERT box, its contents are located after 
 setting the nested standard environment inside the float. Does anybody 
 know how to do that or should I edit .tex files manually?

I see you found a better solution, but:

If you can't get what you want from a lyx float, then
create the entire float in ERT.  While this is some work, it
may still be simpler than editing the resulting tex file.
(The latter may be quite annoying if you ever have to
reprint your document and must remember to do this over again.)

To see how to write a float in ERT - export your document to latex.
The remove the float from the document, and paste the .tex-float
into a ERT inset.

Helge Hafting


Re: Large figures with ContinuedFloat

2005-12-28 Thread Helge Hafting
On Wed, Dec 28, 2005 at 01:05:18AM +0100, Marc Vinyals wrote:
 Hi again.
 
 I've solved most of my problem by playing a bit more with LyX. I tried 
 putting the subfigures in separate floats and with no caption, just as I 
 had done to prepare for inserting \ContinuedFloat commands but removing 
 the ERT boxes. When I previewed the results, subcaptions were OK (this 
 is (a) foo; (b) fooo; (c) ... instead of (a) foo; (a) fooo; (a) ...). 
 I'm not sure about what would happen if I put text between two floats or 
 how to make references correctly, but I suppose the last will be documented.
 
 I hope this will help anyone with the same problems, since I've not been 
 able to find related documentation.

There are two ways of crossreferencing in lyx.

The easy way is, of course, to use insert-label and insert-reference
whenever necessary.  But it may be tricky referencing subfigures this way.

The other way is to use latex commands.  Basically, if you insert a label
using latex commands in ERT, then every reference to that label will have to
be done using ERT and a latex command as well.  (To find these commands,
just export a lyx document with references to latex and see.)

The disadvantage of the latter method is obvious if you have lots
of references to some subfigure.  I have been able to work around
this, so I could use the lyx label/reference inserts even for
referencing subfigures made by lots of ERT and little else.

The trick is that you can terminate ERT anywhere - even in the
middle of some complicated latex construct.  Then, insert a lyx label
after the abruptly terminated ERT.  After that, a new ERT inset that continues
your latex command.  This way, you can use insert-reference to refer
to your subfigures.

I used a float containing stuff like this:
ERT inset containing \subfigure[]{
(Note how the latex command isn't terminated, so anything after this ERT
will be inside the subfigure)
After that, I had a xfig figure and a noraml lyx label for referencing.
The fact that the lyx label is emitted inside the \subfigure means
that any reference to it gets the correct Figure 1.1(b) format,
even though lyx itself doesn't support such references to subfigures.
(Well, at least lyx 1.3 didn't at the time I wrote that book)
Latex supports references to subfigures, and that is what counts.

Later, I had a ERT containing just the terminating } that ends the subfigure.

This sequence then repeats a few times, for every subfigure in the float.

I did not have your problem of needing page breaks, as my floats were small.
But this way, I got subfigures with referencable captions.

Helge Hafting


 


Re: Large figures with ContinuedFloat

2005-12-28 Thread Helge Hafting
On Wed, Dec 28, 2005 at 12:04:23AM +0100, Marc Vinyals wrote:
> Hi.
> 
> I'm trying to span the subfigures inside a figure into multiple pages 
> (they don't fit in a single one and just get lost in PS output). I found 
> that "caption" package provides a way to do that, with a \ContinuedFloat 
> command that must be inserted _immediately_ after starting a float 
> environment. The problem is that with LyX I'm not able to do this 
> because when inserting an ERT box, its contents are located after 
> setting the nested standard environment inside the float. Does anybody 
> know how to do that or should I edit .tex files manually?

I see you found a better solution, but:

If you can't get what you want from a lyx float, then
create the entire float in ERT.  While this is some work, it
may still be simpler than editing the resulting tex file.
(The latter may be quite annoying if you ever have to
reprint your document and must remember to do this over again.)

To see how to write a float in ERT - export your document to latex.
The remove the float from the document, and paste the .tex-float
into a ERT inset.

Helge Hafting


Re: Large figures with ContinuedFloat

2005-12-28 Thread Helge Hafting
On Wed, Dec 28, 2005 at 01:05:18AM +0100, Marc Vinyals wrote:
> Hi again.
> 
> I've solved most of my problem by playing a bit more with LyX. I tried 
> putting the subfigures in separate floats and with no caption, just as I 
> had done to prepare for inserting \ContinuedFloat commands but removing 
> the ERT boxes. When I previewed the results, subcaptions were OK (this 
> is (a) foo; (b) fooo; (c) ... instead of (a) foo; (a) fooo; (a) ...). 
> I'm not sure about what would happen if I put text between two floats or 
> how to make references correctly, but I suppose the last will be documented.
> 
> I hope this will help anyone with the same problems, since I've not been 
> able to find related documentation.

There are two ways of crossreferencing in lyx.

The easy way is, of course, to use insert->label and insert->reference
whenever necessary.  But it may be tricky referencing subfigures this way.

The other way is to use latex commands.  Basically, if you insert a label
using latex commands in ERT, then every reference to that label will have to
be done using ERT and a latex command as well.  (To find these commands,
just export a lyx document with references to latex and see.)

The disadvantage of the latter method is obvious if you have lots
of references to some subfigure.  I have been able to work around
this, so I could use the lyx label/reference inserts even for
referencing subfigures made by lots of ERT and little else.

The trick is that you can terminate ERT anywhere - even in the
middle of some complicated latex construct.  Then, insert a lyx label
after the abruptly terminated ERT.  After that, a new ERT inset that continues
your latex command.  This way, you can use insert->reference to refer
to your subfigures.

I used a float containing stuff like this:
ERT inset containing \subfigure[]{
(Note how the latex command isn't terminated, so anything after this ERT
will be inside the subfigure)
After that, I had a xfig figure and a noraml lyx label for referencing.
The fact that the lyx label is emitted inside the \subfigure means
that any reference to it gets the correct "Figure 1.1(b)" format,
even though lyx itself doesn't support such references to subfigures.
(Well, at least lyx 1.3 didn't at the time I wrote that book)
Latex supports references to subfigures, and that is what counts.

Later, I had a ERT containing just the terminating } that ends the subfigure.

This sequence then repeats a few times, for every subfigure in the float.

I did not have your problem of needing page breaks, as my floats were small.
But this way, I got subfigures with referencable captions.

Helge Hafting


 


Large figures with ContinuedFloat

2005-12-27 Thread Marc Vinyals

Hi.

I'm trying to span the subfigures inside a figure into multiple pages 
(they don't fit in a single one and just get lost in PS output). I found 
that caption package provides a way to do that, with a \ContinuedFloat 
command that must be inserted _immediately_ after starting a float 
environment. The problem is that with LyX I'm not able to do this 
because when inserting an ERT box, its contents are located after 
setting the nested standard environment inside the float. Does anybody 
know how to do that or should I edit .tex files manually?


Thanks for help.
Marc


Re: Large figures with ContinuedFloat

2005-12-27 Thread Marc Vinyals

Hi again.

I've solved most of my problem by playing a bit more with LyX. I tried 
putting the subfigures in separate floats and with no caption, just as I 
had done to prepare for inserting \ContinuedFloat commands but removing 
the ERT boxes. When I previewed the results, subcaptions were OK (this 
is (a) foo; (b) fooo; (c) ... instead of (a) foo; (a) fooo; (a) ...). 
I'm not sure about what would happen if I put text between two floats or 
how to make references correctly, but I suppose the last will be documented.


I hope this will help anyone with the same problems, since I've not been 
able to find related documentation.

Marc.


En/na Marc Vinyals ha escrit:


Hi.

I'm trying to span the subfigures inside a figure into multiple pages 
(they don't fit in a single one and just get lost in PS output). I 
found that caption package provides a way to do that, with a 
\ContinuedFloat command that must be inserted _immediately_ after 
starting a float environment. The problem is that with LyX I'm not 
able to do this because when inserting an ERT box, its contents are 
located after setting the nested standard environment inside the 
float. Does anybody know how to do that or should I edit .tex files 
manually?


Thanks for help.
Marc



Large figures with ContinuedFloat

2005-12-27 Thread Marc Vinyals

Hi.

I'm trying to span the subfigures inside a figure into multiple pages 
(they don't fit in a single one and just get lost in PS output). I found 
that caption package provides a way to do that, with a \ContinuedFloat 
command that must be inserted _immediately_ after starting a float 
environment. The problem is that with LyX I'm not able to do this 
because when inserting an ERT box, its contents are located after 
setting the nested standard environment inside the float. Does anybody 
know how to do that or should I edit .tex files manually?


Thanks for help.
Marc


Re: Large figures with ContinuedFloat

2005-12-27 Thread Marc Vinyals

Hi again.

I've solved most of my problem by playing a bit more with LyX. I tried 
putting the subfigures in separate floats and with no caption, just as I 
had done to prepare for inserting \ContinuedFloat commands but removing 
the ERT boxes. When I previewed the results, subcaptions were OK (this 
is (a) foo; (b) fooo; (c) ... instead of (a) foo; (a) fooo; (a) ...). 
I'm not sure about what would happen if I put text between two floats or 
how to make references correctly, but I suppose the last will be documented.


I hope this will help anyone with the same problems, since I've not been 
able to find related documentation.

Marc.


En/na Marc Vinyals ha escrit:


Hi.

I'm trying to span the subfigures inside a figure into multiple pages 
(they don't fit in a single one and just get lost in PS output). I 
found that caption package provides a way to do that, with a 
\ContinuedFloat command that must be inserted _immediately_ after 
starting a float environment. The problem is that with LyX I'm not 
able to do this because when inserting an ERT box, its contents are 
located after setting the nested standard environment inside the 
float. Does anybody know how to do that or should I edit .tex files 
manually?


Thanks for help.
Marc



Large figures with ContinuedFloat

2005-12-27 Thread Marc Vinyals

Hi.

I'm trying to span the subfigures inside a figure into multiple pages 
(they don't fit in a single one and just get lost in PS output). I found 
that "caption" package provides a way to do that, with a \ContinuedFloat 
command that must be inserted _immediately_ after starting a float 
environment. The problem is that with LyX I'm not able to do this 
because when inserting an ERT box, its contents are located after 
setting the nested standard environment inside the float. Does anybody 
know how to do that or should I edit .tex files manually?


Thanks for help.
Marc


Re: Large figures with ContinuedFloat

2005-12-27 Thread Marc Vinyals

Hi again.

I've solved most of my problem by playing a bit more with LyX. I tried 
putting the subfigures in separate floats and with no caption, just as I 
had done to prepare for inserting \ContinuedFloat commands but removing 
the ERT boxes. When I previewed the results, subcaptions were OK (this 
is (a) foo; (b) fooo; (c) ... instead of (a) foo; (a) fooo; (a) ...). 
I'm not sure about what would happen if I put text between two floats or 
how to make references correctly, but I suppose the last will be documented.


I hope this will help anyone with the same problems, since I've not been 
able to find related documentation.

Marc.


En/na Marc Vinyals ha escrit:


Hi.

I'm trying to span the subfigures inside a figure into multiple pages 
(they don't fit in a single one and just get lost in PS output). I 
found that "caption" package provides a way to do that, with a 
\ContinuedFloat command that must be inserted _immediately_ after 
starting a float environment. The problem is that with LyX I'm not 
able to do this because when inserting an ERT box, its contents are 
located after setting the nested standard environment inside the 
float. Does anybody know how to do that or should I edit .tex files 
manually?


Thanks for help.
Marc