Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip p...@net.hr írta:

 I have problem with table centering and aligning to the right.

You set the width of the right aligned table to 80% of the line width.

Text width to be accurate. I want it to be like that.

LaTeX probably calculates the position of your table with respect to 
this size. Table is, however, rendered to accommodate the whole text in 
each of the cells, and turns out bigger.

I can't understand this. Could explain it, please? Possibly by giving example?
Furthemore this does not explain why the table looks correct when left aligned.

Solution: let LaTeX control the size of the table automatically.

This is not solution, this is an ugly workaround. I set that width on purpose 
since I want
more distance between columns than default.

This behavior seems like result of serious bug. 
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.

bcsikos



Re: table alignment example

2013-03-12 Thread PhilipPirrip

On 03/12/2013 01:16 PM, Csikos Bela wrote:

This behavior seems like result of serious bug.
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.


You can always rewrite the code for typesetting the tables, you don't 
have to be so angry.


What you're saying is a contradiction, imo. First, you set your table 
width to 80% of text width, but then you fill it with cells that exceed 
that width, still you expect everything to work.
Even left aligned tables will protrude the margins if you make them too 
big for the size of the text.





Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip p...@net.hr írta:
On 03/12/2013 01:16 PM, Csikos Bela wrote:
 This behavior seems like result of serious bug.
 The width of table can be specified to fixed value. It would be nonsense
 if giving this option resulted wrong table layout/placement.

You can always rewrite the code for typesetting the tables, you don't 
have to be so angry.

Sorry if it sounded like that, I was not angry at all.

What you're saying is a contradiction, imo. First, you set your table 
width to 80% of text width, but then you fill it with cells that exceed 
that width, still you expect everything to work.

That's the key. I haven't realized my table width was wider than
the defined 80%. Now I measured it, and you're right, it is ~86%.
If I set the defined width to 90%, alignment is correct.
That is, it was my fault, sorry.

Thanks!

bcsikos



Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip p...@net.hr írta:

 I have problem with table centering and aligning to the right.

You set the width of the right aligned table to 80% of the line width.

Text width to be accurate. I want it to be like that.

LaTeX probably calculates the position of your table with respect to 
this size. Table is, however, rendered to accommodate the whole text in 
each of the cells, and turns out bigger.

I can't understand this. Could explain it, please? Possibly by giving example?
Furthemore this does not explain why the table looks correct when left aligned.

Solution: let LaTeX control the size of the table automatically.

This is not solution, this is an ugly workaround. I set that width on purpose 
since I want
more distance between columns than default.

This behavior seems like result of serious bug. 
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.

bcsikos



Re: table alignment example

2013-03-12 Thread PhilipPirrip

On 03/12/2013 01:16 PM, Csikos Bela wrote:

This behavior seems like result of serious bug.
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.


You can always rewrite the code for typesetting the tables, you don't 
have to be so angry.


What you're saying is a contradiction, imo. First, you set your table 
width to 80% of text width, but then you fill it with cells that exceed 
that width, still you expect everything to work.
Even left aligned tables will protrude the margins if you make them too 
big for the size of the text.





Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip p...@net.hr írta:
On 03/12/2013 01:16 PM, Csikos Bela wrote:
 This behavior seems like result of serious bug.
 The width of table can be specified to fixed value. It would be nonsense
 if giving this option resulted wrong table layout/placement.

You can always rewrite the code for typesetting the tables, you don't 
have to be so angry.

Sorry if it sounded like that, I was not angry at all.

What you're saying is a contradiction, imo. First, you set your table 
width to 80% of text width, but then you fill it with cells that exceed 
that width, still you expect everything to work.

That's the key. I haven't realized my table width was wider than
the defined 80%. Now I measured it, and you're right, it is ~86%.
If I set the defined width to 90%, alignment is correct.
That is, it was my fault, sorry.

Thanks!

bcsikos



Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip  írta:
>
>> I have problem with table centering and aligning to the right.
>
>You set the width of the right aligned table to 80% of the line width.

Text width to be accurate. I want it to be like that.

>LaTeX probably calculates the position of your table with respect to 
>this size. Table is, however, rendered to accommodate the whole text in 
>each of the cells, and turns out bigger.

I can't understand this. Could explain it, please? Possibly by giving example?
Furthemore this does not explain why the table looks correct when left aligned.

>Solution: let LaTeX control the size of the table automatically.

This is not solution, this is an ugly workaround. I set that width on purpose 
since I want
more distance between columns than default.

This behavior seems like result of serious bug. 
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.

bcsikos



Re: table alignment example

2013-03-12 Thread PhilipPirrip

On 03/12/2013 01:16 PM, Csikos Bela wrote:

This behavior seems like result of serious bug.
The width of table can be specified to fixed value. It would be nonsense
if giving this option resulted wrong table layout/placement.


You can always rewrite the code for typesetting the tables, you don't 
have to be so angry.


What you're saying is a contradiction, imo. First, you set your table 
width to 80% of text width, but then you fill it with cells that exceed 
that width, still you expect everything to work.
Even left aligned tables will protrude the margins if you make them too 
big for the size of the text.





Re: table alignment example

2013-03-12 Thread Csikos Bela
PhilipPirrip  írta:
>On 03/12/2013 01:16 PM, Csikos Bela wrote:
>> This behavior seems like result of serious bug.
>> The width of table can be specified to fixed value. It would be nonsense
>> if giving this option resulted wrong table layout/placement.
>
>You can always rewrite the code for typesetting the tables, you don't 
>have to be so angry.

Sorry if it sounded like that, I was not angry at all.

>What you're saying is a contradiction, imo. First, you set your table 
>width to 80% of text width, but then you fill it with cells that exceed 
>that width, still you expect everything to work.

That's the key. I haven't realized my table width was wider than
the defined 80%. Now I measured it, and you're right, it is ~86%.
If I set the defined width to 90%, alignment is correct.
That is, it was my fault, sorry.

Thanks!

bcsikos



Re: table alignment example

2013-03-11 Thread Scott Kostyshak
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, not 
 placed correctly. The rules indicate text width (from left to right margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

 Thanks,

 bcsikos


Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered. Other than that,
this is a nice minimal example and I agree that this is strange. I
don't know enough about LaTeX to comment, but I can confirm that the
right-aligned table goes into the right margin (even though it is not
as wide as \textwidth) and if I try to center the middle table, it is
not exactly centered.

Scott


Re: table alignment example

2013-03-11 Thread Csikos Bela
Scott Kostyshak skost...@princeton.edu írta:
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu
 wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, 
 not placed correctly. The rules indicate text width (from left to right 
 margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered.

Sorry, here I attach the 'correct' lyx and pdf files.
There are four tables:
1. general minimal table, right aligned
2. table with longer lines incorrectly right aligned
3. the same table as above incorrectly centered
4. same table as above correctly left aligned

bcsikos425


Table-alignment-example.lyx
Description: Binary data


Table-alignment-example.pdf
Description: Adobe PDF document


Re: table alignment example

2013-03-11 Thread Csikos Bela
Scott Kostyshak skost...@princeton.edu írta:
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu
 wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, 
 not placed correctly. The rules indicate text width (from left to right 
 margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered.

Sorry, here I attach the 'correct' lyx and pdf files.
There are four tables:
1. general minimal table, right aligned
2. table with longer lines incorrectly right aligned
3. the same table as above incorrectly centered
4. same table as above correctly left aligned

bcsikos425


Table-alignment-example.lyx
Description: Binary data


Table-alignment-example.pdf
Description: Adobe PDF document


Re: table alignment example

2013-03-11 Thread Scott Kostyshak
On Mon, Mar 11, 2013 at 11:47 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Scott Kostyshak skost...@princeton.edu írta:
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu
 wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, 
 not placed correctly. The rules indicate text width (from left to right 
 margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered.

 Sorry, here I attach the 'correct' lyx and pdf files.
 There are four tables:
 1. general minimal table, right aligned
 2. table with longer lines incorrectly right aligned
 3. the same table as above incorrectly centered
 4. same table as above correctly left aligned

Nice, clear example. I'm also interested in the answer.

Thanks,

Scott


Re: table alignment example

2013-03-11 Thread PhilipPirrip



I have problem with table centering and aligning to the right.


You set the width of the right aligned table to 80% of the line width. 
LaTeX probably calculates the position of your table with respect to 
this size. Table is, however, rendered to accommodate the whole text in 
each of the cells, and turns out bigger.

Solution: let LaTeX control the size of the table automatically.



Re: table alignment example

2013-03-11 Thread Uwe Stöhr

Am 11.03.2013 20:27, schrieb PhilipPirrip:


I have problem with table centering and aligning to the right.


You set the width of the right aligned table to 80% of the line width. LaTeX 
probably calculates the
position of your table with respect to this size.


Yes. You can see this if you use 50 % instead of 80 %.
I will add this information to the EmbeddedObjects manual.


Solution: let LaTeX control the size of the table automatically.


Meaning not to use a defined table width if you use a paragraph alignment.

regards Uwe


Re: table alignment example

2013-03-11 Thread Scott Kostyshak
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, not 
 placed correctly. The rules indicate text width (from left to right margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

 Thanks,

 bcsikos


Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered. Other than that,
this is a nice minimal example and I agree that this is strange. I
don't know enough about LaTeX to comment, but I can confirm that the
right-aligned table goes into the right margin (even though it is not
as wide as \textwidth) and if I try to center the middle table, it is
not exactly centered.

Scott


Re: table alignment example

2013-03-11 Thread Csikos Bela
Scott Kostyshak skost...@princeton.edu írta:
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu
 wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, 
 not placed correctly. The rules indicate text width (from left to right 
 margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered.

Sorry, here I attach the 'correct' lyx and pdf files.
There are four tables:
1. general minimal table, right aligned
2. table with longer lines incorrectly right aligned
3. the same table as above incorrectly centered
4. same table as above correctly left aligned

bcsikos425


Table-alignment-example.lyx
Description: Binary data


Table-alignment-example.pdf
Description: Adobe PDF document


Re: table alignment example

2013-03-11 Thread Csikos Bela
Scott Kostyshak skost...@princeton.edu írta:
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu
 wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, 
 not placed correctly. The rules indicate text width (from left to right 
 margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered.

Sorry, here I attach the 'correct' lyx and pdf files.
There are four tables:
1. general minimal table, right aligned
2. table with longer lines incorrectly right aligned
3. the same table as above incorrectly centered
4. same table as above correctly left aligned

bcsikos425


Table-alignment-example.lyx
Description: Binary data


Table-alignment-example.pdf
Description: Adobe PDF document


Re: table alignment example

2013-03-11 Thread Scott Kostyshak
On Mon, Mar 11, 2013 at 11:47 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Scott Kostyshak skost...@princeton.edu írta:
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela bcsikos...@freemail.hu
 wrote:
 Hello:

 I have problem with table centering and aligning to the right.
 I attach en example lyx file and the corresponding pdf output.
 If the table is aligned to the left (last table in the example) it looks OK.
 But if I center or right align the same table it is shifted to the right, 
 not placed correctly. The rules indicate text width (from left to right 
 margin).
 Why is this and how can I correct it? I would like to insert nicely centered
 table. Do I miss something obvious?

Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered.

 Sorry, here I attach the 'correct' lyx and pdf files.
 There are four tables:
 1. general minimal table, right aligned
 2. table with longer lines incorrectly right aligned
 3. the same table as above incorrectly centered
 4. same table as above correctly left aligned

Nice, clear example. I'm also interested in the answer.

Thanks,

Scott


Re: table alignment example

2013-03-11 Thread PhilipPirrip



I have problem with table centering and aligning to the right.


You set the width of the right aligned table to 80% of the line width. 
LaTeX probably calculates the position of your table with respect to 
this size. Table is, however, rendered to accommodate the whole text in 
each of the cells, and turns out bigger.

Solution: let LaTeX control the size of the table automatically.



Re: table alignment example

2013-03-11 Thread Uwe Stöhr

Am 11.03.2013 20:27, schrieb PhilipPirrip:


I have problem with table centering and aligning to the right.


You set the width of the right aligned table to 80% of the line width. LaTeX 
probably calculates the
position of your table with respect to this size.


Yes. You can see this if you use 50 % instead of 80 %.
I will add this information to the EmbeddedObjects manual.


Solution: let LaTeX control the size of the table automatically.


Meaning not to use a defined table width if you use a paragraph alignment.

regards Uwe


Re: table alignment example

2013-03-11 Thread Scott Kostyshak
On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela  wrote:
> Hello:
>
> I have problem with table centering and aligning to the right.
> I attach en example lyx file and the corresponding pdf output.
> If the table is aligned to the left (last table in the example) it looks OK.
> But if I center or right align the same table it is shifted to the right, not 
> placed correctly. The rules indicate text width (from left to right margin).
> Why is this and how can I correct it? I would like to insert nicely centered
> table. Do I miss something obvious?
>
> Thanks,
>
> bcsikos
>

Just to clarify for other users that test this, the pdf is not the
same as compiled from the .lyx file. The pdf has four tables. The .lyx
file has three tables, and none of them is centered. Other than that,
this is a nice minimal example and I agree that this is strange. I
don't know enough about LaTeX to comment, but I can confirm that the
right-aligned table goes into the right margin (even though it is not
as wide as \textwidth) and if I try to center the middle table, it is
not exactly centered.

Scott


Re: table alignment example

2013-03-11 Thread Csikos Bela
Scott Kostyshak  írta:
>On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela  wrote:
>> Hello:
>>
>> I have problem with table centering and aligning to the right.
>> I attach en example lyx file and the corresponding pdf output.
>> If the table is aligned to the left (last table in the example) it looks OK.
>> But if I center or right align the same table it is shifted to the right, 
>> not placed correctly. The rules indicate text width (from left to right 
>> margin).
>> Why is this and how can I correct it? I would like to insert nicely centered
>> table. Do I miss something obvious?

>Just to clarify for other users that test this, the pdf is not the
>same as compiled from the .lyx file. The pdf has four tables. The .lyx
>file has three tables, and none of them is centered.

Sorry, here I attach the 'correct' lyx and pdf files.
There are four tables:
1. general minimal table, right aligned
2. table with longer lines incorrectly right aligned
3. the same table as above incorrectly centered
4. same table as above correctly left aligned

bcsikos425


Table-alignment-example.lyx
Description: Binary data


Table-alignment-example.pdf
Description: Adobe PDF document


Re: table alignment example

2013-03-11 Thread Csikos Bela
Scott Kostyshak  írta:
>On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela  wrote:
>> Hello:
>>
>> I have problem with table centering and aligning to the right.
>> I attach en example lyx file and the corresponding pdf output.
>> If the table is aligned to the left (last table in the example) it looks OK.
>> But if I center or right align the same table it is shifted to the right, 
>> not placed correctly. The rules indicate text width (from left to right 
>> margin).
>> Why is this and how can I correct it? I would like to insert nicely centered
>> table. Do I miss something obvious?

>Just to clarify for other users that test this, the pdf is not the
>same as compiled from the .lyx file. The pdf has four tables. The .lyx
>file has three tables, and none of them is centered.

Sorry, here I attach the 'correct' lyx and pdf files.
There are four tables:
1. general minimal table, right aligned
2. table with longer lines incorrectly right aligned
3. the same table as above incorrectly centered
4. same table as above correctly left aligned

bcsikos425


Table-alignment-example.lyx
Description: Binary data


Table-alignment-example.pdf
Description: Adobe PDF document


Re: table alignment example

2013-03-11 Thread Scott Kostyshak
On Mon, Mar 11, 2013 at 11:47 AM, Csikos Bela  wrote:
> Scott Kostyshak  írta:
>>On Mon, Mar 11, 2013 at 10:02 AM, Csikos Bela > wrote:
>>> Hello:
>>>
>>> I have problem with table centering and aligning to the right.
>>> I attach en example lyx file and the corresponding pdf output.
>>> If the table is aligned to the left (last table in the example) it looks OK.
>>> But if I center or right align the same table it is shifted to the right, 
>>> not placed correctly. The rules indicate text width (from left to right 
>>> margin).
>>> Why is this and how can I correct it? I would like to insert nicely centered
>>> table. Do I miss something obvious?
>
>>Just to clarify for other users that test this, the pdf is not the
>>same as compiled from the .lyx file. The pdf has four tables. The .lyx
>>file has three tables, and none of them is centered.
>
> Sorry, here I attach the 'correct' lyx and pdf files.
> There are four tables:
> 1. general minimal table, right aligned
> 2. table with longer lines incorrectly right aligned
> 3. the same table as above incorrectly centered
> 4. same table as above correctly left aligned

Nice, clear example. I'm also interested in the answer.

Thanks,

Scott


Re: table alignment example

2013-03-11 Thread PhilipPirrip



I have problem with table centering and aligning to the right.


You set the width of the right aligned table to 80% of the line width. 
LaTeX probably calculates the position of your table with respect to 
this size. Table is, however, rendered to accommodate the whole text in 
each of the cells, and turns out bigger.

Solution: let LaTeX control the size of the table automatically.



Re: table alignment example

2013-03-11 Thread Uwe Stöhr

Am 11.03.2013 20:27, schrieb PhilipPirrip:


I have problem with table centering and aligning to the right.


You set the width of the right aligned table to 80% of the line width. LaTeX 
probably calculates the
position of your table with respect to this size.


Yes. You can see this if you use 50 % instead of 80 %.
I will add this information to the EmbeddedObjects manual.


Solution: let LaTeX control the size of the table automatically.


Meaning not to use a defined table width if you use a paragraph alignment.

regards Uwe