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 kGRtG1ZfR2ZgEwEAqHPOHw:P1 (envelope-from ) for ; Fri, 17 May 2024 15:44:54 +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 kGRtG1ZfR2ZgEwEAqHPOHw (envelope-from ) for ; Fri, 17 May 2024 15:44:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TN0FVkKv; 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=1715953494; 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=GpHLMxGMVNLdPTGvPcuGlM3eiRAgMsvVmRVRepRTrvo=; b=N5QziA1zYt80ZrttWgBHNaounJZ13LSYSGcJuCaNRn+C3UpAj2c31YhQFRzJxpmOfB6pU+ Jf15JrSlpYUqX6O3aGkImdHw0TUm7dxaeTGkIzpZQf/t/SNK549ByiTrb29WP+c7msSvum RGwOLHXK53ki5podiV7FEogGKNd2YRzmtibjsG7L0tqnr/7yclMcw7+aPG5c/uOMDTayc6 GRq/dD0c3srccILOJhUADE1C9/t6BcMe+kHU8W54bNbiV6Uz9OEX9O9XqtmXrUH9DNwmno l33yyisx0ovAUaGr1bNfE+9PdBcrvue3YCH4YF7LyrQPXut146QYD4UXiuOmnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TN0FVkKv; 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=1715953494; a=rsa-sha256; cv=none; b=Rx7fxeieFqHiSNjE9a810yNxF1dr6fDu+dThsahNV66dlbuU5W3Wm2eamDxsJTj6qwIvLh 5Bun6MR3aAmOkiV+TOw2uD6ZMKyVjd7GPf3Tg7Xe+M3ZeJ5p5tFu/kKtohRImVEE9cObdl 3B+XHS7AECt90URdEkT+AW4jmOpgsEhCpkqmn9ZSAGPl4RVtJo2FeamZ/gb52TwUHmk31B 6Rc8eURcslh24HspviOGzap9L6pIa8hGoaTmicYElasq9nIQLasOQKP58dwEV4+R0noblS hzFvHdWKI87hVrmB3W5QXZMRmowLD3glR52kHsNNdW6pJKy8Jg50f6faHLmF/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 24BA521F6F for ; Fri, 17 May 2024 15:44:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7xsM-0006TR-7w; Fri, 17 May 2024 09:43:58 -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 1s7xsJ-0006Sg-Ns for emacs-orgmode@gnu.org; Fri, 17 May 2024 09:43:56 -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 1s7xsH-00064W-Ae for emacs-orgmode@gnu.org; Fri, 17 May 2024 09:43:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 230AE240101 for ; Fri, 17 May 2024 15:43:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715953430; bh=q/lRwPQ4crZ6xXSTOAWaqZ6ZDTkEORftNieQfoJNyAw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TN0FVkKv33mCIE0xXebdnZbFNF4c/8kzaGJgInQLlHEowZwFt/pi036FozVwuRG4p Tzc3jgAYN1dxSVofnqOSBlqWeKviglCBg3NfJQTIxz0GUonGEjQzFnB/ojL9PfhNYO 3ZZ3I29uHcO95lKinT6RMGK+SUI+YZMdkLft1DxsLWx77TZhhK6SYGrFC5wWktZo8Y /AJ75nDpBqcCu79kJ+7NESFKUi6FlNDDOWE8XcoMwZjXFZAunD6s3TPH57aI1HS0S3 GIfibArWutxU8GV2Hdigg/G90Ui7D/x+mvxeV2kLMlT3gQ/lXW3M0BwCpxUw03Pwwx LF7TiRhid4emw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vgp8P3S37z9rxQ; Fri, 17 May 2024 15:43:49 +0200 (CEST) From: Ihor Radchenko To: Stefano Ghirlanda Cc: emacs-orgmode@gnu.org Subject: Re: Exporting user labels to non-latex backends In-Reply-To: References: Date: Fri, 17 May 2024 13:45:26 +0000 Message-ID: <87a5kosgax.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_H3=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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.20 X-Migadu-Queue-Id: 24BA521F6F X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.20 X-TUID: fNgssjp+bBO+ Stefano Ghirlanda writes: > There may be an issue with using #+name: labels when exporting to > non-latex backends. For example: > ... > #+name: eq:x > \begin{equation} > x = 1 > \end{equation} > > cref:eq:x > --- > > exports with a mix of org labels and user labels: > > --- > \begin{equation} > \label{orgf29908c} > x = 1 > \end{equation} > > equation \ref{eq:x} > --- > > This does not affect latex export because one can set > org-latex-prefer-user-labels, but most other backends do not seem to > have this setting. I think there is one for HTML but I could not find > one for markdown. Would it be useful to have a global setting for all > backends? Or, is there a way to fix this with the current code base? AFAIK, there is nothing to fix - the current behavior is intentional: Commit 981f25031dd17 * lisp/ox-md.el (org-md-latex-environment, org-md-latex-fragment): These two new filters wrap LaTeX maths in $ / $$ TeX-style notation. While ox-md endeavours to adhere to the original Markdown specification, and not any particular variant, the original specification does not deal with LaTeX fragments at all, and so this change does not reduce how faithfully the original specification is followed. There is a major upside to this though. Of the many Markdown variants that have emerged, those that support LaTeX very often exclusively support TeX style notation. This change thus improves the utility of the Markdown export for many use cases, and deviates no more from the original specification that the current method. Please, provide more context about the problem you are trying to solve. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at