all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* XeLaTeX, fontspec, unsuccessful font search
@ 2020-01-22 15:25 Wiktor Żelazny
  2020-01-23 14:11 ` Wiktor Żelazny
  0 siblings, 1 reply; 2+ messages in thread
From: Wiktor Żelazny @ 2020-01-22 15:25 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]

Dear list,

I’ve been tackling a similar problem as in [1]:

$ cat minimal.tex

   \documentclass{minimal}
   \usepackage{fontspec}
   \setmainfont{Latin Modern Sans}
   \begin{document}
   Hello
   \end{document}

$ guix environment --container --ad-hoc texlive texlive-latex-fontspec texlive-lm
[env]$ xelatex minimal

   (/gnu/store/ar2lrskw5mbqyc8k7ai3i7p5ig6fdkp0-texlive-texmf-20180414/share/texmf
   -dist/tex/latex/fontspec/fontspec.cfg)))kpathsea:make_tex: Invalid filename `Latin Modern Sans', contains ' '

   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !
   ! fontspec error: "font-not-found"
   ! 
   ! The font "Latin Modern Sans" cannot be found.
   ! 
   ! See the fontspec documentation for further information.
   ! 
   ! For immediate help type H <return>.
   !...............................................  
                                                   
   l.3 \setmainfont{Latin Modern Sans}

Actually, it started with me trying to obtain a pdf output with `pandoc
--pdf-engine=xelatex` from a markdown file. This returns a different
error, albeit seemingly related: lmodern not found. So the issue looks
deeper than the space in the font name.

For an environment without `--container`, `fc-match` returns no match,
even after `fc-cache -f`.

Any hint will be appreciated.

WŻ

[1]: https://github.com/NixOS/nixpkgs/issues/24485

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-23 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-22 15:25 XeLaTeX, fontspec, unsuccessful font search Wiktor Żelazny
2020-01-23 14:11 ` Wiktor Żelazny

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.