[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] is there a macro to have backend-specific behavior?
From: |
Alan Schmitt |
Subject: |
[O] is there a macro to have backend-specific behavior? |
Date: |
Thu, 01 Feb 2018 10:58:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) |
Hello,
Is there a way to define a macro that has different behaviors depending
on export backend? I have macros that use the @@latex:foo@@ syntax, but
in that case I "foo" is supposed to be literal latex.
My use case is this one: I have a link to a custom id, and I want to
export it as [[#id]] in latex and [[file:file.org::#id]] for html
*before* link resolution happens (so that the custom id in the latex
export is substituted with the correct label).
Is this possible?
Thanks,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-12: 406.82, 2016-12: 404.42
signature.asc
Description: PGP signature
- [O] is there a macro to have backend-specific behavior?,
Alan Schmitt <=