From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aFmIAXuP9WVUIgAAqHPOHw:P1 (envelope-from ) for ; Sat, 16 Mar 2024 13:24:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aFmIAXuP9WVUIgAAqHPOHw (envelope-from ) for ; Sat, 16 Mar 2024 13:24:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tu-dresden.de header.s=dkim2022 header.b="SGk/g2vn"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tu-dresden.de (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710591866; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QMYJizFuHF8eX4XDcpn+YgM1RhVPqpQ+MFj/gbdNu1w=; b=OCGrhYeE4aTMr5ljoQErLVG+4Si8UftKRw+RbbfiF52AfV2cwRB/kiH9q0Ic8DsIte8aew 3bgEmWWWOE96b2G0yWLmIC3523dNqQRm7eq92te8Gu9jdy0wiDM1UjJspaRheUfUlwq8+e lEpd3R06WH+KpyNMamW2TQZ9JZ5oeQMws62xyOUyocYqrsBzf0k+5BxQUrdU0ydhzTOhIS TnYojdKU0YGEtSJdMKtnNH0ah+hFeq0yCEWEZCbmqY+j79/8cnq9HWQ1BH7tS4FKe79xvw fKZEBTMh9KJ67MKvmmp9/t7Nrwst/j+5ybIWwYLKGPIRcJYtMdV8rb7ucJXpVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tu-dresden.de header.s=dkim2022 header.b="SGk/g2vn"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tu-dresden.de (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710591866; a=rsa-sha256; cv=none; b=WyvB39L3tOlNxlLmiJOOLAbKQon4+C365BFf4w9p94BXVFMI8VZzArKmvMtv4mizGC9fUB Z082iBqKRPInVlzsXLEViyvrqPATLiRIthilKfeUb5tJxwDs2ffg+kq5h3huQRQyFPhzCd fIjWZ/M+eiku2BNkvkMUm8RAv+9QJ3TEcBPveNyT49o1alpZhdl6rmc9cNhBFBbzfGGVsL 8ZFs1vf77WHuL9yEEaUcf6hjbm/GviADgpL/D98qUxqEzVMT5pFMlSWUDXn/9WJex8dQzf py56P/dj7x+Yfev8YIwL9kaSerGtvjbBqvnvTsz4ojULdCpePzT9sxq6FYLtzQ== 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 A950E143CA for ; Sat, 16 Mar 2024 13:24:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlT4x-0004OY-Fs; Sat, 16 Mar 2024 08:23:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlT4v-0004O7-87 for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 08:23:57 -0400 Received: from mailout4.zih.tu-dresden.de ([141.30.67.75]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlT4t-0004vs-62 for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 08:23:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-dresden.de; s=dkim2022; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QMYJizFuHF8eX4XDcpn+YgM1RhVPqpQ+MFj/gbdNu1w=; b=SGk/g2vn3O4Wl+/dJViJTIFn1j NJv9fR8j0EfZyHDCOOlD6ueFWKETduYO+FirpWT4nzrpEBj0hlW2yyzIlF1q3X141kG7qpf3/kWGW jYwh+5hW7/BhehFwWqmE4c+Ko+AuFIHn0/X5YrCewLCyBMyAZkEz/1GqPOBGw7LOzjPRVcygXAz3O dfu/Cf4Lpq6sGKkfRHbLa0inncvik36I+n0X9KvIeJigHtDgIQ6hLdafANkRB+jFopSVln6/zmqzW kvZfe+8ARyPiQjDoCZn6jWKcaDPP9XAEtnAOnCqUJl1HF67M+XZti/ut+2LjFWwWNTTwOdTYcedBN NGwHVtQg==; Received: from [172.26.34.120] (helo=msx.tu-dresden.de) by mailout4.zih.tu-dresden.de with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rlT4p-00FZkV-En; Sat, 16 Mar 2024 13:23:53 +0100 Received: from comonad (77.23.150.207) by msx-l320.msx.ad.zih.tu-dresden.de (172.26.34.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sat, 16 Mar 2024 13:23:47 +0100 From: Tony Zorman To: Ihor Radchenko CC: Subject: Re: The org--math-p advice around texmathp In-Reply-To: <87v85mij6f.fsf@localhost> References: <878r2r5h1b.fsf@hyperspace> <87r0gewanm.fsf@localhost> <8734ssu6vv.fsf@hyperspace> <87frwrinu5.fsf@localhost> <8734srz0qi.fsf@hyperspace> <87v85mij6f.fsf@localhost> User-Agent: Notmuch/0.38.3, Emacs 30.0.50 Date: Sat, 16 Mar 2024 13:23:46 +0100 Message-ID: <87le6il60d.fsf@hyperspace> MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: MSX-L315.msx.ad.zih.tu-dresden.de (172.26.34.115) To msx-l320.msx.ad.zih.tu-dresden.de (172.26.34.120) X-TUD-Virus-Scanned: mailout4.zih.tu-dresden.de Received-SPF: pass client-ip=141.30.67.75; envelope-from=tony.zorman@tu-dresden.de; helo=mailout4.zih.tu-dresden.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 9.49 X-Spam: Yes X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam: Yes X-Migadu-Queue-Id: A950E143CA X-Migadu-Spam-Score: 9.49 X-TUID: I/5Waun/4jeH On Sat, Mar 16 2024 10:07, Ihor Radchenko wrote: > In Org mode, there is a significant difference between \alpha and > \(\alpha\). The former is natively fontified (with `org-pretty-entities' > set to t) and natively exported to HTML/ASCII/ODT/etc. In contrast, > \(\alpha\) is very generic and Org mode has to invoke LaTeX, and > transform the contents into an image to render it. This includes export. > > So, plain \alpha entity is generally more universal when in Org mode. That's fair enough, I didn't know about org-pretty-entities! I guess for me org-cdlatex-mode was always something to insert *LaTeX* in Org, and not arbitrary Unicode (especially since there's currently no check in place that verifies whether the entered symbol can actually be rendered correctly via org-pretty-entities and cdlatex-math-symbol can insert arbitrary LaTeX code) > Further on the topic of the advice, the original texmathp has no idea > about Org-mode's syntax. If you have something like > > Verbatim text: =\(= followed by \alpha \) > > Then, (texmathp) will return non-nil on "\alpha" disregarding Org mode's > syntax. Ah indeed, this is a good point. I guess I would wish for more granular advice, but I recognise the difficulty in getting this exactly right. Thanks for your patience! Tony -- Tony Zorman | https://tony-zorman.com/