From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id QC0sG3m2WmZqCQEAA41jLg (envelope-from ) for ; Sat, 01 Jun 2024 07:49:45 +0200 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 INlQFXm2WmZ7qQAA62LTzQ (envelope-from ) for ; Sat, 01 Jun 2024 07:49:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717220985; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Sde0/FuuUe9O0v7S8jyObgsMe4sc5Gmi5RJcARED360=; b=V9g+p/dpYkZQP6F2wbxRh795/COV972SZD1AFFOxvDXMgOl+rlXDtOWOB3Dcr+OYb6WOFn ie/+L0lCpkWrORlkOpN6PY3TIsqCLLVpcOqY6hHMejkGf6hf4Qbi30+VFSOt6iieBdmyun duhIG2s7s4N4J3s1fJpGHSqkdSsEvzROOYBy+nkQTtanoR6gBfqkxDC7L6Fd4LPbeNmD5T HYZjBdGmKQlwccmAAPjJIzMMiWkcMGmZZ5e9TaJ3xD+HjW0AHJb+7++Tg9PY5FVgL80Vd9 c6avmU6UEdE7Qn5MhmaoQDIsRHgI9E6lXCAzi5H/6HCbUBpktXc/y6VtI2JUSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717220985; a=rsa-sha256; cv=none; b=BE/OBm8KNAbKaNkGQAwm3JfT6sRgGAEHcaPEr4vfw+I1v59GiE4ds9J8caxBjjI9j/NqBJ /NWak1RGjuqFNeYUQAX3ma3rbITNSXBtnviUiJrEeRpnqkHiOEEyBK6rAeTB1PxZGhHZ/u xHBALkWaN93M49ql/R3a/ARfgNf9cITL5MI5KcstsLVBHecpNGEIcqMJDoNDvEQhJYMhK+ K6bstePbnl7YUIo/MtuO9isqAE0QYi3AqpNxEfj48jHeTa5Ba1BmpTpNHZ3iudpGutaEmJ TxPmXXrYGc6O3RpXktyfuuIwupjogIqnw5l/ttMlE0MfuaiWi3ZTZW8u0cw2KA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" 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 0DB413C0E1 for ; Sat, 01 Jun 2024 07:49:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDHbe-0004uI-F3; Sat, 01 Jun 2024 01:48:42 -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 1sDHbb-0004uA-Hl for emacs-orgmode@gnu.org; Sat, 01 Jun 2024 01:48:39 -0400 Received: from k-7.ch ([185.31.100.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDHbZ-0004Rp-Nw for emacs-orgmode@gnu.org; Sat, 01 Jun 2024 01:48:39 -0400 Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 28C6CE810E for ; Sat, 1 Jun 2024 07:48:31 +0200 (CEST) From: =?utf-8?Q?S=C3=A9bastien_Gendre?= To: emacs-orgmode Subject: Using Org-mode macros as LaTeX macros User-Agent: mu4e 1.12.1; emacs 29.3 Date: Sat, 01 Jun 2024 07:48:29 +0200 Message-ID: <87v82tkyc2.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch 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, 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: -5.45 X-Spam-Score: -5.45 X-Migadu-Queue-Id: 0DB413C0E1 X-Migadu-Scanner: mx11.migadu.com X-TUID: hk/eqi2wG3bJ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable TL;DR: How can I use the Org-mode macros as LaTeX macros inside an export LaTeX bloc=C2=A0? Hello, In a document I write for my school, using Org-mode, I have defined a Org-mode macro. Named "orga" (for organization) and who have the name of my school as value. Example: #+MACRO: orga School Name It's very useful to re-use the name of my school in the entire document. And I can also re-use the title, author name, etc, who are defined at the top of my Org-mode document with "#+TITLE:", "#+AUTHOR:", etc. But my school ask for a special title page in the PDF export, with a specific design. Something very different from what I get by default with an Org-mode to LaTeX/PDF export. For now, I have disabled the auto title generation, with an "#+OPTIONS: title:nil". And I created an export LaTeX bloc at the top of my Org document. In this bloc, I can make a custom title page in LaTeX and export to a PDF who have the design requested by the school. Example: #+begin_export latex \begin{titlepage} Some custom LaTeX here=E2=80=A6 \end{titlepage} #+end_export But, I cannot use Org-mode macros inside this export LaTeX bloc. If I write "{{{title}}}" in this bloc, it is exported into LaTeX with no Org-mode macro substitution. I also tried to define a LaTeX macros, that use the Org-mode macro value, with "#+LATEX_HEADER:" like this: #+LATEX_HEADER: \newcommand{\orga}{{{{orga}}}} But the result in the LaTeX export file is: "\newcommand{\orga}{{{{orga}}}}". And not "\newcommand{\orga}{School Name}". No Org-mode macro substitution. How can I use the Org-mode macros as LaTeX macros inside my export LaTeX bloc=C2=A0? I have searched on the web, but didn't success to found a solution. Best regards =2D------ Gendre S=C3=A9bastien --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmZati0LHHNlYkBrLTcu Y2gACgkQtYb3x3I54p6HjxAAsx1hYp85peghM2egh5xC7P2p/XNjJXRV35MlqlHY XDjN4mpvNKKIpMrGmY4Y/km6MqNd/inqrGvMji+pobuXp/h0VkXVX50X8u+dxjW8 izRmbUE/KycJ0RRL+5LwJGtwdveunjw29eOy3MD4JClaCIMIGNa+qJfXF6LZ0OEd UY3ORT6y2vryVp7xthS0OKlP5/Rpx4a0urfZdHGEC5GjY0x+rc3CfV2IFRIxqlg7 anWvN0gsTJD8KdrY29XxpWloIjP6pSpA9kr48L9NlGZj6gu840viOiELNLzIVdEO gx0suoCyVabp8iSqAFyCJhE98+YnubXLYmxVb/zvJVYapP5NRRAESF4LSic2LZJC 41NadBHFpMGWCn8XcaGdkQUGqcC6xdnZT+GNZl7BeY2YouAhZ8q8fa/SjbZQx04e b04wAIosX+Vc3fxJsyLwqs50WMpG/BBvW2O0yAfAj6mmtBRph59y+uMjJ1Q1u5Yt UPqANO/av+VGzpvTYPa397s3sLDrfLbEBePiAOIyuXF9q4+xtoG0289QJ1dDD6gH IjNFDETqDm5h4NxxH5bbWE0GC3tclD6RGzH5qU88tWn6n22+adCPFchI2jqptaj7 jHLAn4HdOAilAEHah/I/CZfSve6vff1yPSsiDptQbQ1EVgnCp1/RoVNzksEw/tTI Umk= =7Mev -----END PGP SIGNATURE----- --=-=-=--