Mr. Obvious statements: 1) You are having trouble with the way svg's are
being handled. 

           2) _One_ out of the _six_ is being handled different.  

          3) Same thing happens on any compile.

 

My thought pattern is that something in your LyX file(s) is telling lyx to
handle things that way.

 

A) rename your .lyx file to something really new (i.e., ManThisTestHurts.lyx
) just to make sure you are not loading a 'same named' lyx file from some
other directory without understanding that is happening.  Then do a test
compile of ManThisTestHurts.lyx .

 

B) On Unix I would suggest using the following to gather a bit more
information.

grep -5 -i -e \.svg -e \.pdf -e "begin_inset Graphics" ManThisTestHurts.lyx


I might go as far as exporting from lyx to latex and using the above grep on
that latex file too.

The options to grep are, -5=include 5 lines of context around any finds,
-i=search case insensitive, -e=add another thing to search for

IIRC the windows 'find' command can do something kind of like grep, but not
nearly as easy.

 

The point of the above is to see what lyx is being told to do. Also I expect
that that output should be close to shareable without disclosing _too_ much
content of your doc.

 

Hopefully this adds clarity, but it is possible it will just dig us deeper
in the "where does this hole end?".

 

 

From: Michael Dean Pugh <[email protected]> 
Sent: Friday, February 13, 2026 2:03 PM
To: lyx-users <[email protected]>
Subject: Fw: Caching of graphics files

 

I have spent the better part of two days now trying this and that.  I do not
want to retrace all of my steps here because it would be a long,
time-consuming, and probably not-very-enlightening endeavor.  This is what I
am certain of:  Every time I open this document in lyx and compile it, it
creates a new temporary directory with a name similar to
"lyx_tmpdir.jIaRmKTYJRBi" in the "...\AppData\Local\Temp" directory.  It
creates two sub directories called lyx_tmpbuf0 and lyx_tmpbuf1 and puts all
relevant files (.aux, .bbl, etc) in the first of those.  It also puts the
six .svg files there along with the files that they are converted to before
insertion in the final .tex document: one .pdf (the problem) and five .pngs.
Now, I am absolutely certain that this is left over from when I first put
that file in.  I put it in as an .svg first.  LyX threw a fit, so I
re-output all six files as .pdfs from Mathematica and inserted the first as
a .pdf.  LyX still did not like it, but this time I was able to determine
that it was the filename that LyX didn't like.  I changed that and it
worked.  So, I thought, maybe it would have worked with the .svgs if I had
used that filename structure.  So I went back to the original plan and
created six .svgs with new filenames.  Put them in document-all six this
time because by now I knew what size to use.  Evidently, somewhere in here
is where things went wrong.  LyX converted that first file to a .pdf and the
remaining five to .pngs.  It is repeating this process every time I compile.
If I find those files anywhere, I delete them, but to no avail: LyX just
recreates them again on the next run.  It is storing this conversion info
somewhere, but I cannot find it.  Under Tools->Preferences->File
Handling->Converters, I have examined all of the SVG-> type converters.  All
of them have the Enable cache checkbox unchecked (I figure this is a path we
do not need to investiate).  I just need to know either (a) where LyX stores
this info or (b) how to get LyX to forget it and start fresh.  Either would
work.

  _____  

From: Michael Dean Pugh <[email protected] <mailto:[email protected]> >
Sent: Thursday, February 12, 2026 12:38 PM
To: lyx-users <[email protected] <mailto:[email protected]> >
Subject: Fw: Caching of graphics files 

 

Okay, here is something weird and definitely related.  I regenerated the six
files to a separate directory and inserted them in the LyX document as
before.  When I recompiled, the same thing happened.  But in this new
directory, .png files appeared for the five correctly sized plots with the
same name as the .svg file.  However, for the one oddball, a .pdf under the
same name appeared instead of a .png.  I know this is related to my earlier
experiments.  I just don't know how to start fresh.

 

  _____  

From: Michael Dean Pugh <[email protected] <mailto:[email protected]> >
Sent: Thursday, February 12, 2026 12:16 PM
To: lyx-users <[email protected] <mailto:[email protected]> >
Subject: Caching of graphics files

 

This has been an issue for some time and I usually find a workaround, but
every time I have to remember how I did it.  I have output from Mathematica
six identically sized .svg files which I want to put in a 2x3 table in LyX.
I insert the first graphic and then play with the size until it looks to be
a little less than 1/3 of the line width of the document.  Armed with this
size, I then insert the other five graphs.  These five are identically sized
but the first one is not--it is slightly too large.  I've deleted it and
added it back.  I deleted the files in the directory and regenerated them.
I even changed the name of the file.  I deleted everything in the Cache
subdirectory.  No go.  I am 100% positive these plots are the same size,
having opened them in Inkscape to be certain.  LyX must be caching something
somewhere, but I have no idea where.  Does anyone know what is going on?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to