From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GHgyENc3T18/DQAA0tVLHw (envelope-from ) for ; Wed, 02 Sep 2020 06:12:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KL1FDNc3T19+fwAA1q6Kng (envelope-from ) for ; Wed, 02 Sep 2020 06:12:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5DAAC940606 for ; Wed, 2 Sep 2020 06:12:38 +0000 (UTC) Received: from localhost ([::1]:40912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDM0Z-0002et-WA for larch@yhetil.org; Wed, 02 Sep 2020 02:12:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDM07-0002ef-SA for emacs-orgmode@gnu.org; Wed, 02 Sep 2020 02:12:08 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:51879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDM06-0003c6-AT for emacs-orgmode@gnu.org; Wed, 02 Sep 2020 02:12:07 -0400 Received: by mail-wm1-x32f.google.com with SMTP id w2so3196160wmi.1 for ; Tue, 01 Sep 2020 23:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=uIXmGz5hEJqAfWNePnhvZlHNsvNVmAiCkr04HyyWUhY=; b=DVk2nIvGT6ol4jzMkLmKQ/yFKcgK5u5oXNv9CepY/yIqjx4ZCjXQBZRipPX1oUAbvC HMb0h+Y/Hdbu3DuUn7s62J9VOYZTvhm19PC9SUe7I9ycKjvx0oXkcs9NNTZul7C+QV+0 UAuvsummkF8kGcWtG7//QXGKTmWstG1B4JYbdxJea5JvtEbTya+NtGNaZHGbi00394SR FutyACfLGnuZ7GyvjSY8Wb6xZf/9bg9BVcmCRrZ5DSBPLTjXaTyIGa8RSWOrpZ/qK7gg 7sS8KDYVRw/8bNUG3PCiYQzXVYpSv5qiW2uHsp3Ah7b9WGUKFgt5Vu2fPZerUgZmBACq uNRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=uIXmGz5hEJqAfWNePnhvZlHNsvNVmAiCkr04HyyWUhY=; b=Rub7kUo1op5XjF40l0icgIa8QXudUMNmSX9mD3CkRu4gRH50OCeBWzufTSWJx+P+n4 UcGPi7WgXEyabKYlz1pIt+iPEdIBbGRMELFFF7nfbi5O+T4JdyVxMmQuSY51sW+lpEc1 CQd66l5SENRd3WccAndE5pj4aQiSCF6KuzLso406TznP69rT1Gb9F5XaI+JKBnWlPa4h TNmximAi42BQI+1ZNQPH2DJ9gQ104SwKZru2159lwBffVWXzynZlA8KYEvU2uN8TgYH/ GMDkeFfD2QRgCl0lBCL8UsH7OJlRH5bsvglmzZGScgsoyPMAYCKIjDLrN+otbSjHlCso E3AA== X-Gm-Message-State: AOAM533HXILi+O3a+Z/QS0SJTvrKHzHP+GUQq2npPTwBS5MLkDFC9SoQ mo8Ik8jfUDM7ShBXexeMxveGsMw1y2Y= X-Google-Smtp-Source: ABdhPJx9cKjIcNnT8JQ1PwBO0BxLiZHh7HxkanBRmBIxK4up/80PCS+Ym3VZG/Gn3636ACKeqPbj7w== X-Received: by 2002:a1c:b4c1:: with SMTP id d184mr5417827wmf.26.1599027123638; Tue, 01 Sep 2020 23:12:03 -0700 (PDT) Received: from freegnu (24.183.22.109.rev.sfr.net. [109.22.183.24]) by smtp.gmail.com with ESMTPSA id c9sm4946477wmf.3.2020.09.01.23.12.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 23:12:02 -0700 (PDT) From: Jeremie Juste To: emacs-orgmode@gnu.org Subject: Re: latex fragments compilation error when exporting to html References: <87h7si4l80.fsf@gmail.com> <87y2lt3lyn.fsf@ucl.ac.uk> <87tuwhnthi.fsf@gmail.com> Date: Wed, 02 Sep 2020 08:12:01 +0200 In-Reply-To: <87tuwhnthi.fsf@gmail.com> (Jeremie Juste's message of "Tue, 01 Sep 2020 22:15:53 +0200") Message-ID: <87a6y8ogge.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=jeremiejuste@gmail.com; helo=mail-wm1-x32f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=DVk2nIvG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: XKKZaaXlJ58F Hello, I have found the culprit in the end. It was the function org-html--unlabel-latex-environment, int he ox-html.el file. I'm not sure this function is useful as I think it is better to give the user control on his environment (labelled or unlabelled) directly in his org file. I'm I missing something else about the use of this function? Anyway it was a good experience at debugging elisp. diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 55d017529..b2a5d6d36 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2891,7 +2891,7 @@ CONTENTS is nil. INFO is a plist holding contextual information." ((assq processing-type org-preview-latex-process-alist) (let ((formula-link (org-html-format-latex - (org-html--unlabel-latex-environment latex-frag) + latex-frag processing-type info))) (when (and formula-link (string-match "file:\\([^]]*\\)" formula-link)) (let ((source (org-export-file-uri (match-string 1 formula-link)))) Best regards, Jeremie - GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2020-09-01 - Org mode version 9.3.7 (release_9.3.7-725-g7bc18e @ /home/djj/src/org-mode/lisp/)