[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cannot expand macros through included org file
From: |
reza |
Subject: |
Cannot expand macros through included org file |
Date: |
Wed, 15 Feb 2023 20:34:51 +0000 |
Hi List
I have the following setup:
In "template.org" is the structure of a report defined which I need to
generate for several years, e.g:
#+TITLE: Report
* My headline
#+BEGIN_SRC bash :file log_{{{year}}}.csv
./get_log_file --start={{{year}}}-01-01 --end={{{year}}}-12-31
#+END_SRC
#+BEGIN_SRC python
log = pd.read_csv("log_{{{year}}}.csv")
#END_SRC
Now I want to generate a report for different years, my approach was now
to have a file "report_2019.org" like:
#+TITLE: Report 2019
#+MACRO: year 2019
#+INCLUDE: "template.org" :lines "2-"
But that does not seem to work. It looks like the macro expansion does
not happen for included content. Is this a bug or correct behavior, what
would be the approach to not repeat the content for several reports?
Thanks for your inputs.
Cheers,
Reza
OpenPGP_0xC375C6AF05125C52.asc
Description: application/pgp-keys
OpenPGP_signature
Description: PGP signature
- Cannot expand macros through included org file,
reza <=
- Re: Cannot expand macros through included org file, Ihor Radchenko, 2023/02/15
- Message not available
- Re: Cannot expand macros through included org file, reza, 2023/02/15
- Re: Cannot expand macros through included org file, Ihor Radchenko, 2023/02/15
- Message not available
- Re: Cannot expand macros through included org file, reza, 2023/02/15
- Re: Cannot expand macros through included org file, Ihor Radchenko, 2023/02/17
- Message not available
- Re: Cannot expand macros through included org file, reza, 2023/02/17
- Re: Cannot expand macros through included org file, Nick Dokos, 2023/02/15