Re: minipage preview of linewidth in edit mode

2017-05-30 Thread Jean-Marc Lasgouttes

Le 28/05/2017 à 04:32, subaochen a écrit :

Thanks Soctt!

Actually, I change the width of first minipage to 65.681%(the other is 
always 30% width), the whole thing is ok, LaTeX log say nothing 
wrong.But 65.682% is not working, LaTeX log say:


Overfull \hbox (0.10208pt too wide) in paragraph at lines 12--18


I don't know the reason, where the 4.3% of space go?


Textwidth is the complete line width, LineWidth is the same minus the 
paragraph indentation (when on first line of a paragraph). The bug is 
that on screen LyX considers the line width to be equal to text width. 
The 4.3% of space is thus the indentation. You would not have the 
problem if the indentation was removed.


Please consider creating a ticket at www.lyx.org/trac. I cannot commit 
to fixing it right now, though.


JMarc


Re: Re: minipage preview of linewidth in edit mode

2017-05-28 Thread Scott Kostyshak
On Sun, May 28, 2017 at 10:32:16AM +0800, subaochen wrote:

> I don't know the reason, where the 4.3% of space go?

I don't know, but I think I've seen information like this from searching
the web before.

Scott


Re:Re: minipage preview of linewidth in edit mode

2017-05-27 Thread subaochen
Thanks Soctt!


Actually, I change the width of first minipage to 65.681%(the other is always 
30% width), the whole thing is ok, LaTeX log say nothing wrong.But 65.682% is 
not working, LaTeX log say:



Overfull \hbox (0.10208pt too wide) in paragraph at lines 12--18




I don't know the reason, where the 4.3% of space go?



At 2017-05-28 01:07:56, "Scott Kostyshak"  wrote:
>On Sat, May 27, 2017 at 10:07:15AM +0800, subaochen wrote:
>> hi,
>> 
>> 
>> With LyX 2.2.3,it seemed that minipage can not show the correct alignment in 
>> edit mode. For example, there are two minipage, one is 30% linewidth, one is 
>> 70% linewidth, then in edit mode, the two minipages are seperated into two 
>> line( should be in one line).  Generated PDF file is ok. If one is 69% 
>> linewidth, another is 30% linewidth, edit preview and PDF are all ok.   I 
>> have attached a small test file, please check it out.
>
>Thanks for the report and especially for the example file, subaochen. If
>you look at the LaTeX log, you will see overfull hbox messages.
>Alternatively, add the option "draft" to class options in Document >
>Settings, and compile and you will see that there is a black line where
>there were overfull hbox messages.
>
>What this means is that LaTeX is saying the width is larger than the
>text width. Thus, I'm not convinced that LyX should actually show the
>two minipages on the same line.
>
>This is a topic I know little about. All I'm saying is "I'm not
>convinced". I'm not saying with any confidence that LyX currently does
>the write thing. Hopefully someone with better knowledge knows better.
>
>Scott


Re: minipage preview of linewidth in edit mode

2017-05-27 Thread Scott Kostyshak
On Sat, May 27, 2017 at 10:07:15AM +0800, subaochen wrote:
> hi,
> 
> 
> With LyX 2.2.3,it seemed that minipage can not show the correct alignment in 
> edit mode. For example, there are two minipage, one is 30% linewidth, one is 
> 70% linewidth, then in edit mode, the two minipages are seperated into two 
> line( should be in one line).  Generated PDF file is ok. If one is 69% 
> linewidth, another is 30% linewidth, edit preview and PDF are all ok.   I 
> have attached a small test file, please check it out.

Thanks for the report and especially for the example file, subaochen. If
you look at the LaTeX log, you will see overfull hbox messages.
Alternatively, add the option "draft" to class options in Document >
Settings, and compile and you will see that there is a black line where
there were overfull hbox messages.

What this means is that LaTeX is saying the width is larger than the
text width. Thus, I'm not convinced that LyX should actually show the
two minipages on the same line.

This is a topic I know little about. All I'm saying is "I'm not
convinced". I'm not saying with any confidence that LyX currently does
the write thing. Hopefully someone with better knowledge knows better.

Scott


minipage preview of linewidth in edit mode

2017-05-26 Thread subaochen
hi,


With LyX 2.2.3,it seemed that minipage can not show the correct alignment in 
edit mode. For example, there are two minipage, one is 30% linewidth, one is 
70% linewidth, then in edit mode, the two minipages are seperated into two 
line( should be in one line).  Generated PDF file is ok. If one is 69% 
linewidth, another is 30% linewidth, edit preview and PDF are all ok.   I have 
attached a small test file, please check it out.

Thanks!

--
Best regards,



lyx-minipage-linewidth-test.lyx
Description: Binary data