From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yKQiDOTcrmJLOAEAbAwnHQ (envelope-from ) for ; Sun, 19 Jun 2022 10:23:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gLs1DOTcrmI4hgEA9RJhRA (envelope-from ) for ; Sun, 19 Jun 2022 10:23:00 +0200 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 BDABE2D50F for ; Sun, 19 Jun 2022 10:22:59 +0200 (CEST) Received: from localhost ([::1]:60352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2qCw-00013e-KU for larch@yhetil.org; Sun, 19 Jun 2022 04:22:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2qBy-00013V-3C for emacs-orgmode@gnu.org; Sun, 19 Jun 2022 04:21:58 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:40732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2qBv-0006ZI-Ey for emacs-orgmode@gnu.org; Sun, 19 Jun 2022 04:21:57 -0400 Received: by mail-pf1-x42b.google.com with SMTP id c205so982092pfc.7 for ; Sun, 19 Jun 2022 01:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=b2bFhsDmqUTYkWSIPkUnDtnroqUn2FXnU+Lyk86QyMo=; b=Su10xHcCTvTyVYTv7ThzrRT37CmVQlz625pGunWZUEhVIcLZE7ZBxgqYXHZL3WHrdZ EM/dIeOP8InssixWBBaSIaPO0Pgxp6tNhBrnU5talfvAdwQaYTEPm5JMSsqcDjlcdwQe +zD4WsphxmsdXvlPY3RqNWBq9GAKC6H0uUZqJWj0UL7dYVF/LxX0HWKmU4YMPQykmvZC Mqq1dwY4zwIn3fLcFFOO047jJOiMUWj/va2KtzyK5emBK4kSMRXH9nL/7QdsN+YFD7Gw r8N920WSx32GpzULYaORLf+r/obE/rnqjczDouK7GaL8QSAD9bLWzd3Z+NMWkM7Du6Pc Risg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=b2bFhsDmqUTYkWSIPkUnDtnroqUn2FXnU+Lyk86QyMo=; b=3GIvQfqzpoiXTK8N3YiNbh0MIq29FRvyfTNwDqlMYUisDwlpiZEXxnV05TMrJpUHDN pbHIKzozBpzElJrMH5RegQ39MV0+nqyyWlAaV+HK22Vb3dJFQfuIIW/eORz5mryoyMEW 63+WEORFzmKXZZ2g9Eg1Tk4C4pc9rYW34S1NeMWuZ3tRF2HrYMoIxTMuM31f+updUgsl b/A3MVnkdzM1p7w6UrKi9XkQ6iWGi6A24d0EtaGtnk10/HCM+Yed5dB1QuACppr00ND5 BJXtzwnjW0s64cz2N6IqnZ1Q5h5r6Yn4seHNlKGy10Z+SHCU5oPrMMw0dXZfhas/KKYH UvfA== X-Gm-Message-State: AJIora+Knpkh5grr2tU5N44JO1icPNhQl3vPS7WtvxDwploFZxQARV93 eKNB6bH3zvl0a7KtuhoxSrA= X-Google-Smtp-Source: AGRyM1syOOvAoypAmhk4zs1I0CWoarKtZExbYxMlMjaNSHxTOjLJkQSo7BBnsufPDfHvH6fdr342JA== X-Received: by 2002:a63:3c14:0:b0:40c:a165:b85 with SMTP id j20-20020a633c14000000b0040ca1650b85mr1733913pga.504.1655626913760; Sun, 19 Jun 2022 01:21:53 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id iw21-20020a170903045500b0016a091eb88esm3882707plb.126.2022.06.19.01.21.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jun 2022 01:21:53 -0700 (PDT) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: Nicolas Goaziou , emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: No mathematics in Texinfo exports In-Reply-To: References: <87o80v3qzw.fsf@localhost> <87mtgedh98.fsf@nicolasgoaziou.fr> <87a6cezrhm.fsf@localhost> <87bkwud6ni.fsf@nicolasgoaziou.fr> <87czhazhfz.fsf@localhost> <87k0amb4qf.fsf@localhost> <87v8twscml.fsf@localhost> <874k1ae5tz.fsf@localhost> <87bkv75mgo.fsf@localhost> Date: Sun, 19 Jun 2022 16:23:01 +0800 Message-ID: <87edzlxdsq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655626979; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=b2bFhsDmqUTYkWSIPkUnDtnroqUn2FXnU+Lyk86QyMo=; b=oT/dG/HBnB4v87//eEZycDmtNBA4gvGB588GrnH3VCHNy6j6NFIkCrQnuCh/uj3/rGMvsN x10xy+gAQZeDAeqN08CDa/J5QhXNBGIfoj4gytUkviAA+sFfzRJ2TmwDClhzst+4V0rzaH 3px0opr+m3Iram8R9MgKtW4tUpg0HxTSc7InJ78nbo/nxSS+SuSJkOJn4maFDSOeW7qiDi rDC0JEnUb5I7d5GmFoZH9x8fxaFExB12nRHuUHPGAnwFZEG7gHHkbc+4SbVL94/yePUUDB PhP/kfZry+dasgkDNIExNuTbREUcuwSa7fG55VVSS4vQPncr8S6TvEcRMbiOEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655626979; a=rsa-sha256; cv=none; b=WksLmc9ZMiMpuqq5X29BLy/8wpcLEFQy5CSY4JNZ3BsPGqjCHKDAQ2bDXcSfZZimkLQ0bZ WapUmGVXRCOek5B4lagLwq5i98HwRHYiZ4Rz8Ssmen0aTnU733Viw5jDlbyTltqqfD9+FW I8OR+5Zii7RMt6nCfA0l1trqpdAfEqMKc3h6bTSatKeoJKjcjVU5iMxqTA9dk7URMI0zC4 HJlcwIuRof6MOUYKvk3K59OKbXr0t7kSrjFiN/UVakHYq49nr1/XCwm8POUkHIbC6VGitH TCejRANrz216iXDGrAna7a7IsEsqzW4olnMicFPz/I+3l/A+TaB7ArDzqDTdJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Su10xHcC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Su10xHcC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BDABE2D50F X-Spam-Score: -3.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: QOWU0LXL4gSa Rudolf Adamkovi=C4=8D writes: >> `org-export-with-latex' is a global setting. I do not think that >> texinfo equivalent should be global. It should only be declared inside >> ox-texinfo. > > That makes perfect sense. Please see the new patch attached to this > message. What do you think? > - (:texinfo-compact-itemx nil "compact-itemx" org-texinfo-compact-item= x))) > + (:texinfo-compact-itemx nil "compact-itemx" org-texinfo-compact-item= x) > + ;; Redefine regular options. > + (:with-latex nil "tex" org-texinfo-with-latex))) Looks reasonable.=20=20 >> As for the default value, it would be better if the option were set >> depending on the installed Texinfo version. If the installed Texinfo >> supports math, set it to t. Otherwise, nil. Of course, users will be >> able to override the default as they wish. > > I looked at both ox-texinfo.el and texinfo.el, and I found no function > or variable that would give the installed Texinfo version. > > Do we pull the version from "makeinfo --version" and then parse it? If > so, does that functionality belong to Org (ox-texinfo.el) or Emacs > (texinfo.el) instead? I also wonder how we could test it so that it > will not break. I would appreciate any ideas and/or pointers from you. First of all, checking version should probably be controlled by some customization. Especially when we export to .texi (which does not involve calling makeinfo), not to .info. This customization might be set to 'auto by default, making ox-texinfo check makeinfo version. Parsing version is probably the easiest way. Another alternative is trying to run makeinfo on a small test file with math environment and checking if it gets exported as expected. Best, Ihor