On Sun, Oct 12, 2014 at 4:42 PM, Alfredo Braunstein <[email protected]> wrote:
> On Sun, Oct 12, 2014 at 9:58 PM, Scott Kostyshak <[email protected]> wrote:
>> If you go to Insert > Float > Figure Wrap Float, it does not float by
>> default. The two "Float" words in that process led me to assume that
>> it would wrap by default. One must go to settings and click on "Allow
>> floating". I was surprised by this because it is different from how we
>> handle the other floats.
>>
>> A quick look at the Embedded Objects manual provided no explanation
>> that the floating needs to be set manually.
>>
>> It is not a matter of respecting the defaults, because the figure
>> placement is a required argument and that is what determines the
>> floating.
>>
>> I took a look at the wrapfig manual [1] and I see
>>
>> <<
>> The ability to float is somewhat restricted, and you will get best
>> results by giving
>> exact manual placement, but floating is more convenient while revising
>> the document.
>> Any changes to the formatting can ruin your manual positioning so you
>> should adjust
>> the placement just before printing a final copy
>>>>
>>
>> But one can always get better results with manual placement of floats
>> (assuming everything else is constant), so I don't think this is any
>> different here.
>>
>> Any thoughts?
>
> In my very uninformed opinion (never used them), I agree that it would
> be more consistent to float by default like the other float insets.
> Moreover, it could be called "Figure Wrap" instead of "Figure Wrap
> Float", as it is already in the Float Sub-menu. Same thing for Table
> Wrap.

I like your suggestion for the name change.

> Unrelated, why with no open document the Float menu contains (greyed
> out) only Figure Wrap Float and Table Wrap Float and not the other
> floats?

Good find. I think this is because of a commit I made that enables the
submenus even if all items are greyed out:

commit d449e7e64e1f074fcd9621f3675796cbac9d2656
Author: Scott Kostyshak <[email protected]>
Date:   Fri Feb 21 10:26:36 2014 -0500

    Submenus now expand even if all items are disabled

    As stated in the Apple HIG[1] (via JMarc):

      Ensure that a submenu’s title is undimmed even when all its commands
      are unavailable. As with menu titles, it’s important for users to be
      able to view a submenu’s contents, even if none of them are
      available in the current context.

    [1]
    
https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AppleHIGuidelines/Menus/Menus.html#//apple_ref/doc/uid/TP30000356-TP6

It seems this change brought to surface the issue that you found
(before, the submenu would just not expand). I can look into fixing
this. I should also check whether there are any other similar cases. I
also ran the command in the same directory as the lyx binary:

$ rm ~/.lyx
$ PATH=''" ./lyx

Then even if I start a new document, the other floats are not present.
This might be a separate (configure) issue.

If there are no other opinions on this in the next few days, I will
make the following changes:

1. Change "Figure Wrap Float" to "Figure Wrap" and "Table Wrap Float"
to "Table Wrap".
2. Change the wraps to float by default.
3. The other float items should be shown (as greyed out) when no
document is open.

Thanks for the thoughts, Alfredo.

Scott

Reply via email to