From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 QG0VJNXE12XATgEAe85BDQ:P1 (envelope-from ) for ; Thu, 22 Feb 2024 23:04:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QG0VJNXE12XATgEAe85BDQ (envelope-from ) for ; Thu, 22 Feb 2024 23:04:05 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pSqw0a8e; 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=1708639445; 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=dZwXmUkdQm9x9dkNVwoElzCVeWBFUmoMsKqArZI6ZuQ=; b=kBld/JyGcSD37ehQXZ3ggMMYa9rt9lSkisrwrFOuUNInmxiuvalaZ9gcZh9ETyilBzFB/S 6+/pmU+hl41a7rAbHpaCYkAxMUPdjBLdE/0FAmhySSYcqnVUlaDIOS4n6imsDSDE/IJ4uu Fj8iiLllmIkI/9mW5I0XrZRIH/RGddUUz7+YnverS1hF9+2N8wUDynYzENMSdy+59ZAFHC Fq45lLStnPVB2RpIasFjuQBLd0uyTx+FKeNRm/ba8lkebTZwo+xtwOAYu0Viiy8Xq8klrk yyKQ55Fm4rESzbyIybQr0X0CELZkJbE2QnvlMCrEeddhQWTm0mgZkxWp5B8dAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pSqw0a8e; 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=1708639445; a=rsa-sha256; cv=none; b=j8jiH0N0y7wzQFs4cl/oPiynZYY2vuXLe9zHCpW1OygeZnBDik2Eda7f+DexWm/bt+0ald csgmtHpVP6Yv51gNxqfp6mxh0CDGt7llB8zJ3Ne4en5Nc4zCC2wph7ZtrVC6HOR+shCaP+ zQrWPOV4AxEX3WJSV/3q+gucBFRhBRhVXApjKTeZMfXn9RnmXAYiwPh3/qZQFT8K49KYrq PoLX5BysQlWeALzcaJN7vHqg6S8udDCS4OgkLwcDtGJXLj8IuZicehC52iEffbOmJnQY9O jlLBu5KFGDpw1kUb/ZOHr03rjGlDna9/TfIIRC/sHwVYPdjQ9+D8nWPpP4Xl5Q== 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 58FC55C302 for ; Thu, 22 Feb 2024 23:04:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdH9t-0001Gc-GQ; Thu, 22 Feb 2024 17:03:13 -0500 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 1rdH9r-0001GI-Qy for emacs-orgmode@gnu.org; Thu, 22 Feb 2024 17:03:11 -0500 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 1rdH9p-0007xM-M2 for emacs-orgmode@gnu.org; Thu, 22 Feb 2024 17:03:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 24BD4240101 for ; Thu, 22 Feb 2024 23:03:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708639387; bh=dZwXmUkdQm9x9dkNVwoElzCVeWBFUmoMsKqArZI6ZuQ=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=pSqw0a8eyG1ISFl090BGvLtFQeC5E1RyL2UWgdhzxXfGkA/7TGqW3LYEV1PyOtA00 0kjvE6aHxjfDTJs7OibXArQkABv0+/0MBJxke6bPTwEe3LIgjO6GuPvafgWkfqkse4 VmIx2McxDXknH7zOQkpJjB/JFRg50fo94EdFzmmVArzvvE9juAFrPBCZdeoUbwPC/c d8hgGtDYTbKGbiXPibAaRw9VmH96TVOs2UNXcras+aXgj2QVSxMG4U0k6WSX0dmLoW 1Qb3OKT3AOOdmlCjpj8WTqlPLpWYuurySvvlhQnCCKr4i1BenUqypVm2B+O+sQAB6a 0ZLfDSlO2vTQg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TgnFk4rDfz6tmv for ; Thu, 22 Feb 2024 23:03:06 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Re: [proof of concept] inline-special-block In-Reply-To: <87v86h4kza.fsf_-_@posteo.net> ("Juan Manuel =?utf-8?Q?Mac?= =?utf-8?Q?=C3=ADas=22's?= message of "Wed, 21 Feb 2024 20:32:09 +0000") References: <87msrudgcn.fsf@posteo.net> <8734tmmcnv.fsf@localhost> <87edd6ytiy.fsf@posteo.net> <87sf1mrpr6.fsf@localhost> <87a5nuyo4w.fsf@posteo.net> <87frxmrmjb.fsf@localhost> <875xyhzyzl.fsf@posteo.net> <87v86h4kza.fsf_-_@posteo.net> Date: Thu, 22 Feb 2024 22:03:04 +0000 Message-ID: <87cysoi2cn.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.66; envelope-from=maciaschain@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, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.56 X-Spam-Score: -7.56 X-Migadu-Queue-Id: 58FC55C302 X-Migadu-Scanner: mx11.migadu.com X-TUID: 1t/Zwl92MboP Juan Manuel Mac=C3=ADas writes: > Regarding the "optional parameters", there is nothing defined, although > I think they should be adapted to each backend. A possible use that > occurs to me: > > &foo[prelatex: [lorem] postlatex: {ipsum} html: style=3D"color:red;"]{bla= h blah} > > This should produce in LaTeX: > > \foo[lorem]{blah blah}{ipsum} > > and in HTML: > > blah blah Just to add some more ideas about parameters, I can also think of an "anonymous" variant that only supports "universal" arguments, independent of the backend and previously defined (and extensible by the user). For example: &_[:color red :smallcaps t :lang it :size small]{Lorem ipsum dolor} Aliases could also be defined for a set of arguments: #+OPTIONS: inlineblocks:(("myblock" :smallcaps t :color "red" :lang "fr")) &_[:myblock t]{Lorem ipsum dolor} etc. =3D=3D> latex: {\color{red}\scshape\foreignlanguage{french}{Lorem ipsum dol= or}} Universal arguments can also be added to a normal block along with each backend's own arguments: &foo[:color red :prelatex [bar]]{lorem ipsum dolor} =3D=3D> latex: {\color{red}\foo[bar]{lorem ipsum dolor}} and, of course, aliases could be combined with single arguments: &foo[:myblock t :prelatex [bar]]{lorem ipsum dolor} --=20 Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa