[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LaTeX: Need help with packaging a book in GNU Guix

From: Artyom V. Poptsov
Subject: Re: LaTeX: Need help with packaging a book in GNU Guix
Date: Tue, 29 Aug 2023 15:42:39 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hello Nicolas,

thank you very much for the help!  I've changed my "guix.scm" as you
suggested and now it works.

> You can also remove `texlive' and, probably, `texlive-latex-fonts' and
> `texlive-ttf-utils' from your inputs, since you're using XeTeX.

When I tried to remove "texlive" from inputs, I ran into the following

--8<---------------cut here---------------start------------->8---
! LaTeX Error: File `fontspec.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
l.7 \setmainfont
                {Liberation Serif}^^M
*** (cannot \read from terminal in nonstop modes)

Here is how much of TeX's memory you used:
 1444 strings out of 476682
 24786 string characters out of 5779954
 1842018 words of memory out of 5000000
 21750 multiletter control sequences out of 15000+600000
 512295 words of font info for 33 fonts, out of 8000000 for 9000
 1348 hyphenation exceptions out of 8191
 40i,0n,52p,180b,100s stack positions out of 10000i,1000n,20000p,200000b,200000s
No pages of output.
INDEX     sparc
make: *** [Makefile:83: make_index] Error 1
make: *** Waiting for unfinished jobs....
 /usr/bin/env: bad interpreter: No such file or directory
make: *** [Makefile:77: make_glossary] Error 1
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "32") exit-status: 
2 term-signal: #f stop-signal: #f> 
phase `build' failed after 11.1 seconds
command "make" "-j" "32" failed with status 2
builder for `/gnu/store/dnyi529yx6wfb73hwgsylm60ikrrashf-sparc-book-git.drv' 
failed with exit code 1
build of /gnu/store/dnyi529yx6wfb73hwgsylm60ikrrashf-sparc-book-git.drv failed
View build log at 
guix build: error: build of 
`/gnu/store/dnyi529yx6wfb73hwgsylm60ikrrashf-sparc-book-git.drv' failed
--8<---------------cut here---------------end--------------->8---

As you can see, LaTeX cannot find "fontspec.sty" file.  I did some
research and found that the file belongs to "texlive" package.  So when
I returned "texlive" to inputs the build process went fine.


- avp

Artyom "avp" Poptsov <>
Home page:
CADR Hackerspace co-founder:
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]