Timeline for How to include other .org files programmatically (ie not from main .org file)?
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 3, 2023 at 17:47 | comment | added | Garid | Thank you for this | |
| May 16, 2021 at 16:44 | comment | added | hraban | Thanks for this, it has helped answer some questions I didn't know I had. | |
| Jul 21, 2016 at 12:40 | history | edited | Kaushal Modi | CC BY-SA 3.0 | add syntax highlighting |
| Jan 16, 2015 at 18:13 | comment | added | rasmus | I updated. I can never get used to stackexchange interpreting RET as submit for these things. | |
| Jan 16, 2015 at 18:12 | comment | added | gsl | Thank you for the helpful clarification. MACROs are indeed essential. | |
| Jan 16, 2015 at 18:08 | comment | added | rasmus | I haven't studied this much so take this with a grain of salt. INCLUDEd files are never collected. They are just expanded in the file. See org-export-expand-include-keyword which is called from org-export-as before the file is parsed. For some backends, it is possible to insert e.g. preambles ex post, e.g. ox-html, or org-latex-classes say, but that won't get you macros. Some variables can be set via org-publish-project-alist, e.g. #+OPTIONs, but again macros are expanded earlier than that. | |
| Jan 16, 2015 at 16:37 | vote | accept | gsl | ||
| Jan 16, 2015 at 16:37 | comment | added | gsl | Yes, I read it and tested it. It is very helpful. I learned a lot, too. It is not that I am against coding, it was just a curiosity, since org-mode has so many hidden aspects. In the question I was wondering if there were some org-mode built-in variables (I guess list?) that would help take care of my use-case without resorting to much coding. But your code does fulfil the question. Thank you very much for it. | |
| Jan 16, 2015 at 16:04 | comment | added | rasmus | Did you read the code? You can make it very compact by hardcoding everything. But I'd rather be verbose and allow for some limited flexibility (the posted code is not very flexible, actually). | |
| Jan 16, 2015 at 15:55 | comment | added | gsl | I am guessing from the answer that you do not think it is possible to do it without much coding (and I can't believe how fast you were able to code all this). I already upvoted the answer. Let me wait a few hours, and I will accept it as solving my question. Thank you so much for all the code. | |
| Jan 16, 2015 at 15:37 | history | answered | rasmus | CC BY-SA 3.0 |