LyX can not find refstyle.sty

OpenSubmitted by Xavier Montillet.
Details
5 participants
  • Efraim Flashner
  • Jakub Kądziołka
  • Ricardo Wurmus
  • sirgazil
  • Xavier Montillet
Owner
unassigned
Severity
normal
X
X
Xavier Montillet wrote on 12 Aug 2019 22:51
(address . bug-guix@gnu.org)
76cd2c1c-cf8c-4e3e-9ddc-385f41c9584f@www.fastmail.com
I couldn't find a way to make LyX find refstyle.
How to reproduce:1 - Install the texlive and lyx packages2 - 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.
Attachment: file
Attachment: bug.lyx
R
R
Ricardo Wurmus wrote on 12 Aug 2019 23:29
(name . Xavier Montillet)(address . xavierm02@guix.xavierm02.fr)(address . 37013@debbugs.gnu.org)
87imr2ul67.fsf@elephly.net
Hi Xavier,
thanks for the report!
Toggle quote (6 lines)> 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 wasprovided during the build. It should prefer an optional TeX Liveinstallation that the user provides. Perhaps we can make it(optionally?) look up the TeX Live tools on PATH before falling back toits texlive-union.
Toggle quote (3 lines)> LyX has a reconfigure option (Tools -> Reconfigure) but it does not> seem to help.
Investigating this might be a good starting point.
--Ricardo
X
X
Xavier Montillet wrote on 22 Aug 2019 18:23
(name . Ricardo Wurmus)(address . rekado@elephly.net)(address . 37013@debbugs.gnu.org)
b0ca5670-99d7-4991-be93-6b6401d36bdc@www.fastmail.com
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:
Toggle quote (26 lines)> > 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> >
E
E
Efraim Flashner wrote on 11 Jun 2020 09:00
(name . Xavier Montillet)(address . xavierm02@guix.xavierm02.fr)
20200611070043.GI963@E5400
I just made some changes to the Lyx package. Can you test it out now tosee if it works as expected?
On Thu, Aug 22, 2019 at 04:23:18PM +0000, Xavier Montillet wrote:
Toggle quote (41 lines)> 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 <efraim@flashner.co.il> אפרים פלשנרGPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7h1psACgkQQarn3Mo9g1HItxAAwAZk1WhmeMM0qWJNKLSCEfEL5li/yrheiL9GIj3F3lF7pUITr13j6YOOdsTaChL/HZOBDJB7piGLCG4cyJVwpZwXvn8frAraCf9elQV+jH0njgxsAZ0el9wjznHN89QdlXBpz3+Y5XDVrnn3yqO1ntqVdwtZc48qsmsSz3k3kDK+DwmvnZRonhS6w2dOJzjI7fAiSA68EVTwkq7mxK78JIoME0oQ+U19EjPUoD8q3x42FKRLPTmOw5SCebdF0Eu0gU76IAGG+qjSd4QMLaUTbuNHxQS66dw2eZ7zczepdwl8II8F5v2DLj1TpBVZ6oa7/bP8LXmIrouqGmf+TpacJpJO3zMplxOhFa0sDs1WkcrT7wJz2mgwAP6AeTmUVCPakVMLyTl9GUIMECr6XkOi9PCA7adju0mvgO7ei4rYHZai2jnpzwVOMOB1pXtQWotu+s7+cPaNR4S6cwgzq7O4VI52wxaRI7o6bL4N91M3+qrUWgqHTO9aHAaqkTJ7OJ09bXxEyx7mSc9WriQkrq+Jpr9tpChX/KFVa1ZK7X+wHBfK+cyx+WEPAZKdcbqqUauqY2SLAzpbSUwGfqG5aKdjU+XRTKODqSosO6vbm6VTWftV2p0qwtYCessuLSPxv1e3RAl5b6Krek9Owo8s7ZNvjV3X1SCQ2rXb1UmMqYm55B4==1/dz-----END PGP SIGNATURE-----

S
S
sirgazil wrote on 17 Jun 2020 02:11
LyX can not find refstyle.sty
(name . 37013)(address . 37013@debbugs.gnu.org)
172bf9d6018.11e9c84cd12492.1532742553306780831@zoho.com
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.
J
J
Jakub Kądziołka wrote on 5 Aug 2020 04:20
(address . 37013@debbugs.gnu.org)
20200805022053.f5dzigmh7fdummi5@gravity
It seems that this issue is not caused by any behavior of LyX, sincemerely 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.texThis is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex) restricted \write18 enabled.entering extended mode(./test.texLaTeX2e <2018-12-01>
(/gnu/store/wyp70a5a4spmj1g2wvm27d5968sssvwq-texlive-texmf-20190410/share/texmf-dist/tex/latex/base/article.clsDocument 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.texThis is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex) restricted \write18 enabled.entering extended mode(./test.texLaTeX2e <2018-12-01>(/gnu/store/xq0b0mgz5h6invz9fh13n29mb2jfdb0s-texlive-union-51265/share/texmf-dist/tex/latex/base/article.clsDocument 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 <RETURN> to proceed,or enter new name. (Default extension: sty)
Enter file name:========================================================================
Regards,Jakub Kądziołka
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl8qF4UACgkQ4xWnWEYTFWSRxQ//ZnrUS0sLYIg/XtOa1QxIKOoQQYtXvtdJLnZW94yx+zR4fB4YsTqRhrl6c39mqsjTPh0KfT9+IMxpG+kWF7RiqNlV/Foebo/jmY+i/VBlF/J3RmxvucYO0t5xddUyQiiud4+xUP0x0hczX7EA5ZoxqDvFoGFrWYcnemEl8QcR4rx0O1g1FsXSVMqYThDAWANKAQPAqm6jCzMXoHHyMqeRrpZmS8z6jziFoRytshvBz99f0LyLxZP7MT5qwmV7hggH1HqQ6Dvp35h0aAIbRka5wfkgnEwr3Z1Dj85J5lGnImrxoZXdJAuiGGxzD8Y4C6ceRM0gJYDmiDeZfYPKQ+GrdTEQY1s8i9lxZfK9C4ucz/rdC8dqU9IH2FpwWVuNjthnTXCnm9C6ZJabbw7LmLYKg65qiDj42VOtabftovDxORtl1XSLB5JRY5DZvb+olLRtiLWOpPNxCLp4pLCRzxwQsas3krfaa9nxSr/R2G9enfiaDfaYRUtj8P4aj8IDhuqe/HPpuRa+mHDKCE9oJy/mBeAZumxrTYzC8v16qagmOpIsvR/1U+VTqWyX6RjY8qf2PYJycTSUNNI/8hh6//hrAX74H1soyXJpZWUOPiQKzs93vCb53ZxHpk4dGsjt4PbTbzoDX4m97P5fdE2ueopO/Mv6yfO4dpH6PTBzNNx6Xn0==p+7c-----END PGP SIGNATURE-----

?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 37013@debbugs.gnu.org