From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QCtoGMq77WWAtQAA62LTzQ:P1 (envelope-from ) for ; Sun, 10 Mar 2024 14:55:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QCtoGMq77WWAtQAA62LTzQ (envelope-from ) for ; Sun, 10 Mar 2024 14:55:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Wh5mj7O/"; 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=1710078922; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=s+2G7Kj/p6Ax9qp3OWI31eVmcxkvvzBAriaO3vRX/sI=; b=oeoLrFaTGcvA3S+03bQTNlLlyghgndHfX2oqtV1ti/D+KN8AETr7sC7WBhkxcbBJl8fn5A x8/3bxkXcLjQ+o2RuKXC1WCavRpQe+5UGlpOV4xwud+EtRGhePKWH2pmzUPKAoXO8XaGSw oAkSwriYucf45t3kbrE3bfFawEqVdlx6enO9bsferYeE2G9nQpxSVwrMVx+wwibhU5fJUk AZc/QJj37L2tYtHMTUrx0S+whBg0fKCVLz+d1asflx1WmvLLp5okDErnI8xwgA8o+mOpD6 T6hMSqNAy4oguB0Hu5uh3tFqHWmXPIZUVhprKWh6CCUb8vZvzGFUqeRI2l9jrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710078922; a=rsa-sha256; cv=none; b=Hl39UpROPF00W2yMRLzR2NNmBZWpvMglOVTF9br2/toNu68zmb3e+hBYPdaGmF940WdXOJ y4rGFN8d5Wbb2+wyhoZZ3Qv6Mu6ZY8WqNUu4BHaQpSlPa1oQfS/H9LJhM5nqvyS7svKZkF /4Vw+vhcoe2ssQJQqEw5wX+XJAd867OpNE1RxJ9CoAJujPl2dKxMi2FzID0HBvnyn5OOBw kSSIPP2nvS50rnxpyOis5z4MP75HnEJTCVUNr7n7RY3r2x4AZo1yvyGSX/STihlfsVMr2r v/L1hm0RIceOPIOpze5CyBHGIu9EeYRUq/KHHzZ/W1+Em/Ir8rPY3D+NW/S6ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Wh5mj7O/"; 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 0752A5B2E8 for ; Sun, 10 Mar 2024 14:55:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjJdI-0004s0-Ub; Sun, 10 Mar 2024 09:54:32 -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 1rjJdH-0004rn-C5 for emacs-orgmode@gnu.org; Sun, 10 Mar 2024 09:54:31 -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 1rjJdF-0000rm-FQ for emacs-orgmode@gnu.org; Sun, 10 Mar 2024 09:54:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 89648240028 for ; Sun, 10 Mar 2024 14:54:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710078867; bh=s+2G7Kj/p6Ax9qp3OWI31eVmcxkvvzBAriaO3vRX/sI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=Wh5mj7O/EHSHv17XX5sSMMu9sF7nXRoELu62ZVSyOwrCPORCWmBHrdMmG7skk2ReH wbQpGZpbj8TuaReHSVOGF0mfdq1M5kN9cLWSzeKDnotCHofWh9aeiSl6IIfnWxcFLt VO7MxHCPjTq0VyYcrWT/yAwXKkLsmjnF83iDXhWPaQnTzVP/+RU7Y+FAOvqsC/EH/V uwLHrzLDPhzZEoyuv4JIYp6y8H8LlrkNr28WEJ54fI0NjrmDzM7S6MLIkgRyDeHdHp qMq04x5yPLMtX2KA6QDWdTlDQd7PaZFq7ufjVBs9LS81YEW7bhLnhY3+ZB0EdEU8IP oy6ZqxyeIaQEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tt1c30szXz9rxM for ; Sun, 10 Mar 2024 14:54:26 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Re: `:export' attribute?: Re: Experimental public branch for inline special blocks In-Reply-To: <877ciavnwo.fsf_-_@posteo.net> ("Juan Manuel =?utf-8?Q?Mac?= =?utf-8?Q?=C3=ADas=22's?= message of "Sun, 10 Mar 2024 02:08:55 +0000") References: <87wmql6690.fsf@posteo.net> <87cysb2h68.fsf@posteo.net> <877ciavnwo.fsf_-_@posteo.net> Date: Sun, 10 Mar 2024 13:54:24 +0000 Message-ID: <87il1up4z3.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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Migadu-Spam-Score: -6.97 X-Spam-Score: -6.97 X-Migadu-Queue-Id: 0752A5B2E8 X-Migadu-Scanner: mx11.migadu.com X-TUID: /sWU3htHubZS Juan Manuel Mac=C3=ADas writes: > I'm thinking about adding a new global attribute, `:export', that > would granularly control whether or not to export the object and how to > export it. > > Possible values: "noexport", "contents" (it would export only the content) > or the backends to which you want to export, separated by spaces. Each > backend should be followed by a "+" sign (=3D export all) or "*" (export > content only). For example: > > @foo[:color red :export latex+ odt* html*]{lorem ipsum dolor} > > This means that "lorem ipsum dolor" would be exported with color format > to LaTeX, but only the content would be exported to odt and html. I have implemented the new :export attribute in the last commit, to experiment (in any case, it can always be reverted). The syntax and usage are as described in the previous message. An example, where we define an alias for inline comments and another for highlighted text: It will only be exported as highlighted text to LaTeX (using the lua-ul package for LuaLaTeX); only the content will be exported to HTML; and it will not be exported to the rest of the backends. #+options: inline-special-block-aliases:(("comment" :export "noexport")("hl= " :export "latex+ html*" :latex-command "highLight")) #+latex_header: \usepackage{xcolor,luacolor,lua-ul} #+latex_compiler: lualatex @hl{this is highlighted text, only in LaTeX} @comment{this is a comment} --=20 Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa