From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 cH8YB/os4GUPiAAAqHPOHw:P1 (envelope-from ) for ; Thu, 29 Feb 2024 08:06:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cH8YB/os4GUPiAAAqHPOHw (envelope-from ) for ; Thu, 29 Feb 2024 08:06:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709190394; 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; bh=M3WA3IFUjXPKw1L62EzZsujheaGSkz6XzxlC6QX6mlo=; b=A8IL3jJqYJk7SHgl3CyMnDz8MlZnU3ngarXtbYrI+rb5iMaKNJGrrpg+67OmVjBvLBqLDT iwwTOlvPuvm9veWbUBeAWrIl1u0kbX2kuQR77iRiBFz+jeYQARd9NyGZrINnnkJ9YkEMSO Cu0Kdm/oieSjLvGFWI4CwU4noHfPsAZns6VLlMDiMA1NxvhbTzdz5I/wqRIKUIM06oT1++ IJfhyutBs8ARIWzymwgwBSNdqI04liXYcSEvOm/TlzfIwhNo434+5YpPvY1JiODGQielQ9 2OqWkfB+qfGM34fee6+1QcCUDE/SlBgVwCP3hWw0MP/38owowtXPbX+1UYDNPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709190394; a=rsa-sha256; cv=none; b=Asw6bBzTU5k5Fs6B1esoFu8wNxUMHtTmXGtGGTvEAnnSWsMDb7D1Bs6mD/XHO6HsAAOybN 6kT/EWtkmkW8EPy14NYclaR0YqWCrwkECrrATUjhMlc/4x+B7d1I3C3t6ulhhgn+ORGubB 8g8JVvuFpr4VHo/dt/+g0bMwDCQxvy0RgRdkPZAR5ROT+iTzy9BEZRrWDBBPPEUTjeM5VL nfgtkjnDa8TtPXgCzAmsDCpRQi4RI78XEaxDdmjQCOc63eAGsAAaPoTPwSkiHG6MFOuqlk 9d3A2gVPav/xhayY6ZJXCzYPNkzGh3wcqbD7sIMYLhfrrCoPsiWOgXVANx6w6Q== 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 EE24143B30 for ; Thu, 29 Feb 2024 08:06:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfaTx-0005zf-MW; Thu, 29 Feb 2024 02:05:29 -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 1rfaTl-0005xq-1P for emacs-orgmode@gnu.org; Thu, 29 Feb 2024 02:05:18 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfaTi-0003d5-Rb for emacs-orgmode@gnu.org; Thu, 29 Feb 2024 02:05:15 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rfaTe-0002u0-Vo for emacs-orgmode@gnu.org; Thu, 29 Feb 2024 08:05:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [proof of concept] inline language blocks Date: Thu, 29 Feb 2024 14:05:02 +0700 Message-ID: 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> <87le7dihaj.fsf@posteo.net> <87h6i1ifp7.fsf@posteo.net> <87wmqoohlr.fsf@posteo.net> <87le74noks.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <87le74noks.fsf@posteo.net> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: -5.29 X-Spam-Score: -5.29 X-Migadu-Queue-Id: EE24143B30 X-Migadu-Scanner: mx11.migadu.com X-TUID: 3mtSxqAWito2 Juan Manuel, I am not against optional arguments. The idea is to make the feature more flexible and convenient for domain-specific documents. I did not use square brackets in my example to concentrate on the use case of concise and clear markup. On 29/02/2024 06:42, Juan Manuel MacĂ­as wrote: > Max Nikulin writes: > >> #+options: custom-object(:type la :latex_element foreignlanguage >> :latex_pre "{latin}") > > mmm, I see it as not very flexible and perhaps too complicated for the user. Do not concentrate on \foreignlanguage. I am using it just because the thread was started from markup suitable for mixed-language texts. > the user should expect something like &foo{...} to produce \foo{...} or > ..., etc. The only difference is that there would > be an anonymous variant &_{...}. I do not try to dispute \foo and class="foo" as default behavior. I suggest to implement possibility to override default behavior of &foo{text} to \bar{text} and text. The same is applicable for anonymous objects &_[:latex_command bar :html_element bar]{text} > class in HTML HTML has a number of elements for semantic markup, e.g. , , , etc. I hope, they can be supported in addition to default .