I'm aware of #+OPTIONS: tags:nil to have tags not be exported. I'd like them exported to LaTeX exports, but not ASCII exports. Is there a way to have options only apply to certain exports? Is there some other method to have ASCII export drop tags?

2 Answers
2

You can achieve what you want by advising the commands that serve as entry points for the different export back-ends offered by org-mode. For example, to tell org-mode to skip tags when exporting to ASCII, you can advise the command for exporting to ASCII (org-ascii-export-to-ascii) as follows:

Note that Emacs 24.4 introduces a new advice system which might replace the old system at some point in the future. Here is a modified version of the code above that makes use of the new advice system (use this version if you are already on Emacs 24.4 and want to future-proof your configuration):