all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: TK <tkprom@protonmail.com>
To: TK <tkprom@protonmail.com>
Cc: Ricardo Wurmus <rekado@elephly.net>, help-guix@gnu.org
Subject: Re: Missing LaTeX font (R related)
Date: Tue, 29 Mar 2022 10:02:29 +0000	[thread overview]
Message-ID: <Q_6xkLlp6GJW8xDBU949n6y0vR4k-XdZkeV1o8vBsPgZjVV0zEAOlyyFl8XN5-O-aNmdgMW3zi-g5rVg7_2VXXZlIV5PrEx3FQiarDvv2OY=@protonmail.com> (raw)
In-Reply-To: <N0qRMCVkudRQ0KHedexehbTnyzfMZ3Rkz4gZip_oMiUeIDE8qy9Ouqu2SFf9BJ8c1tyDNrT0vlJpCleYrhpeFSgd6_UMlSyPAhqdSMgrD2I=@protonmail.com>

On Wednesday, March 23rd, 2022 at 11:02 AM, TK <tkprom@protonmail.com> wrote:

> On Wednesday, March 23rd, 2022 at 9:58 AM, Ricardo Wurmus rekado@elephly.net wrote:
>
> > TK tkprom@protonmail.com writes:
> >
> > > `!pdfTeX error: pdflatex (file t1-zi4r-0): Font t1-zi4r-0 at 540 not found`
> > >
> > > A web search reveals that t1-zi4r-0 is an inconsolata font, but installing "texlive-inconsolata" package does not sort this issue out.
> >
> > The texlive-inconsolata package does indeed include that font:
> >
> > /gnu/store/…-texlive-inconsolata-59745/share/texmf-dist/fonts/tfm/public/inconsolata/t1-zi4r-0.tfm
> >
> > > Is granular texlive install even possible on Guix? :)
> >
> > Yes, it is.
> >
> > --
> >
> > Ricardo
>
> Hi Ricardo,
>
> Thanks for the reply.
>
> Since texlive-inconsolata is part of my manifest specification, there might be an issue in how I create the environment.
>
> For my work in R, I use the following bash script:
>
> `#!/bin/sh theme_dir=$HOME/.local/share/guix-themes guix shell --pure -c4 -m "$theme_dir/foundation.scm" \\ -m "$theme_dir/eci.scm" -m "$theme_dir/texpack.scm"`
>
> I am creating an environment from several manifests. They are shown below, together with the channels file, for the sake of reproducibility and the mailing list. Also, for anyone's convenience, should they actually want to reproduce the problem,
>
> those files have been attached.
>
> Issuing `R CMD check somepackage` within the shell of the environment will die with the message outlined above.
>
> The package in the command line is just a skeleton created by `Rcpp.package.skeleton`.
>
> Thanks,
>
> T
>
> # Appendix
>
> ## channels.scm
>
> `(use-modules (guix packages) (guix inferior) (guix channels) (guix profiles) (gnu packages) (srfi srfi-1)) (define channels ;; This is custom Environmental Cheminformatics LCSB channel. (list (channel (name 'eci-addons) (url "https://git.sr.ht/~condor/eci-guix") (branch "master") (introduction (make-channel-introduction "e7ccb0c185133e23a9a75867e0deef5881ab2d49" (openpgp-fingerprint "EDC3 9790 A06D 5F72 41D9 70F9 BBEF E71B 7A28 3C6F")))) (channel (name 'nonguix) (url "https://gitlab.com/nonguix/nonguix") (introduction (make-channel-introduction "897c1a470da759236cc11798f4e0a5f7d4d59fbc" (openpgp-fingerprint "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))) (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") ;; (commit "c852d897551f514de95c224fa79e748f48808068") )))`
>
> ## foundation.scm
>
> ```
>
> (use-modules (guix packages)
>
> (gnu packages autotools)
>
> (gnu packages gcc)
>
> (gnu packages perl)
>
> (gnu packages mpi)
>
> (gnu packages ssh)
>
> (gnu packages gawk)
>
> (gnu packages base))
>
> (define specs '("bash"
>
> "make"
>
> "sbc"
>
> "openssh"
>
> "git:send-email"
>
> "git"
>
> "grep"
>
> "sed"
>
> "gawk"
>
> "procps"
>
> "coreutils-minimal"
>
> "glibc-locales"
>
> "make"
>
> "emacs"
>
> "lesspipe"
>
> "glibc-locales"
>
> "guile"
>
> "pkg-config"
>
> "nss-certs"
>
> "wget"
>
> "xz"
>
> "tar"
>
> "gzip"
>
> "bzip2"))
>
> (define misc-specs '("ispell"
>
> "sshpass"
>
> "the-silver-searcher"
>
> "xdg-utils"
>
> "xdg-user-dirs"
>
> "pango"
>
> "gnupg"
>
> "openssl"
>
> "gtk+"
>
> "man-db"
>
> "texinfo"))
>
> (define font-specs '("unicode-emoji"
>
> "fontconfig"
>
> "font-dejavu"
>
> "font-gnu-freefont"
>
> ;"font-ubuntu"
>
> "font-terminus"
>
> "font-liberation"
>
> "font-inconsolata"
>
> "font-gnu-unifont"
>
> "font-public-sans"
>
> "font-misc-misc"
>
> "font-awesome"
>
> "font-hack"
>
> "font-iosevka"
>
> "font-iosevka-term"
>
> "font-iosevka-term-slab"
>
> ;"font-iosevka-sparkle"
>
> "font-iosevka-slab"
>
> "font-iosevka-etoile"
>
> "font-iosevka-aile"
>
> "font-google-noto"))
>
> (define emacs-specs `("emacs-guix" "emacs-circe" "emacs-geiser" "emacs-paredit" "emacs-bbdb" "emacs-circe" "emacs-use-package" "emacs-ag" "emacs-magit" "emacs-org" "emacs-paredit" ;; "emacs-ess" "emacs-company" "emacs-ivy" "emacs-counsel" "emacs-zenburn-theme" "emacs-solarized-theme" "emacs-cyberpunk-theme" "emacs-atom-one-dark-theme" "emacs-polymode" "emacs-polymode-org" "emacs-polymode-ansible" "emacs-csv" "emacs-smartparens" ;"emacs-elpy" "emacs-wgrep" "emacs-emojify" "emacs-rust-mode" "emacs-flycheck-rust" "emacs-spacemacs-theme" "emacs-punpun-theme" "emacs-org-beautify-theme" "emacs-dream-theme" "emacs-base16-theme" "emacs-ample-theme" "emacs-doom-themes" "emacs-alect-themes" "emacs-almost-mono-themes" ;; "emacs-bluetooth" "emacs-csv" "emacs-csv-mode" "emacs-org-reveal")) (specifications->manifest` (,@specs
>
> ,@emacs-specs
>
> ,@misc-specs
>
> ,@font-specs))
>
> `## eci.scm`
>
> (use-modules (eci packages bioinformatics)
>
> (eci packages cran)
>
> (guix packages)
>
> (gnu packages chemistry)
>
> (gnu packages bioinformatics)
>
> (gnu packages bioconductor)
>
> (gnu packages statistics)
>
> (gnu packages web)
>
> (gnu packages image)
>
> (gnu packages cran)
>
> (gnu packages)
>
> (srfi srfi-1))
>
> (define misc-spec '("openbabel"
>
> "inchi"
>
> "gcc-toolchain"))
>
> (define r-spec `("r" "r-scales" "r-devtools" "r-openssl" "r-foreach" "r-markdown" "r-rmarkdown" "r-dofuture" "r-ff" "r-ffbase" "r-yaml" "r-batchtools" "r-future" "r-mzr" "r-bit64" "r-data-table" "r-msnbase" "r-assertthat" "r-withr" "r-ggplot2" "r-cowplot" "r-rcolorbrewer" "r-curl" "r-shiny" "r-handsontable" "r-dt" "r-tcltk2" "r-protgenerics" "r-massbank" "r-chemmass" "r-r-utils")) (specifications->manifest` (,@misc-spec
>
> ,@r-spec))
>
> `## texpack.scm`
>
> (use-modules (guix packages)
>
> (gnu packages tex))
>
> (define specs '("texlive-latex-base"
>
> "texlive-tiny"
>
> "texlive-latex-tools"
>
> "texlive-latex-graphics"
>
> "texlive-kpfonts"
>
> "texlive-url"
>
> "texlive-inconsolata"
>
> "texlive-latex-xkeyval"
>
> "texlive-fonts-latex"
>
> "texlive-fonts-ec"
>
> "texlive-fontspec"
>
> "texlive-fontname"
>
> "texlive-fontinst"
>
> "texlive-hyph-utf8"
>
> "texlive-hyphen-serbian"
>
> "texlive-cm"
>
> "texlive-txfonts"
>
> "texlive-metafont"
>
> "texlive-amsfonts"
>
> "texlive-latex-type1cm"
>
> "texlive-times"
>
> "texlive-helvetic"
>
> "texlive-psnfss"
>
> "texlive-psnfss-fixed"))
>
> (specifications->manifest `(,@specs))
>
> ```

After some more investigation, I think I narrowed down the issue. Package texlive-inconsolata indeed installs the `t1-zi4r-0' font. However, the `map' for that font exists only under dvips, not in the pdftex subdir.

On my system, under the dvips map directory of the profile associated with the corresponding Guix environment,
`/gnu/store/m2g80qz67lxxa7744wkclaifvbwa1bdi-profile/share/texmf-dist/fonts/map/dvips/inconsolata', there exists a `zi4.map` file which lists the problematic font. In contrast, the flat `pdftex' map file, `/gnu/store/m2g80qz67lxxa7744wkclaifvbwa1bdi-profile/share/texmf-dist/fonts/map/pdftex/updmap/pdftex.map' does not contain any Inconsolata (zi4) entry.

I am not a TeX magus, but it is indicative that the file on the official TeXLive repo https://tug.org/svn/texlive/trunk/Master/texmf-dist/fonts/map/pdftex/updmap/pdftex.map does contain `zi4' entries.

Shouldn't the installation of texlive-inconsolata put the corresponding entries into `pdftex.map'? Any hints on where to go from here?

Thanks!

Cheers,

T


  reply	other threads:[~2022-03-29 10:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-23  8:45 Missing LaTeX font (R related) TK
2022-03-23  8:58 ` Ricardo Wurmus
2022-03-23 10:02   ` TK
2022-03-29 10:02     ` TK [this message]
2022-03-29 10:57       ` Ricardo Wurmus
2022-03-30  6:55         ` TK
2022-03-30  7:08           ` TK
2022-03-29 10:22     ` Todor Kondić

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='Q_6xkLlp6GJW8xDBU949n6y0vR4k-XdZkeV1o8vBsPgZjVV0zEAOlyyFl8XN5-O-aNmdgMW3zi-g5rVg7_2VXXZlIV5PrEx3FQiarDvv2OY=@protonmail.com' \
    --to=tkprom@protonmail.com \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /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.