[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] inline constant substitution
From: |
Grant Rettke |
Subject: |
Re: [O] inline constant substitution |
Date: |
Sun, 12 Oct 2014 20:00:29 -0500 |
Should a noweb-ref be expanded as imagined inside of a table for this case?
Eg pseudo code:
,----
| #+NAME: foo
| #+begin_src emacs-lisp
| 42
| #+end_src
|
|
| #+NAME: ns
| | n |
| |-------|
| | 1 |
| | 2 |
| | <<foo>> |
| | |
`----
On Sun, Oct 12, 2014 at 10:05 AM, Nicolas Goaziou
<address@hidden> wrote:
>
>
> Hello,
>
> Paul Rudin <address@hidden> writes:
>
>> Suppose I have:
>>
>> #+CONSTANTS: foo=42
>>
>> How can I make inline references to a constant on export in regular
>> text, rather than in a table?
>>
>> I want to be able to write something like:
>>
>> The value of foo is $foo
>>
>> in my org file, and then end up with:
>>
>> The value of foo is 42
>>
>> when I export to LaTeX.
>
> Constants are for tables only. You can use a macro instead:
>
> #+MACRO: foo 42
>
> The value of foo is {{{foo}}}.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
>
--
Grant Rettke
address@hidden | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson