[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Expansion of macros conditional on export type
From: |
Eric S Fraga |
Subject: |
Re: [O] Expansion of macros conditional on export type |
Date: |
Fri, 27 May 2016 11:17:53 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (gnu/linux) |
> I know one way would be to use @@latex: ... @@ w/ ascii counterpart
> each time, but I would rather envision a single macro, which then gets
> defined in different way depending on the export, in order to reduce
> redundancy.
You can put all the different alternatives together? I do the following
for degrees Celsius:
#+macro: degc @@odt:°C@@@@latex:\(^{\circ}\)C@@
Looks ugly but I don't have to look at it often. In text, I simply have
{{{degc}}}.
(minor aside: I wish macros had been defined to be used with [[[degc]]]
instead as much easier to type than {{{degc}}})
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.94.1, Org release_8.3.4-869-gf2c421
- Re: [O] Expansion of macros conditional on export type,
Eric S Fraga <=