From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yIgBNaezImbplgAAqHPOHw:P1 (envelope-from ) for ; Fri, 19 Apr 2024 20:10:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yIgBNaezImbplgAAqHPOHw (envelope-from ) for ; Fri, 19 Apr 2024 20:10:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gWlvzI4h; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713550247; a=rsa-sha256; cv=none; b=Tcirkj6mEd02Ry19DZ3EE8EmDf1B7trmcCG9sj7ufc6ZBPVw4Ag5PrWrOILe6q0c8KEP2O tKo3+G3PRxl2zoQu62Iq4pP5eXYpngiTsTH89p1qt0NrpJccgMEhkaPx/TpQjKxNZN1DH3 9AlvgVOUC6BYHPEscl2IbP3tH9L6fJJQMx2rHYkyPox6O9okKcQE8f1B8kSIcJ8bCqQrng mTXa/+g9JEOl3Qv4jvjnfr9YoPpNOGoXaZzhQ9BWXo5126WcmC2NJ3hJqJChLcgzETh0SG F3b/SchfZdnW/8p6hLsX+h6FKVRjr33fjJeHyTEfQEmwW/XJ96ydjfHMhwlhnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gWlvzI4h; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713550247; 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=APZNMwXb9CATS3bevkpzlnEs6feZNfKkSPtTAHwBjQw=; b=jDJgtH0SqZeyxnfYU97yKcuuKNZuzqBwxTc6nzoQjlrvsb0JWC196WZyu9Ko9/pFqteMM9 rqQt3bAAYczLsVBE7tHL2GJryrHQJyhlMyghMZVoHksewvUUK5Rc0L8pnNFFXSNdhn60yV 4B4Hr5GRqAyt7Ye4oZEMDHH06hu3ECp4k8zNxwsUOlwVrZnDV7+UdgRGXetATAlB5hWnPV 1lsPgFpLs20Gr6QJoRofsvsAGfKpf+OPwizpJznYOpnHlgHOEQWfNohsM9wrsUJh6dnB8Q dTKcQydWdxLzKuLWgkqqIhwR43U3qkvbfWn10Tn46zG9HaJdU+855iEdqD0UZg== 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 86D6DE810 for ; Fri, 19 Apr 2024 20:10:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxsgW-0005Ej-P3; Fri, 19 Apr 2024 14:10:04 -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 1rxsgU-0005E0-7w for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 14:10:02 -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 1rxsgR-0003Md-07 for emacs-orgmode@gnu.org; Fri, 19 Apr 2024 14:10:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A70B1240101 for ; Fri, 19 Apr 2024 20:09:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713550195; bh=408596JlfkKgCvnyDggPm4kmFJHWW7xSwHrKKveyKSk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=gWlvzI4h5b7aeh+wkS75H4F9pfaPOHMZRljmHfmw+zJse3TTSAtIyU3i6ZOy3tX42 YO8o1zNpb+hhJ4GOog3Fo0GOZDRI5Cw6SFEfZC4IKX9YdxmiS521cbgWva2bi3vHOr QXzmbX6skja0nTT1uzbiTdW0sfYP7u2omLxyRJciJfnrpcwEj5iZSYtlHRyz+TVY1j RCJPymS7n89MEgIJ510hVaMwfcVKUHx5/qo6h2sdKxLOMPWQxsAOMNcipP/uioPaEH Pi0TuDfoIiad0S3PkvtpfHTlUks3ZUNg6OEryC6x4/iUPAbKN4lZPFya4mcSsOaLZD PE15Jdj0MCIKQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VLjNL5kLbz9rxB; Fri, 19 Apr 2024 20:09:54 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: org syntax: is \begin{equation} a latex-fragment? In-Reply-To: References: Date: Fri, 19 Apr 2024 18:10:35 +0000 Message-ID: <87ttjx2pgk.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 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.27 X-Migadu-Queue-Id: 86D6DE810 X-Migadu-Spam-Score: -6.27 X-Migadu-Scanner: mx10.migadu.com X-TUID: 1iZYxbcU39tH Max Nikulin writes: > Is it expected that > > ---- 8< ---- > \begin{equation} > ---- >8 ---- > > is parsed by (org-element-parse-buffer) as the following? > > (latex-fragment ... :value "\\begin{equation}") Yes. It matches https://orgmode.org/worg/org-syntax.html#LaTeX_Fragments > \begin{something} is quite special in LaTeX, so despite it is similar to > `latex-fragment' definition, it almost certainly leads to an error. > Perhaps is should be detected by `org-lint' and treated as literal text > by `org-element' since it is incomplete `latex-environment'. Yes, a linter would make sense. Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at