all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: LaTeX: Need help with packaging a book in GNU Guix
Date: Tue, 29 Aug 2023 11:01:57 +0200	[thread overview]
Message-ID: <87v8cynrwa.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <873503ygd1.fsf@gmail.com> (Artyom V. Poptsov's message of "Mon,  28 Aug 2023 06:51:06 +0300")

Hello,

"Artyom V. Poptsov" <poptsov.artyom@gmail.com> writes:

> There are lots of examples of LaTeX package definitions in Guix for
> sure, but unfortunately I found no examples of packaged books written in
> LaTeX.

There is `book-faif' in "fsf.scm".

> Then I'm getting errors that "Liberation Serif" font is not found:
>
> --8<---------------cut here---------------start------------->8---
> (/gnu/store/h7iqqr3aajqhjkib2k2g0zipag2ya41s-texlivetexmf-20230313/share/texmf-
> dist/tex/latex/fontspec/fontspec.cfg)))
>
> ! Package fontspec Error: The font "Liberation Serif" cannot be found.

> For immediate help type H <return>.
>  ...                                              
>                                                   
> l.8 \setmonofont
>                 {Liberation Mono}

You should add `fontconfig' to native-inputs so Liberation can be found.

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

--8<---------------cut here---------------start------------->8---
 (native-inputs
  (list python-pygments
        bash-minimal
        perl
        which
        fontconfig))
 (inputs
  (list font-liberation
        git
        gnu-make
        inkscape
        lilypond
        texlive-acronym
        texlive-adjustbox
        texlive-bibtex
        texlive-bibtexperllibs
        texlive-bigfoot
        texlive-circuitikz
        texlive-collection-langcyrillic
        texlive-glossaries
        texlive-lilyglyphs
        texlive-minted
        texlive-multirow
        texlive-pgf
        texlive-subfiles
        texlive-svg
        texlive-t1utils
        texlive-textpos
        texlive-transparent
        texlive-xetex))
--8<---------------cut here---------------end--------------->8---

Note that everything could be moved to native inputs.

Also note that you need un-packaged TeX Live packages, such as `svg'.
I added them just before sending the mail, so you'll need a recent "guix
pull".

> Moreover I see that the build tries to update the font cache but fails
> to do that because the part of the file system it tries to write to is
> read-only:
>
> --8<---------------cut here---------------start------------->8---
> (/gnu/store/h7iqqr3aajqhjkib2k2g0zipag2ya41s-texlivetexmf-20230313/share/texmf-
> dist/tex/latex/base/book.cls
> Document Class: book 2022/07/02 v1.4n Standard LaTeX document class
>
> (/gnu/store/h7iqqr3aajqhjkib2k2g0zipag2ya41s-texlivetexmf-20230313/share/texmf-
> dist/tex/latex/base/bk10.cloFontconfig error: No writable cache directories
> Fontconfig error: No writable cache directories
> ))
> --8<---------------cut here---------------end--------------->8---

This "error" is actually harmless.

Regards,
-- 
Nicolas Goaziou


  reply	other threads:[~2023-08-29  9:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-28  3:51 LaTeX: Need help with packaging a book in GNU Guix Artyom V. Poptsov
2023-08-29  9:01 ` Nicolas Goaziou [this message]
2023-08-29 12:42   ` Artyom V. Poptsov
2023-08-29 12:47     ` Nicolas Goaziou
2023-08-29 18:26       ` Artyom V. Poptsov
2023-08-29 18:55         ` Nicolas Goaziou
2023-08-29 19:19           ` Artyom V. Poptsov
2023-08-31 18:00           ` Artyom V. Poptsov
2023-09-01  3:15             ` Artyom V. Poptsov
2023-09-01  5:24               ` Dr. Arne Babenhauserheide
2023-09-01  8:26                 ` Andreas Enge
2023-09-01 10:58                 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8cynrwa.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=help-guix@gnu.org \
    --cc=poptsov.artyom@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.