bug#37013: LyX can not find refstyle.sty
It seems that this issue is not caused by any behavior of LyX, since merely adding LyX to a profile breaks the existing texlive installation: ~/tmp$ cat test.tex \documentclass[a4paper]{article} \usepackage{url} \begin{document} \end{document} ~/tmp$ guix environment --pure --ad-hoc texlive -- pdflatex test.tex This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./test.tex LaTeX2e <2018-12-01> (/gnu/store/wyp70a5a4spmj1g2wvm27d5968sssvwq-texlive-texmf-20190410/share/texmf -dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/gnu/store/wyp70a5a4spmj1g2wvm27d5968sssvwq-texlive-texmf-20190410/share/texmf -dist/tex/latex/base/size10.clo)) (/gnu/store/wyp70a5a4spmj1g2wvm27d5968sssvwq-texlive-texmf-20190410/share/texmf -dist/tex/latex/url/url.sty) No file test.aux. (./test.aux) ) No pages of output. Transcript written on test.log. ~/tmp$ guix environment --pure --ad-hoc texlive lyx -- pdflatex test.tex This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./test.tex LaTeX2e <2018-12-01> (/gnu/store/xq0b0mgz5h6invz9fh13n29mb2jfdb0s-texlive-union-51265/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/gnu/store/xq0b0mgz5h6invz9fh13n29mb2jfdb0s-texlive-union-51265/share/texmf-dist/tex/latex/base/size10.clo)) ! LaTeX Error: File `url.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file name: Regards, Jakub Kądziołka signature.asc Description: PGP signature
bug#37013: LyX can not find refstyle.sty
Efraim, thanks for those changes, they fixed some bugs. However, I still see many errors related to ".sty" files (refstyle, hyperref, enumitem, etc.), and ".cls" files (scrbook, scrartcl, etc.) not found when I try to open and view (Ctrl+R) the documents listed in LyX Help menu, and my own documents. When I install LyX, I would expect those help documents to work without errors.
bug#37013: LyX can not find refstyle.sty
I just made some changes to the Lyx package. Can you test it out now to see if it works as expected? On Thu, Aug 22, 2019 at 04:23:18PM +, Xavier Montillet wrote: > Hi Ricardo, > > LyX seems to build and run fine without this texlive-union. The texlive stuff > is only required when one wants to compile a lyx document to a pdf. I'd > therefore expect it to not be a dependency (but maybe a recommended package). > > And removing this texlive-union fixes my problem: Now, if texlive is > installed in the profile, it finds it and all its components. > > (Note: I use "./pre-inst-env guix environment --pure --container > --share=$XAUTHORITY --share=/tmp/.X11-unix --ad-hoc lyx bash coreutils evince > -- env XAUTHORITY=$XAUTHORITY DISPLAY=$DISPLAY lyx2.3" to run lyx so that it > reconfigures at startup) > > Xavier > > On Mon, Aug 12, 2019, at 9:30 PM, Ricardo Wurmus wrote: > > > > Hi Xavier, > > > > thanks for the report! > > > > > Since it loaded inputenc, the package just before refstyle, from > > > /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/share/texmf-dist/tex/latex/base/inputenc.sty, > > > and /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/ does > > > not contain refstyle, I > > > think that the problem is that LyX uses the pdflatex from this > > > textlive-union instead of the one from the full texlive. > > > > The problem is that Lyx is configured to use the texlive-union that was > > provided during the build. It should prefer an optional TeX Live > > installation that the user provides. Perhaps we can make it > > (optionally?) look up the TeX Live tools on PATH before falling back to > > its texlive-union. > > > > > LyX has a reconfigure option (Tools -> Reconfigure) but it does not > > > seem to help. > > > > Investigating this might be a good starting point. > > > > -- > > Ricardo > > > > > > > -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted signature.asc Description: PGP signature
bug#37013: LyX can not find refstyle.sty
Hi Ricardo, LyX seems to build and run fine without this texlive-union. The texlive stuff is only required when one wants to compile a lyx document to a pdf. I'd therefore expect it to not be a dependency (but maybe a recommended package). And removing this texlive-union fixes my problem: Now, if texlive is installed in the profile, it finds it and all its components. (Note: I use "./pre-inst-env guix environment --pure --container --share=$XAUTHORITY --share=/tmp/.X11-unix --ad-hoc lyx bash coreutils evince -- env XAUTHORITY=$XAUTHORITY DISPLAY=$DISPLAY lyx2.3" to run lyx so that it reconfigures at startup) Xavier On Mon, Aug 12, 2019, at 9:30 PM, Ricardo Wurmus wrote: > > Hi Xavier, > > thanks for the report! > > > Since it loaded inputenc, the package just before refstyle, from > > /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/share/texmf-dist/tex/latex/base/inputenc.sty, > > and /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/ does > > not contain refstyle, I > > think that the problem is that LyX uses the pdflatex from this > > textlive-union instead of the one from the full texlive. > > The problem is that Lyx is configured to use the texlive-union that was > provided during the build. It should prefer an optional TeX Live > installation that the user provides. Perhaps we can make it > (optionally?) look up the TeX Live tools on PATH before falling back to > its texlive-union. > > > LyX has a reconfigure option (Tools -> Reconfigure) but it does not > > seem to help. > > Investigating this might be a good starting point. > > -- > Ricardo > >
bug#37013: LyX can not find refstyle.sty
Hi Xavier, thanks for the report! > Since it loaded inputenc, the package just before refstyle, from > /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/share/texmf-dist/tex/latex/base/inputenc.sty, > and /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/ does not > contain refstyle, I > think that the problem is that LyX uses the pdflatex from this > textlive-union instead of the one from the full texlive. The problem is that Lyx is configured to use the texlive-union that was provided during the build. It should prefer an optional TeX Live installation that the user provides. Perhaps we can make it (optionally?) look up the TeX Live tools on PATH before falling back to its texlive-union. > LyX has a reconfigure option (Tools -> Reconfigure) but it does not > seem to help. Investigating this might be a good starting point. -- Ricardo
bug#37013: LyX can not find refstyle.sty
I couldn't find a way to make LyX find refstyle. How to reproduce: 1 - Install the texlive and lyx packages 2 - Load the bug.lyx file (or any other file that makes it add \usepackage{refstyle} to the generated TeX file). 3 - Press Ctrl+R to compile the file. 4 - You will get an error saying that refstyle.sty could not be found. You can however use LyX to produce a .tex file, and the run pdflatex from the terminal and it will work. Since it loaded inputenc, the package just before refstyle, from /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/share/texmf-dist/tex/latex/base/inputenc.sty, and /gnu/store/wy5865kh09qak63rpq3v47wnxv2gj1y0-texlive-union-49435/ does not contain refstyle, I think that the problem is that LyX uses the pdflatex from this textlive-union instead of the one from the full texlive. LyX has a reconfigure option (Tools -> Reconfigure) but it does not seem to help. bug.lyx Description: application/lyx