Re: Issues using lyx

2017-06-22 Thread Mr William Balthes
I am interested in the comment about  windows. I have always been a windows 
user but am not wrapped in windows 10.


Does anyone else have experience of documents changing after there has been a 
windows update when the lyx document has been saved but left open.


A suggestion from the list is that I use linux.


I know nothing about it.  Does it have automatic updates that you can't avoid 
where the system restarts.


Is it more stable and do you avoid the crashes out of the blue and when 
selecting large amounts of text with the mouse.


Does linux still have back-ups and save temp files.


Thank you

William Balthes



From: Dr Eberhard Lisse 
Sent: Tuesday, 20 June 2017 8:37 PM
To: d...@lehigh.edu; lyx-users@lists.lyx.org; Mr William Balthes
Subject: Re: Issues using lyx

He's probably using Windoze.

el

On 18/06/2017 14:58, David L. Johnson wrote:
> On 06/17/2017 11:58 PM, Mr William Balthes wrote:
>>
>> I am using lyx to write my thesis and having major problems.
>>
>> The program continually crashes and mostly forms an emergency file
>> but sometimes not.
>>
>> The document seems to get messed up regardless.
>
> I have never had any such problems, so let's find out what is going
> on.
>
>> The document class is American Mathematical Society (AMS) Article
>
> Which I use all the time.
>
>
>> I can send a document sample if this helps
>
> I would guess this is a configuration issue.  Are you new to LyX?
> Send me a minimal file that shows the problem.  One way to do that
> is to take the file that is causing problems, cut it in half, and
> see which half continues to be a problem.  Continue until you can
> isolate the problem area (and of course remove anything you want to
> keep private).  Send that to me.
>
> Now, I don't use Windows, and have version 2.2.2 of LyX, but this
> would be a first test to see where the problem is.
>
> --
> David L. Johnson
> Department of Mathematics
> Lehigh University
>



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

2017-06-22 Thread Paul A. Rubin

On 06/22/2017 01:55 PM, Paul A. Rubin wrote:

On 06/22/2017 12:13 PM, Cris Fuhrman wrote:


While debugging some issues with SVG converters, I'm a bit confused 
now. I had configured an SVG -> PNG conversion rule in my 
preferences, hoping to control the tool that will visualize my SVG 
images when editing in LyX. Sadly, it seems that LyX is not applying 
the rule anymore. Here's the message log info:


graphics/GraphicsCacheItem.cpp (416): Converting it to format.

Format.cpp (393): filetools(getFormatFromContents)

Couldn't find a known format!

Format.cpp (504): will guess format from file extension: svg -> svg

graphics/GraphicsCacheItem.cpp (386):
[CacheItem::Impl::convertToDisplayFormat]

Attempting to convert image file: C:/REDACTED.svg

with displayed filename: C:/REDACTED.svg

Format.cpp (393): filetools(getFormatFromContents)

Couldn't find a known format!

Format.cpp (504): will guess format from file extension: svg -> svg

graphics/GraphicsCacheItem.cpp (393):

The file contains svg format data.

graphics/GraphicsCacheItem.cpp (398): No conversion needed (from
== to)!

graphics/GraphicsCacheItem.cpp (295): Loading image.

graphics/GraphicsCacheItem.cpp (301): Image loading succeeded.


I just checked with LyX 2.2.3 on Linux Mint, and the same thing 
happens to me (minus the part about Inkscape, which I do not have 
installed). LyX claims to have the ability to display SVG files 
directly, says it's doing a non-conversion (from == to) and then can't 
convert the file.


I'd be inclined to suspect a missing library, but I have libqt4-svg 
and libqt4-svg:i386 installed, along with a half-dozen other SVG 
libraries. That said, GIMP shows my test file as a blank canvas, and 
the default image viewer will not load it.
Okay, I partially retract what I said. I don't have a lot of SVG files 
lying around, and the first ones I tested (all from the same source) 
generated exactly the same error messages Cris reported.


Just now, though, I tried a few others I tracked down on my drive, 
including some .svgz files provided by LyX (in /usr/share/lyx/images on 
Linux systems) and the only .svg file I could find from LyX 
(/usr/share/lyx/doc/clipart/SVG-Drawing.svg). They all worked fine, as 
did a non-LyX SVG file I found in one of my folders.


So apparently there's something "off" about the SVG files that caused 
LyX to spit up the error messages, and maybe there is similarly 
something different about Cris's images.


Paul



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

2017-06-22 Thread Kornel Benko
Am Donnerstag, 22. Juni 2017 um 12:13:26, schrieb Cris Fuhrman 

> Hello,
> 
> While debugging some issues with SVG converters, I'm a bit confused now. I
> had configured an SVG -> PNG conversion rule in my preferences, hoping to
> control the tool that will visualize my SVG images when editing in LyX.
> Sadly, it seems that LyX is not applying the rule anymore. Here's the
> message log info:
> 

To my understanding, we depend on QT to do the convert for us.
For it to work, we have to install the appropriate svg module.
On debian-linuxes the needed packages are:
libqt4-svg (for QT 4.8)
libqt5svg5 (for QT 5.x)
Without this, display of svg-images is not working.
Kornel

signature.asc
Description: This is a digitally signed message part.


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

2017-06-22 Thread Paul A. Rubin

On 06/22/2017 12:13 PM, Cris Fuhrman wrote:

Hello,

While debugging some issues with SVG converters, I'm a bit confused 
now. I had configured an SVG -> PNG conversion rule in my preferences, 
hoping to control the tool that will visualize my SVG images when 
editing in LyX. Sadly, it seems that LyX is not applying the rule 
anymore. Here's the message log info:


graphics/GraphicsCacheItem.cpp (416): Converting it to format.

Format.cpp (393): filetools(getFormatFromContents)

Couldn't find a known format!

Format.cpp (504): will guess format from file extension: svg -> svg

graphics/GraphicsCacheItem.cpp (386):
[CacheItem::Impl::convertToDisplayFormat]

Attempting to convert image file: C:/REDACTED.svg

with displayed filename: C:/REDACTED.svg

Format.cpp (393): filetools(getFormatFromContents)

Couldn't find a known format!

Format.cpp (504): will guess format from file extension: svg -> svg

graphics/GraphicsCacheItem.cpp (393):

The file contains svg format data.

graphics/GraphicsCacheItem.cpp (398): No conversion needed (from
== to)!

graphics/GraphicsCacheItem.cpp (295): Loading image.

graphics/GraphicsCacheItem.cpp (301): Image loading succeeded.



Here are my questions:

  * Which tool is converting my SVG to show on the screen if the log
says "No conversion needed"? Are SVG files now somehow "native" to
LyX 2.2.3?
  * Is it not the SVG -> PNG rule I should be overriding?
  * Why is my SVG -> PNG converter (the one I thought should be
executed) being ignored?

The reason I need to do this is that the rendering of flowed (wrapped) 
text in SVG (something I use quite a lot in figures) is very dependent 
on the converter. Inkscape lets me edit pretty well, but I'd been 
having issues with it hanging and so I switched it to rsvg-convert 
while debugging. That tool doesn't quite handle wrapped text so well, 
as it is a controversial (moving target) part of the standard. See 
http://wiki.inkscape.org/wiki/index.php/Frequently_asked_questions#What_about_flowed_text.3F


My SVG -> PDF (pdf2latex) etc. overrides seem to work just fine when I 
test.
I just checked with LyX 2.2.3 on Linux Mint, and the same thing happens 
to me (minus the part about Inkscape, which I do not have installed). 
LyX claims to have the ability to display SVG files directly, says it's 
doing a non-conversion (from == to) and then can't convert the file.


I'd be inclined to suspect a missing library, but I have libqt4-svg and 
libqt4-svg:i386 installed, along with a half-dozen other SVG libraries. 
That said, GIMP shows my test file as a blank canvas, and the default 
image viewer will not load it.


FWIW,
Paul



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

2017-06-22 Thread Scott Kostyshak
On Thu, Jun 22, 2017 at 12:13:26PM -0400, Cris Fuhrman wrote:
> Hello,
> 
> While debugging some issues with SVG converters, I'm a bit confused now. I
> had configured an SVG -> PNG conversion rule in my preferences, hoping to
> control the tool that will visualize my SVG images when editing in LyX.
> Sadly, it seems that LyX is not applying the rule anymore.

Anymore after what? After an upgrade of LyX?

Have you tried using Insert > File > External Materials and choosing
"Inkscape figure"? I wonder if that will work better for your workflow.

Scott


LyX 2.2.3, Windows 10 and showing SVG in the editor

2017-06-22 Thread Cris Fuhrman
Hello,

While debugging some issues with SVG converters, I'm a bit confused now. I
had configured an SVG -> PNG conversion rule in my preferences, hoping to
control the tool that will visualize my SVG images when editing in LyX.
Sadly, it seems that LyX is not applying the rule anymore. Here's the
message log info:

graphics/GraphicsCacheItem.cpp (416): Converting it to format.
>
> Format.cpp (393): filetools(getFormatFromContents)
>
> Couldn't find a known format!
>
> Format.cpp (504): will guess format from file extension: svg -> svg
>
> graphics/GraphicsCacheItem.cpp (386):
> [CacheItem::Impl::convertToDisplayFormat]
>
> Attempting to convert image file: C:/REDACTED.svg
>
> with displayed filename: C:/REDACTED.svg
>
> Format.cpp (393): filetools(getFormatFromContents)
>
> Couldn't find a known format!
>
> Format.cpp (504): will guess format from file extension: svg -> svg
>
> graphics/GraphicsCacheItem.cpp (393):
>
> The file contains svg format data.
>
> graphics/GraphicsCacheItem.cpp (398): No conversion needed (from == to)!
>
> graphics/GraphicsCacheItem.cpp (295): Loading image.
>
> graphics/GraphicsCacheItem.cpp (301): Image loading succeeded.
>
>
>
Here are my questions:

   - Which tool is converting my SVG to show on the screen if the log says
   "No conversion needed"? Are SVG files now somehow "native" to LyX 2.2.3?
   - Is it not the SVG -> PNG rule I should be overriding?
   - Why is my SVG -> PNG converter (the one I thought should be executed)
   being ignored?

The reason I need to do this is that the rendering of flowed (wrapped) text
in SVG (something I use quite a lot in figures) is very dependent on the
converter. Inkscape lets me edit pretty well, but I'd been having issues
with it hanging and so I switched it to rsvg-convert while debugging. That
tool doesn't quite handle wrapped text so well, as it is a controversial
(moving target) part of the standard. See
http://wiki.inkscape.org/wiki/index.php/Frequently_asked_questions#What_about_flowed_text.3F

My SVG -> PDF (pdf2latex) etc. overrides seem to work just fine when I
test.