emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* INCLUDE directives in new org-mode
@ 2013-05-07  2:14 Wiskey 5 Alpha
  2013-05-07  2:21 ` OSiUX
  2013-05-07 14:14 ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Wiskey 5 Alpha @ 2013-05-07  2:14 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

Hello all,
   I am trying to use the #+INCLUDE directives to have template information
for a series of orgmode files that I want to export.  Prior to upgrading to
v8, the below minimal example was working.   But as of the upgrade, any
text in an included file is just copied in verbatim.

--- foo.org

#+INCLUDE: date.org

* this is a test

--- date.org
{{{date(%d %b %Y)}}}

When I export foo.org using the odt exporter, the date does not show, but
it used to in previous versions.  Is there something I need to do to the
syntax of the include ?

-Tim

[-- Attachment #2: Type: text/html, Size: 867 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: INCLUDE directives in new org-mode
  2013-05-07  2:14 INCLUDE directives in new org-mode Wiskey 5 Alpha
@ 2013-05-07  2:21 ` OSiUX
  2013-05-07 14:14 ` Nicolas Goaziou
  1 sibling, 0 replies; 6+ messages in thread
From: OSiUX @ 2013-05-07  2:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

El lun, 06 may 2013, Wiskey 5 Alpha decía:

>    Hello all,
>       I am trying to use the #+INCLUDE directives to have template
>    information for a series of orgmode files that I want to export.  Prior to
>    upgrading to v8, the below minimal example was working.   But as of the
>    upgrade, any text in an included file is just copied in verbatim.
> 
>    --- [1]foo.org
> 
>    #+INCLUDE: [2]date.org

The new syntax:

     #+INCLUDE: "date.org"

-- 

::

  Osiris Alejandro Gomez (OSiUX) osiux@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: INCLUDE directives in new org-mode
  2013-05-07  2:14 INCLUDE directives in new org-mode Wiskey 5 Alpha
  2013-05-07  2:21 ` OSiUX
@ 2013-05-07 14:14 ` Nicolas Goaziou
  2013-05-09  0:04   ` Tim
  2013-05-09  0:14   ` Tim
  1 sibling, 2 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2013-05-07 14:14 UTC (permalink / raw)
  To: Wiskey 5 Alpha; +Cc: emacs-orgmode

Hello,

Wiskey 5 Alpha <wiskey5alpha@gmail.com> writes:

>    I am trying to use the #+INCLUDE directives to have template information
> for a series of orgmode files that I want to export.  Prior to upgrading to
> v8, the below minimal example was working.   But as of the upgrade, any
> text in an included file is just copied in verbatim.
>
> --- foo.org
>
>
> #+INCLUDE: date.org
>
>
> * this is a test
>
> --- date.org
> {{{date(%d %b %Y)}}}

You want:

   {{{time(%d %b %Y)}}}

{{{date}}} is used to refer to #+DATE: value, but there is none in your
example.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: INCLUDE directives in new org-mode
  2013-05-07 14:14 ` Nicolas Goaziou
@ 2013-05-09  0:04   ` Tim
  2013-05-09  0:14   ` Tim
  1 sibling, 0 replies; 6+ messages in thread
From: Tim @ 2013-05-09  0:04 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

>> #+INCLUDE: date.org
   I changed this to #+INCLUDE: "date.org"
>>
>>
>> * this is a test
>>
>> --- date.org
>> {{{date(%d %b %Y)}}}
>
>You want:
>
>   {{{time(%d %b %Y)}}}
   I made this change as well, however the same results.  Any thing in the included file is copied verbatim...


-Tim

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: INCLUDE directives in new org-mode
  2013-05-07 14:14 ` Nicolas Goaziou
  2013-05-09  0:04   ` Tim
@ 2013-05-09  0:14   ` Tim
  2013-05-09  6:04     ` Nicolas Goaziou
  1 sibling, 1 reply; 6+ messages in thread
From: Tim @ 2013-05-09  0:14 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

At Tue, 07 May 2013 16:14:19 +0200,
Nicolas Goaziou wrote:
> 
> Hello,
> 
> Wiskey 5 Alpha <wiskey5alpha@gmail.com> writes:
> 
> >    I am trying to use the #+INCLUDE directives to have template information
> > for a series of orgmode files that I want to export.  Prior to upgrading to
> > v8, the below minimal example was working.   But as of the upgrade, any
> > text in an included file is just copied in verbatim.
> >
> > --- foo.org
> >
> >
> > #+INCLUDE: date.org
> >
> >
> > * this is a test
> >
> > --- date.org
> > {{{date(%d %b %Y)}}}
> 
> You want:
> 
>    {{{time(%d %b %Y)}}}
> 
> {{{date}}} is used to refer to #+DATE: value, but there is none in your
> example.

One more piece of information.  If I move the #+INCLUDE: directive down under a headline, then the time directive is converted.  However I am trying to import this /above/ the first headline.  Is that possible ?

--
-Tim

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: INCLUDE directives in new org-mode
  2013-05-09  0:14   ` Tim
@ 2013-05-09  6:04     ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2013-05-09  6:04 UTC (permalink / raw)
  To: Tim; +Cc: emacs-orgmode

Hello,

Tim <wiskey5alpha@gmail.com> writes:

> At Tue, 07 May 2013 16:14:19 +0200,
> Nicolas Goaziou wrote:
>> 
>> Hello,
>> 
>> Wiskey 5 Alpha <wiskey5alpha@gmail.com> writes:
>> 
>> >    I am trying to use the #+INCLUDE directives to have template information
>> > for a series of orgmode files that I want to export.  Prior to upgrading to
>> > v8, the below minimal example was working.   But as of the upgrade, any
>> > text in an included file is just copied in verbatim.
>> >
>> > --- foo.org
>> >
>> >
>> > #+INCLUDE: date.org
>> >
>> >
>> > * this is a test
>> >
>> > --- date.org
>> > {{{date(%d %b %Y)}}}
>> 
>> You want:
>> 
>>    {{{time(%d %b %Y)}}}
>> 
>> {{{date}}} is used to refer to #+DATE: value, but there is none in your
>> example.
>
> One more piece of information. If I move the #+INCLUDE: directive down
> under a headline, then the time directive is converted. However I am
> trying to import this /above/ the first headline. Is that possible ?

Probably not if your Org version is below 8.0.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-09  6:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07  2:14 INCLUDE directives in new org-mode Wiskey 5 Alpha
2013-05-07  2:21 ` OSiUX
2013-05-07 14:14 ` Nicolas Goaziou
2013-05-09  0:04   ` Tim
2013-05-09  0:14   ` Tim
2013-05-09  6:04     ` Nicolas Goaziou

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).