help-guix
[Top][All Lists]
Advanced

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

Re: Missing LaTeX font (R related)


From: Todor Kondić
Subject: Re: Missing LaTeX font (R related)
Date: Tue, 29 Mar 2022 10:22:21 +0000

> 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))
>
> ```

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

Should I inherit from `texlive-updmap.cfg' and add the required TeX packages as 
inputs, instead of writing a manifest?





reply via email to

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