* bug#37013: LyX can not find refstyle.sty
@ 2019-08-12 20:51 Xavier Montillet
2019-08-12 21:29 ` Ricardo Wurmus
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Xavier Montillet @ 2019-08-12 20:51 UTC (permalink / raw)
To: 37013
[-- Attachment #1.1: Type: text/plain, Size: 915 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 1439 bytes --]
[-- Attachment #2: bug.lyx --]
[-- Type: application/x-lyx, Size: 1955 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37013: LyX can not find refstyle.sty
2019-08-12 20:51 bug#37013: LyX can not find refstyle.sty Xavier Montillet
@ 2019-08-12 21:29 ` Ricardo Wurmus
2019-08-22 16:23 ` Xavier Montillet
2020-06-17 0:11 ` sirgazil via Bug reports for GNU Guix
2020-08-05 2:20 ` Jakub Kądziołka
2 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2019-08-12 21:29 UTC (permalink / raw)
To: Xavier Montillet; +Cc: 37013
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37013: LyX can not find refstyle.sty
2019-08-12 21:29 ` Ricardo Wurmus
@ 2019-08-22 16:23 ` Xavier Montillet
2020-06-11 7:00 ` Efraim Flashner
0 siblings, 1 reply; 6+ messages in thread
From: Xavier Montillet @ 2019-08-22 16:23 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 37013
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
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37013: LyX can not find refstyle.sty
2019-08-22 16:23 ` Xavier Montillet
@ 2020-06-11 7:00 ` Efraim Flashner
0 siblings, 0 replies; 6+ messages in thread
From: Efraim Flashner @ 2020-06-11 7:00 UTC (permalink / raw)
To: Xavier Montillet; +Cc: 37013
[-- Attachment #1: Type: text/plain, Size: 2127 bytes --]
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 +0000, 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 <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37013: LyX can not find refstyle.sty
2019-08-12 20:51 bug#37013: LyX can not find refstyle.sty Xavier Montillet
2019-08-12 21:29 ` Ricardo Wurmus
@ 2020-06-17 0:11 ` sirgazil via Bug reports for GNU Guix
2020-08-05 2:20 ` Jakub Kądziołka
2 siblings, 0 replies; 6+ messages in thread
From: sirgazil via Bug reports for GNU Guix @ 2020-06-17 0:11 UTC (permalink / raw)
To: 37013
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#37013: LyX can not find refstyle.sty
2019-08-12 20:51 bug#37013: LyX can not find refstyle.sty Xavier Montillet
2019-08-12 21:29 ` Ricardo Wurmus
2020-06-17 0:11 ` sirgazil via Bug reports for GNU Guix
@ 2020-08-05 2:20 ` Jakub Kądziołka
2 siblings, 0 replies; 6+ messages in thread
From: Jakub Kądziołka @ 2020-08-05 2:20 UTC (permalink / raw)
To: 37013; +Cc: sirgazil, xavierm02
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]
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 <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
========================================================================
Regards,
Jakub Kądziołka
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-08-05 2:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-12 20:51 bug#37013: LyX can not find refstyle.sty Xavier Montillet
2019-08-12 21:29 ` Ricardo Wurmus
2019-08-22 16:23 ` Xavier Montillet
2020-06-11 7:00 ` Efraim Flashner
2020-06-17 0:11 ` sirgazil via Bug reports for GNU Guix
2020-08-05 2:20 ` Jakub Kądziołka
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.