From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wPwXF/ZwI2EKrgAAgWs5BA (envelope-from ) for ; Mon, 23 Aug 2021 11:57:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IKrSEvZwI2E6VgAA1q6Kng (envelope-from ) for ; Mon, 23 Aug 2021 09:57:10 +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 7D42A5AFE for ; Mon, 23 Aug 2021 11:57:09 +0200 (CEST) Received: from localhost ([::1]:58542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mI6hY-0006wU-Ha for larch@yhetil.org; Mon, 23 Aug 2021 05:57:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mI6h4-0006w7-6V for emacs-orgmode@gnu.org; Mon, 23 Aug 2021 05:56:38 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mI6gz-0006Gh-M0 for emacs-orgmode@gnu.org; Mon, 23 Aug 2021 05:56:35 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 3E3C0FF808; Mon, 23 Aug 2021 09:56:28 +0000 (UTC) From: Nicolas Goaziou To: Chlo De Subject: Re: Bug: unexpected behavior of nesting braces when exporting to LaTeX References: <611D10FC-6BAF-41C5-9E81-649D92C47225@gmail.com> Date: Mon, 23 Aug 2021 11:56:18 +0200 In-Reply-To: <611D10FC-6BAF-41C5-9E81-649D92C47225@gmail.com> (Chlo De's message of "Fri, 20 Aug 2021 00:45:02 -0400") Message-ID: <87lf4s1o3h.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.199; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629712630; 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; bh=U3g0fIlqqtCpV438xqLdaAm9lyfQT3p4Vci7AoXSKUk=; b=S905TqcozsH0HQJqJC62JHQQnO86kpUsXonNYEMXfVCU58I/MpvWP0K00XeQI3WP+xUwA/ 5La2DcKA3DcacvVkFDDPdNRgIMo1cGCadRv9zeIkOz0R7pmP+bA6dOBPWHkiFAGsv7H49e Uv32kHeiqAVRie0KW/LK3x7zOMlmJQC/5BHJbqet6NVVTH3YQDzoBG3Kk3TJ3Hgw1ktaP8 ihjrrOV1Gq2urRpevbQgeeyFaniz8696cuGzxJRZIEICWod1WluYpwUF3XdNgyOHqPo9nD zoPJm9RDpI9WrikQrGU78fD1RtmL4wRe/3lpk+dOShSkL+CmuNi+QBjY6eJv3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629712630; a=rsa-sha256; cv=none; b=Gg8CGpxMmEeKWAiVPb145oZhTCoEKxRsTCyzK1tzO7u3zp0gOt/Xk1Iq0bRYJZDLq1Rlkd vhDw0AX078xN7KN4fzQeruPmcD1TG9bYmc9ig8Agif8LN534Yks6FCJwaR1ig6Airu0HgC /Bx+IHmdgGaZFsR9ivlZb9WWmiZOu8Z8JiKZlgRdrrvPx7IyFQnHOqvwlIHyL+PoGKFrRQ 3itLzpCTUzaDcaMsIjrRFXDPd4wDcL6973Fyc39h8bXJSLAXeiP5QUljFhStxlqg5XEndd 9OKdvF4/uWBgiZ+U+tGGgqgm8z8VqrWG5t44wj0StHGhJZHQYosc4Zag17nL2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Migadu-Queue-Id: 7D42A5AFE X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: Vh32KoThVSSV Hello, Chlo De writes: > I use Org-mode to take notes. I found that when there are nesting braces = inside \emph{ }, \textit{ }, etc. the output is unexpected. The following o= rg text > > \emph{{n+1}-a} > \textit{a{b}c} > > will be translated as LaTeX expressions > > \emph\{\{n+1\}-a\} > \textit\{a\{b\}c\} > > Can this be fixed? Org only supports a limited part of the LaTeX syntax as raw syntax. This is not AucTeX mode! For complex macros (e.g., with nested braces), you need to use dedicated environments, as pointed out by J=C3=A9r=C3=A9mie. Regards, --=20 Nicolas Goaziou