Re: Success of LyX to dvi depends on file paths
> >Yes, I tried that already. This is what it shows: > > > >This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live > >2022/dev/Debian) (preloaded format=latex) > > Can pdfTeX even make a .dvi? I thought pdfTeX skips the .dvi step and > goes right to PDF. > Yes, it can. I can produce a pdf file using "Document > View > PDF (pdflatex)" > Anyway, stuff like this is why I use shellscripts to compile my LyX > files. I think they're called "batch files" or "powerscripts" in > Windows. Compiling with shellscripts, I'm not beholden to LyX' current > settings, and it's a lot easier to debug a shellscript. > I'm using Linux. I've never used shell scripts to process LyX files. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
Paul Stansell said on Fri, 24 Mar 2023 01:56:56 + >Yes, I tried that already. This is what it shows: > >This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live >2022/dev/Debian) (preloaded format=latex) Can pdfTeX even make a .dvi? I thought pdfTeX skips the .dvi step and goes right to PDF. Anyway, stuff like this is why I use shellscripts to compile my LyX files. I think they're called "batch files" or "powerscripts" in Windows. Compiling with shellscripts, I'm not beholden to LyX' current settings, and it's a lot easier to debug a shellscript. SteveT Steve Litt Autumn 2022 featured book: Thriving in Tough Times http://www.troubleshooters.com/bookstore/thrive.htm -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
On 3/23/23 22:08, Paul Stansell wrote: On Fri, 24 Mar 2023 at 01:58, Paul Stansell wrote: Is there a way to have LyX report exactly what commands it's executing as it processes the .lyx file? I ran with lyx -dbg debug but it didn't give any useful information on LyX's attempt to convert the png file to an eps file. Can you post a minimal example file? Is it enough just to include some png file two directories down? Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
On Fri, 24 Mar 2023 at 01:58, Paul Stansell wrote: > Is there a way to have LyX report exactly what commands it's executing as > it processes the .lyx file? > I ran with lyx -dbg debug but it didn't give any useful information on LyX's attempt to convert the png file to an eps file. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
Is there a way to have LyX report exactly what commands it's executing as it processes the .lyx file? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
> > Have you tried launching LyX from a terminal? You might get some useful > error messages that way. > Yes, I tried that already. This is what it shows: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./broken_fig_in_subdirectory.tex LaTeX2e <2021-11-15> patch level 1 L3 programming layer <2022-01-21> support/Systemcall.cpp (276): Systemcall: 'latex "broken_fig_in_subdirectory.tex"' finished with exit code 1 > One possibility is some weird permissions problem. Are you using SE Linux? > No, I'm not using SE Linux. Using generic names, the file combination that doesn't process is ~/path1/path2/file.lyx ~/path1/path2/dir1/dir2/file.png were file.lyx reads dir1/dir2/file.png However, if I move the png file to be in the same directory as the lyx file with cd ~/path1/path2 mv dir1/dir2/file.png file.png and edit the lyx file to read the moved file.png, this new combination processes fine. Also, if I create a symbolic link like this cd ~ ln -s ~/path1/path2 ~/path2 the original file.lyx that reads dir1/dir2/file.png processes fine. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
On 3/23/23 21:40, Paul Stansell wrote: On Fri, 24 Mar 2023 at 01:29, Richard Kimberly Heck wrote: On 3/23/23 21:21, Paul Stansell wrote: > Hello, > > I have a very strange problem in which the successful processing of a > simple LyX file to a dvi file depends on the location of the LyX file > and the location of the png image file it contains. If I move either > the LyX file or the png file to different directories the files > process correctly to a dvi file. Is there anything odd about the directory name? Spaces? Non-ASCII characters? Some of the utilities LyX uses might not like those. No, nothing at all. I even zipped up the offending files into a tar file so I could attach it as an example, but when I tested it by untaring the files in /tmp, instead of in my home directory, everything worked fine. In that case all the path names were identical except that of my home directory. It's very strange. Have you tried launching LyX from a terminal? You might get some useful error messages that way. One possibility is some weird permissions problem. Are you using SE Linux? Riki -- Richard Kimberly (Riki) Heck Professor of Philosophy Brown University Pronouns: they/them/their Website:http://rkheck.frege.org/ Blog:http://rikiheck.blogspot.com/ Amazon:http://amazon.com/author/richardgheckjr Google Scholar:https://scholar.google.com/citations?user=QUKBG6EJ ORCID:http://orcid.org/-0002-2961-2663 Research Gate:https://www.researchgate.net/profile/Richard_Heck -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
On Fri, 24 Mar 2023 at 01:29, Richard Kimberly Heck wrote: > On 3/23/23 21:21, Paul Stansell wrote: > > Hello, > > > > I have a very strange problem in which the successful processing of a > > simple LyX file to a dvi file depends on the location of the LyX file > > and the location of the png image file it contains. If I move either > > the LyX file or the png file to different directories the files > > process correctly to a dvi file. > > Is there anything odd about the directory name? Spaces? Non-ASCII > characters? Some of the utilities LyX uses might not like those. > No, nothing at all. I even zipped up the offending files into a tar file so I could attach it as an example, but when I tested it by untaring the files in /tmp, instead of in my home directory, everything worked fine. In that case all the path names were identical except that of my home directory. It's very strange. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Success of LyX to dvi depends on file paths
On 3/23/23 21:21, Paul Stansell wrote: Hello, I have a very strange problem in which the successful processing of a simple LyX file to a dvi file depends on the location of the LyX file and the location of the png image file it contains. If I move either the LyX file or the png file to different directories the files process correctly to a dvi file. Is there anything odd about the directory name? Spaces? Non-ASCII characters? Some of the utilities LyX uses might not like those. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users