![]() ![]() It just does not happen where it would matter. I added the last line for debugging, to make sure that the replacement does happen properly (it does) in normal context. It turns out that macros are expanded in certain keywords, but not in the #+OPTIONS keyword. If you add the above to your file and try exporting, everything works, except that you still get a TOC even in ascii export. This is a modified version of a similar macro that I cribbed from collection. That means that the only thing needed in the Org mode file to take advantage of this capability is the modified #+OPTIONS line: #+OPTIONS: toc: And since we are making changes to the init file, we are going to add the macro definition to it as well, so that it will always be available for every Org mode file. Instead, we are going to change the global value of the org-export-options-alist variable in the init file. ![]() The Org mode file will not need the code blocks because we are not going to advise the function. ![]() This answer is really along the same lines that the answer in the executive summary follows, but it is a bit more streamlined to make it easier for a new Emacs user to use. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |