* Expansion of macros conditional on export type
@ 2016-05-27 10:03 Giacomo M
0 siblings, 0 replies; 4+ messages in thread
From: Giacomo M @ 2016-05-27 10:03 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/html, Size: 1263 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Expansion of macros conditional on export type
[not found] <e68e190f9062467895032baf9323e391@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-05-27 10:17 ` Eric S Fraga
2016-05-27 10:26 ` Giacomo M
[not found] ` <b07885246b7249cf8b3b1ff77e9db435@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
0 siblings, 2 replies; 4+ messages in thread
From: Eric S Fraga @ 2016-05-27 10:17 UTC (permalink / raw)
To: Giacomo M; +Cc: emacs-orgmode@gnu.org
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Expansion of macros conditional on export type
2016-05-27 10:17 ` Expansion of macros conditional on export type Eric S Fraga
@ 2016-05-27 10:26 ` Giacomo M
[not found] ` <b07885246b7249cf8b3b1ff77e9db435@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
1 sibling, 0 replies; 4+ messages in thread
From: Giacomo M @ 2016-05-27 10:26 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Il 27/05/2016 12:17, Eric S Fraga ha scritto:
>> 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}}})
>
Perfect! Actually I hadn't tried to combine them.
For chunks of text like institute affiliations, may I ask if you use
different BEGIN_EXPORT blocks or sth else?
Thanks a lot,
Giacomo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Expansion of macros conditional on export type
[not found] ` <b07885246b7249cf8b3b1ff77e9db435@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-05-27 11:08 ` Eric S Fraga
0 siblings, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2016-05-27 11:08 UTC (permalink / raw)
To: Giacomo M; +Cc: emacs-orgmode@gnu.org
On Friday, 27 May 2016 at 10:26, Giacomo M wrote:
> For chunks of text like institute affiliations, may I ask if you use
> different BEGIN_EXPORT blocks or sth else?
Depends. Most often a sequence of #+latex_header: lines as my eventual
target for export is almost always LaTeX for submission to journals.
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.94.1, Org release_8.3.4-869-gf2c421
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-27 11:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <e68e190f9062467895032baf9323e391@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-05-27 10:17 ` Expansion of macros conditional on export type Eric S Fraga
2016-05-27 10:26 ` Giacomo M
[not found] ` <b07885246b7249cf8b3b1ff77e9db435@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-05-27 11:08 ` Eric S Fraga
2016-05-27 10:03 Giacomo M
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).