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 mEOzFplv9WVnnAAAqHPOHw:P1 (envelope-from ) for ; Sat, 16 Mar 2024 11:08:25 +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 mEOzFplv9WVnnAAAqHPOHw (envelope-from ) for ; Sat, 16 Mar 2024 11:08:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eHj79iR5; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710583705; 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=j6knb2WQR+gctaNQg+4nvbcQ3/kj44g4rT5SvX0LbhE=; b=Zs+zhQQDRmSOc3sSCm0nS5MiRI+smNUDdn/8KFStGhqNzwHJmUfQAQ3/skS8M9BMYwKXW8 6s4AM8vvs3dVZSzNOMiWeUrjvKtvrcKHINt+lWz1OYOiVkFs+HxMq3L1TPnZLlgFK3XyV1 XSw35EpIqpkHaV9zCyqbpjlyZDi9fLBJrC2r2Ia/hEWhZrFFQ3RNtzD507kCBh8rPREPPk Vy3UypUEq22q1h6WmZrO0XJslMGtakINGYajze5dv/VDhXpqVTjJQqyULa1BhyLe6DSd+B 8QFi9SR6lAAclLfXgtta2yhMSH01xB7BWflhkw/UBojDPJUELijz1lRtMvs6Fg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eHj79iR5; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710583705; a=rsa-sha256; cv=none; b=Ejvzd1gXVCYQUvbrxOpsMcw0uE2rjb4Z/G1aKYyGcRYAwSA03ilsSyNuWLKBgDBV4RFRaS u5aeXvGtoJHwUuFBeDFo/PeAtQmimdbQj1//CTGPhkWmWDDE88r6lTj9texP2bn/1t4KvT /YVmhBTeTLSb9LsbnVKRv6aEPzaNAhdUB2yMAxYGu2X29A/DCv6Y2vOX2ptIc3wLsx9EX/ f+j7X1sQ5csEfXRjNeoEDt8DFzz/++TiOg6O2+Or5Qsm3PmXfSyCBQLy/L6JT+sOP6UFFC uEj1rzMBEwoaH4ZodQy4xLJEJ80JjKECf5roW9aOPISDVorCklRnMsspBd1T+w== 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 4C98C610C8 for ; Sat, 16 Mar 2024 11:08:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlQx9-00046u-8J; Sat, 16 Mar 2024 06:07:47 -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 1rlQx6-00046T-Mc for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 06:07:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlQx4-0005tH-KF for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 06:07:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A165A240101 for ; Sat, 16 Mar 2024 11:07:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710583660; bh=hDQ0vw0GpbFmxBgiF5aHSJIYKz+taftTgArHJYFu6NQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=eHj79iR57R7JONg5cysHapxeoO1tjANxkN1e32fbe5yDFm3gpfHvHs32gegH8pdqV womA9gkRLyEx5LOfWx2jttPoWcBFi9zWPHkfnYS1bqaBlHpLhe83XbyScId8mJI/Tv 0rGhipykLqI/Zs5+skVAvcZ0JxztKuZTv+F68topkjPH6bNsFW2XOhIsxSLZPRJq3G 2/Q9nAWDVq95fTJrUhoMLeA5OOvExvzSv2xTRixLAWtE3zza1BD9AsAco0B76k4RL4 iiqkWs/Hrq/S7GLIVwCnSDJ0EwrPhb/AYwslY0XopHtLkjHdeKFtA9xtH82vG7voSE D7BcX2/8BNs8w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TxcHb5SQmz9rxD; Sat, 16 Mar 2024 11:07:39 +0100 (CET) From: Ihor Radchenko To: Tony Zorman Cc: emacs-orgmode@gnu.org Subject: Re: The org--math-p advice around texmathp In-Reply-To: <8734srz0qi.fsf@hyperspace> References: <878r2r5h1b.fsf@hyperspace> <87r0gewanm.fsf@localhost> <8734ssu6vv.fsf@hyperspace> <87frwrinu5.fsf@localhost> <8734srz0qi.fsf@hyperspace> Date: Sat, 16 Mar 2024 10:07:36 +0000 Message-ID: <87v85mij6f.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -7.09 X-Spam-Score: -7.09 X-Migadu-Queue-Id: 4C98C610C8 X-TUID: QjNoOijT5AHn Tony Zorman writes: >> For example, something like \alpha is a valid Org mode entity. >> Without `org--math-p' advice, if you do "`a" in Org buffer with >> org-cdlatex-mode, you will see $\alpha$ inserted. With the advice, just >> \alpha will be inserted. > ... > > For example, I would think it's expected behaviour that "`a" in a string > produces "\(\alpha\)" with CDLaTeX; indeed, so far I thought it was just > a bug that it didn't! Likewise, that a standalone `a produces \alpha > instead of \(\alpha\). Why is this not expected behaviour in Org? 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. 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at