From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jelle Licht Subject: bug#40558: Modular TexLive "Insufficient extension fonts" and duplicate fonts Date: Mon, 20 Apr 2020 21:31:30 +0200 Message-ID: <87h7xenect.fsf@jlicht.xyz> References: <874ktqxalv.fsf@jlicht.xyz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54912) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQc9D-0000mu-5W for bug-guix@gnu.org; Mon, 20 Apr 2020 15:32:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQc9C-0006kK-El for bug-guix@gnu.org; Mon, 20 Apr 2020 15:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQc9C-0006jj-1s for bug-guix@gnu.org; Mon, 20 Apr 2020 15:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQc9B-0004In-T6 for bug-guix@gnu.org; Mon, 20 Apr 2020 15:32:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874ktqxalv.fsf@jlicht.xyz> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40558@debbugs.gnu.org Jelle Licht writes: > The eror message is: > " ! Math formula deleted: Insufficient extension fonts." [snip] > AFAIK, and from looking at the full (and correctly working) > texlive-texmf build, the cmex7.tfm in `euler' is not correctly build. > My best guess is that this happens because cmex has both a mf file and a > afm file in `guix build --source texlive-amsfonts'. The one 'built' > using afm2tfm seems to be broken and/or not matching other metadata > generated, as given by this example. I have found a workaround for my immediate problem, but I'm not nearly enough of a tex guru to foresee any issues my changes might cause. After some trial and error that took longer than I'm willing to admit, I have the following snippet: --8<---------------cut here---------------start------------->8--- diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index cd461314b5..363c7a318c 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -1108,7 +1108,7 @@ Taco Hoekwater.") ;; convert the afm files instead. (let ((build (string-append (getcwd) "/build-fonts/euler"))) (mkdir build) - (with-directory-excursion "fonts/afm/public/amsfonts/" + (with-directory-excursion "fonts/afm/public/amsfonts/euler" (for-each (lambda (font) (format #t "converting afm font ~a\n" (basename font ".afm")) (invoke "afm2tfm" font --8<---------------cut here---------------end--------------->8--- With this patch applied, I can make use of the modular texlive system from the comfort of Emacs + org. It could be that there are other 'ghost fonts' haunting up the place. The following... --8<---------------cut here---------------start------------->8--- guix refresh -l texlive-amsfonts Building the following 1438 packages would ensure 3202 dependent packages are rebuilt --8<---------------cut here---------------end--------------->8--- makes me think this is very much a disruptive change. I'm not in a hurry to get this upstreamed, but if anyone could reproduce the problem (and my fix...), I would be more confident in pushing it. - Jelle