Herbert Voss | 1 Jan 2004 19:46
Picon

Re: Two problems with float:tables

Paul Smith wrote:

> I thank both (Angus and Herbert) for your help! I have just tried the 
> way suggested by Angus (putting the float table inside a minipage) and 
> it works fine. Probably, my table is not a pure float, since I have 
> selected the "here definitely placement".

This is not a good idea. You need a minipage only for the caption,
not for the "float". Otherwise it makes no sense, because the
tabular may be of a larger size than the minipage and then
the tabular is not horizontally centered.

Herbert

Paul Smith | 1 Jan 2004 20:23
Picon
Favicon

Re: Two problems with float:tables

> This is not a good idea. You need a minipage only for the caption,
> not for the "float". Otherwise it makes no sense, because the
> tabular may be of a larger size than the minipage and then
> the tabular is not horizontally centered.

I have tried the method suggested by you, but I get compiling errors. 
The LyX file is enclosed.

Paul

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass report
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
(Continue reading)

Herbert Voss | 1 Jan 2004 22:41
Picon

Re: Two problems with float:tables

Paul Smith wrote:
>> This is not a good idea. You need a minipage only for the caption,
>> not for the "float". Otherwise it makes no sense, because the
>> tabular may be of a larger size than the minipage and then
>> the tabular is not horizontally centered.
> 
> 
> I have tried the method suggested by you, but I get compiling errors. 
> The LyX file is enclosed.

attached the correct file.
With right mouse button clicking on the
minipage button you can change the width of
the minipage. I set it to 30% of columnwidth.

Herbert
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
(Continue reading)

Paul Smith | 2 Jan 2004 11:10
Picon
Favicon

Re: Two problems with float:tables

>> I have tried the method suggested by you, but I get compiling errors. 
>> The LyX file is enclosed.
> 
> 
> attached the correct file.
> With right mouse button clicking on the
> minipage button you can change the width of
> the minipage. I set it to 30% of columnwidth.

It works fine now! Thanks, Herbert! I have still a question: how can one 
use LyX to insert the caption inside a minipage?

Paul

Herbert Voss | 2 Jan 2004 12:17
Picon

Re: Two problems with float:tables

Paul Smith wrote:
>>> I have tried the method suggested by you, but I get compiling errors. 
>>> The LyX file is enclosed.
>>
>>
>>
>> attached the correct file.
>> With right mouse button clicking on the
>> minipage button you can change the width of
>> the minipage. I set it to 30% of columnwidth.
> 
> 
> It works fine now! Thanks, Herbert! I have still a question: how can one 
> use LyX to insert the caption inside a minipage?

- Insert->minipage (it is by default 100% of columnwidth
   change it with the above method
- now the cursor is inside the minipage
   change to paragraph layout-> Caption
- insert caption as usual

Herbert

Paul Smith | 2 Jan 2004 12:52
Picon
Favicon

Re: Two problems with float:tables

> - Insert->minipage (it is by default 100% of columnwidth
>   change it with the above method
> - now the cursor is inside the minipage
>   change to paragraph layout-> Caption
> - insert caption as usual

Thank you very much indeed, Herbert!

Paul

Paul Smith | 1 Jan 2004 20:06
Picon
Favicon

Re: Two problems with float:tables

>> I thank both (Angus and Herbert) for your help! I have just tried the 
>> way suggested by Angus (putting the float table inside a minipage) and 
>> it works fine. Probably, my table is not a pure float, since I have 
>> selected the "here definitely placement".
> 
> 
> This is not a good idea. You need a minipage only for the caption,
> not for the "float". Otherwise it makes no sense, because the
> tabular may be of a larger size than the minipage and then
> the tabular is not horizontally centered.

Thanks, Herbert!

Paul


Gmane