From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mIWnKzV2NWUqVQAAauVa8A:P1 (envelope-from ) for ; Sun, 22 Oct 2023 21:21:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mIWnKzV2NWUqVQAAauVa8A (envelope-from ) for ; Sun, 22 Oct 2023 21:21:25 +0200 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 0278154D21 for ; Sun, 22 Oct 2023 21:21:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cPdgUCQ8; 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=1698002485; 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=gFuHxfpUIEp1ERSmYO0I/M8v8jvI2Vawi+bEVTiBLlk=; b=DsoZ0pcQUP1L7TG2L1pLgaxUaqdwvjFqCCfQJj8mA5UdlEsRLz53iPhHTzIqaxWC3lcQob axnBDSMLYnSOsXmTjX7gbK+06cUKDN/MSU1+tdjMjRMcyKhpEmxpd9RlFk0eExhBckGFBo uzg/mza9Bvp6e/ksdgzl4Tm95gvhyyQSyotKnEfvlXkPPaiH7kBpCCpUbp7sTfxo2GW+0H cy7puY77drb5xtFN9izZLtDLxhnBy3CWw/LS29SxVuCWchS7khLpM890oq2IMptPkuj1ly hK4fr5if3fHz/xp93dH1PXPOh4lLNDBIedAT5iV4kQA9UyjK3jfWN1KHxE3Axg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698002485; a=rsa-sha256; cv=none; b=Vzv7N2x8bLKyqfT9D/jocFoAQp4IbkRsDfp6CUuu4pnup+nUGjmnTJbAa7GuUh08ia/HpM l7wmTJ+wxlVoJqmL8qGNH29UunGNET/r/bYlJKUbZTlfttXVvKMzIcmjXbQMBBhCMrluGu yj6HRHwkHLpPuzlh5QuO8lxMuS697Uvt2UF762cxefM687saVt6/FTJm+omek70VNwJr3J 1qA/BjWODoJflAcZn1za2wTucGL63OL2vH9MCaWoMmPBbEXAXnm5/XdK8FzDldTQnfe7VV oaR3f5GPdFp7fqHUIelVQo5wjfwiJa0LPOV0MNPpkt3Cn36mHRnFIxjxtDsbLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cPdgUCQ8; 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quduv-0000og-RS; Sun, 22 Oct 2023 15:15:17 -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 1quduu-0000oX-4U for emacs-orgmode@gnu.org; Sun, 22 Oct 2023 15:15:16 -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 1qudur-0002KV-4p for emacs-orgmode@gnu.org; Sun, 22 Oct 2023 15:15:15 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F2E9C240028 for ; Sun, 22 Oct 2023 21:15:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698002104; bh=O04Aq/g2dBvbE+r7CVBiZwpfzGAyWXD536Urnumr+DY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=cPdgUCQ8hr4SLnpgLqIjwLKls9cy7M84HvH9kl+MIKK2b8WTsUYFT5L5eSyTUoI+T oHMQeLUs4JQsxANdvHUHZKinuBTiqzmqjOHDP9pgH3LS6LeSNQ8xpR4hXs+RWx1xUi 7p6qYrJSWUM+oV7MNHG1IuYHG9PTBRsGR+ivD6Gu4LwOR4L2xyi4VF4am+u8x/Nzma GAJHy+XLy6Tsnz5BqBnSeH8sZ5VaIs966oZZ0mJFlk856id386OTKId25RwVCs6BtB VGbZ+WqezQlx0ow+OJzegiAwzlqrfS3FalRDiSoFW9EgPFMSQj9rfeO3kZlcAM4Wwp X9A5Gc8Lp4gFw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SD7Lb3Sl5z9rxK; Sun, 22 Oct 2023 21:15:03 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Max Nikulin Cc: orgmode Subject: Re: Pandoc and nested emhases In-Reply-To: <76453eb8-1db6-45ee-b1c7-fe68536b2fe9@gmail.com> (Max Nikulin's message of "Wed, 11 Oct 2023 23:11:26 +0700") References: <87sfshgfvt.fsf@posteo.net> <76453eb8-1db6-45ee-b1c7-fe68536b2fe9@gmail.com> Date: Sun, 22 Oct 2023 19:15:00 +0000 Message-ID: <87ttqiii4r.fsf@posteo.net> 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=maciaschain@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_H5=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: -7.96 X-Migadu-Queue-Id: 0278154D21 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -7.96 X-TUID: N67k/T/RVgtU Sorry for the late reply. I haven't had much time these days to keep up with the list... Max Nikulin writes: > It was long time ago... > > On 18/02/2022 07:47, Juan Manuel Mac=C3=ADas wrote: >> Otherwise, if you export to LaTeX with pandoc (v. 2.14.2), the result is >> (to my surprise) correct: >> #+begin_src sh :results latex >> str=3D"/lorem /ipsum/ dolor/" >> pandoc -f org -t latex <<< $str >> #+end_src >> #+RESULTS: >> #+begin_export latex >> \emph{lorem \emph{ipsum} dolor} >> #+end_export > > Nesting of the same emphasis style may be achieved with Org parser as wel= l: > > (org-export-string-as > "/lorem /ipsum// /dolor/" > 'latex t) > "\\emph{lorem \\emph{ipsum}} \\emph{dolor} > " > > Namely closing markers should be combined. See the recent thread > Tom Alexander to emacs-orgmode. Inconsistent text markup handling when > double-nesting markers. Mon, 09 Oct 2023 19:02:18 -0400. > https://list.orgmode.org/dad964f5-c764-4dd5-9829-ca38e3fbeb0d@app.fastmai= l.com Interesting. So it should be understood that in Org syntax this dummy title would be possible: /Essays on Homer's /Odyssey// =3D=3D> \emph{Essays on Homer's \emph{Odyssey}} but not this other one: /Essays on Homer's /Odyssey/. Part One/ \emph{Essays on Homer's /Odyssey}. Part One/ In any case, as Ihor commented in the thread you link, and as you also commented in the other old thread of my discovery about Pandoc, this behavior of Pandoc should be understood as a bug since it does not respect the Org syntax. Although the previous example leaves me a little perplexed. Actually, I think nested emphases of equal category are not that necessary. In general, putting something like \textbf{lorem \textbf{ipsum} dolor} in LaTeX doesn't make much sense, because \textbf is not a switch. It would only make sense with the LaTeX \emph command, which, contrary to what some may think, is not used to put text in italics (that's what \textit is for), but to emphasize a text according to the context: if the context is in normal font, italics; and vice versa. If I don't miss anything, I think there is nothing similar in either html or odt/docx. --=20 Juan Manuel Mac=C3=ADas