Re: LyX 2.2.3, Windows 10 and showing SVG in the editor

2017-06-26 Thread Cris Fuhrman
On Sun, Jun 25, 2017 at 7:41 PM, Scott Kostyshak  wrote:

> I'm not sure exactly what happens and if there is platform-specific
> behavior. To see the discussion I was referencing, see:
>
> https://www.lyx.org/trac/ticket/9778


Thanks for the details. Clearly LyX is trying to render SVG without using
conversion rules. In https://www.lyx.org/trac/ticket/9778#comment:10 a
work-around to force LyX to use the conversion rules is to remove a library
file. I tried this on my Windows 10 (it's a DLL) and it breaks the GUI of
LyX.

Because SVG is a moving standard (1.1 is last official one and was released
in 2011, 1.2 is still a draft, Tiny 1.2 exists as a separate standard, 2.x
is still in draft mode, etc.), LyX users should have more control over how
SVG is rendered with the tool they prefer. SVG is not like GIF or JPEG
(yet).

I see there was already a patch
https://www.lyx.org/trac/changeset/6bd5263405/lyxgit that was supposed to
make this work. But from my experiences with 2.2.3 in Windows, it doesn't
seem to be working (anymore).

Would it be constructive to make a feature request in LyX to allow the
option of bypassing native SVG rendering?


Re: How to avoid breaking an item of enumerate?

2017-06-26 Thread Paul Smith
On Sun, Jun 25, 2017 at 8:43 PM, Paul A. Rubin  wrote:
> On 06/25/2017 03:25 PM, Paul Smith wrote:
>>
>> On Sun, Jun 25, 2017 at 7:09 PM, Paul A. Rubin 
>> wrote:
>>>
>>> You can manually force page breaks (after the document is "finalized") by
>>> inserting formatting instructions. See section 3.5.5 of the LyX User
>>> Guide.
>>> You might also try the enumitem module (see section 3.6 of the PDF
>>> documentation for the enumitem package), but I've struggled to get that
>>> to
>>> work.
>>
>> I am looking for a simple and automatic way. But thanks, Paul!
>>
>> Paul
>
> Fully automatic (not to mention simple) may not be feasible. What if you
> have a zillion subitems under one main item (or a few really long subitems)?
> Theoretically, you could put LaTeX in a position where your subitem list
> exceeds a page length but it's not allowed to break up the list. So, while
> I'm not a LaTeX guru, my guess is that the best you'll be able to do with an
> "automatic" approach is to encourage, rather than force, LaTeX to break
> after a sublist rather than during (or at the start) of one.
>
> I believe that's what the penalty options in the enumitem package are
> intended to do, and I believe that you can set global values for those
> penalties. So, if I'm right, you should just need to make two tweaks to the
> document. Add the enumitem module in the document modules list, and add a
> line of LaTeX code in the preamble setting your penalties. IF I'm right (and
> IF you can get it to work).

Thanks again, Paul. I have tried playing with

midpenalty

but with no success. Other people have reported the same on several
forums on the Internet.

Anyway, I can resort to the manual way! :-)

Paul