From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mGC4A4VaZGAM6wAAgWs5BA (envelope-from ) for ; Wed, 31 Mar 2021 13:18:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IARROoRaZGCiTQAAB5/wlQ (envelope-from ) for ; Wed, 31 Mar 2021 11:18:28 +0000 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 51D7F1CB3D for ; Wed, 31 Mar 2021 13:18:28 +0200 (CEST) Received: from localhost ([::1]:60220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRYri-0000QJ-Cv for larch@yhetil.org; Wed, 31 Mar 2021 07:18:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRYrB-0000Oo-Jx for emacs-orgmode@gnu.org; Wed, 31 Mar 2021 07:17:53 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:35397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRYr8-0000vF-IQ for emacs-orgmode@gnu.org; Wed, 31 Mar 2021 07:17:53 -0400 Received: from localhost ([::ffff:41.202.241.58]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E1EA.0000000060645A5B.000016F7; Wed, 31 Mar 2021 04:17:47 -0700 Date: Wed, 31 Mar 2021 14:04:49 +0300 From: Jean Louis To: Org mailing list Subject: Re: How to expand macro in LaTeX export? How to use different options per export type? Message-ID: Mail-Followup-To: Org mailing list References: <87lfa3hc7h.fsf@ucl.ac.uk> <87zgyjfvov.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87zgyjfvov.fsf@ucl.ac.uk> User-Agent: Mutt/2.0.6 (2021-03-06) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617189508; 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=awulvnfjC3cBFx9MyNIf5PId/S1VaAvsrZiy+PUmn4U=; b=pmO8PhSbXYNtdOn5VLF+9s3EL05e0HziuK3UpIR5586ziBvJqxSP6wLysRjqgEinchhDwT 7N/K0HibGZvRKZPVA8wpptZ5lM5ABWMsUMhk5MUnPhKLtsPESjeBSUcgmVNQivwTHHHzVa Wl2uz+Mq25eFDmw2/hIrLpShspJjD5AwesZTKAl5x6pkKr30MIJPD3wv89EuckhGXnt5Ey gh0vzRL4orm40MtroQ/92YQLKaUI8H3jeWPNKBJKptMYjn1LBMcwUebceClv34VElC5AoF 8Ywl5mRLYgc/IHGphj8IHCqxkBrgc8zYdF15+jqm0MIOWc7c7R7TDjF4bUfmfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617189508; a=rsa-sha256; cv=none; b=gwNcId0OmkONcev8bKXC9e01r+fmkhgZhvWJlN/mvbPef3ee7zKVmXKokn58FGJx09I28w fKGzBO6YdJ880nO1kEYQodi/Awm4LXhjJ7IL6Qdharby/yvc4xWwiTkUVertR9pCrqTMfo QlAW74tTGcEb+qWxSfsGkvdqErgwQYgsIdjT2u2Hq+xtYUb3LNmuJBgm0AtGXyCVstr6HH CTnEhatbJvXhiwVU8hv9wGFFhoxOXrQ788lICDYdQpELydJBBjsq7Ar75SW3YPKnbZT2/x APPRW93rrYQ6w39WfDzUcP0yY1MRf7yZFRtrVtM0B1rCikx9usXzGz2eifVJ1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 51D7F1CB3D X-Spam-Score: -0.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: MPkHRTvP1A+q * Eric S Fraga [2021-03-31 13:46]: > On Wednesday, 31 Mar 2021 at 13:29, Jean Louis wrote: > > By doing this: > > > > @@latex:\def\version{@@ {{{version}}} @@latex:}@@ > > > > Then {{{version}}} will get expanded in the document, right? As I have > > hidden then only tags surrounding {{{version}}}. > > Yes. OK yet it is not doing what I need. The LaTeX definition of new command is there because I cannot expand macro in LaTeX export block. But nothing from that definition helps me in HTML. Another solution could be if a program in BEGIN_SRC block could generate Org inline, so that it gets processed after generation. Maybe I could verify if export backend is HTML and then produce lines: OPTION specific for HTML and NOT produce LaTeX related lines or if LaTeX export OPTION specific for LaTeX and NOT produce LaTeX related lines Would that decision be possible in source block? -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns