unofficial mirror of bug-guix@gnu.org 
 help / color / Atom feed
* bug#37013: LyX can not find refstyle.sty
@ 2019-08-12 20:51 Xavier Montillet
  2019-08-12 21:29 ` Ricardo Wurmus
  2020-06-17  0:11 ` sirgazil via Bug reports for GNU Guix
  0 siblings, 2 replies; 5+ 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] 5+ 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
  1 sibling, 1 reply; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ 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
  1 sibling, 0 replies; 5+ 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] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ 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

unofficial mirror of bug-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git