From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mCqPNQEED2ZvMwAA62LTzQ:P1 (envelope-from ) for ; Thu, 04 Apr 2024 21:48:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mCqPNQEED2ZvMwAA62LTzQ (envelope-from ) for ; Thu, 04 Apr 2024 21:48:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hUoACVji; 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=1712259162; 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:dkim-signature; bh=k32lL7T0KgMX5EyAXmlkPgWRyEzXILGPlgxjjaPUCQM=; b=ouRzCgmwSObGBiobVKdyFdHK4sFkDveqXvzsgGRa16NXtx8HqiZe+b/6hpH4bwBjYi9cIH wjY07kAQusAuopN5vtR9dBvpi0aGPtEg9pDWC2kq3XG2rGEIQaKlgXjCJL5P6tGNfSKf/P gUamr5l8zYUOjDnc/Xig76CqQI7hG88XHvMkix/GeD/0Ln22lLqX6sTSicCB48800iFOk1 2Fz2flXuxERzG4ngntOyF1MQQP6aE8H5woKEBOgFo4+oFztMz9Ba8W3jw9TlRKrQEFKWWu RfKce0V6/0mv8vhyfp1JpEsZqjBAYMQcoOQ/TMmlJpa4ety2SVW+SHEQRqfNNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712259162; a=rsa-sha256; cv=none; b=fcssGVfkNi2eF13/xvQXUoITu5MavfisrzgmRJBsqDozj4fXanhsLKqkbzQ0MBlVpg2Gyp 0hkv0lto/6WIYbqdMcRKzmHNtoqIuPgABxcJR8BipMeNPCSDY/Ze2T8VIY/+44XTTpJgpl cnVObvJvLI9xv/HYaVQmIW8mb5Ob9dduOVcFwOvt6v23PvpfgHuSFLuQHsZuScfl1P3CFk bQIKSaaUQ9u5m/eSeHgdolK3+qiZb+ply+Ai2qwYHwiAecTstbhL9vIrIrjLl0D4vCxI3g JM7qllDyTElv1YL/3tNmouJykOkxX0yfMMhM9WhJSNMT9VQelCVx7rDB8mpAEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hUoACVji; 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 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 3C2FB11803 for ; Thu, 4 Apr 2024 21:32:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsSoJ-00030R-0G; Thu, 04 Apr 2024 15:31:43 -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 1rsSoH-00030H-Gv for emacs-orgmode@gnu.org; Thu, 04 Apr 2024 15:31:41 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsSoF-0005Vf-4H for emacs-orgmode@gnu.org; Thu, 04 Apr 2024 15:31:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F132D240027 for ; Thu, 4 Apr 2024 21:31:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712259097; bh=ill36qE8Fk3xkoiQM+gj2p0TTN6LIpLx5fT5qq34UbI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=hUoACVjicg02yrkk2SMalRQZj9F946osbn/YpzHxkY+AfvtsheEG1sN0TAoNBTR20 LKqLaIFgRZ64//9uK6vqiCkI2teIezXkYGzhwuM8avViZTs8e63eaag2XQekYzJUXu V+vKqQG/9A937+IX/CyLWiUljwxzzPOi0W5ed37PS6Z/Nc2LpLQhhFNKCoacZPg04f y0sgs4/djcY5a1hRKDlhpmjqvLrOq0VTAYNDmCdPaghmD7Vh5P0G3woD12+JyZuVSI cq67VSGpJQLuIg7vKaSHPsd4u+H9xaxXY5/2cy/9oDUUYZOE4XSzYaRwEoWrQjmK0i anPoIysAbY5kw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V9WvX1kTLz6trs; Thu, 4 Apr 2024 21:31:36 +0200 (CEST) From: Ihor Radchenko To: Jens Lechtenboerger Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Org export fails on $k$-ary In-Reply-To: <8734s1dngm.fsf@wi.uni-muenster.de> References: <8734s1dngm.fsf@wi.uni-muenster.de> Date: Thu, 04 Apr 2024 19:31:52 +0000 Message-ID: <875xwwhql3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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-Migadu-Spam-Score: -4.06 X-Spam-Score: -4.06 X-Migadu-Queue-Id: 3C2FB11803 X-Migadu-Scanner: mx13.migadu.com X-TUID: FGpRmOo6iDPR Jens Lechtenboerger writes: > I would expect this to be exported to HTML and LaTeX correctly: > "A $k$-ary function has $k$ arguments" >=20 > In 12.5.1 LaTeX fragments, this use of a hyphen is documented: > "To avoid conflicts with currency specifications, single =E2=80=98$=E2=80= =99 > characters are only recognized as math delimiters if the enclosed text > contains at most two line breaks, is directly attached to the =E2=80=98$= =E2=80=99 > characters with no whitespace in between, and if the closing =E2=80=98$= =E2=80=99 is > followed by whitespace, punctuation or a dash." > > However, the HTML export result contains > "A $k$-ary function has \(k\) arguments", > which is not rendered correctly. The first two dollar signs should > be replaced as well. > > The LaTeX result contains "A \$k\$-ary ...", which produces literal > dollar signs, not math mode. This is expected. The manual is not accurate here (and has been fixed on development version of Org mode). See https://list.orgmode.org/orgmode/f0597d96-a287-2c48-7897-6b8737c95217@p= osteo.eu/ > In contrast, "A \(k\)-ary..." works. This is also expected. Note that the latter syntax is preferred. We do not recommend $k$ because it has edge cases like you encountered. Canceled. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at