emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FR] Allow to #+include files verbatim without any processing (was:


From: Samuel Wales
Subject: Re: [FR] Allow to #+include files verbatim without any processing (was: Have export treat file: paths in INCLUDED file relative to the INCLUDING file's dir)
Date: Tue, 4 Apr 2023 17:16:18 -0700

ah thanks.  i didn't mean to require specifying the current file.
that would be brittle to renaming hte file.  i was thinking maybe i
could use nil or some macro trick or a new feature of include to just
say current file.  not a pressing need though.

On 4/4/23, Ihor Radchenko <yantar92@posteo.net> wrote:
> Samuel Wales <samologist@gmail.com> writes:
>
>> off topic, but is it possible to leverage such a default into being
>> able to include a paragraph [or a section] from the current file?
>> istr this required specifying both dir [fixed with this default] and
>> the file basename.
>
> You can just include the same file.
>
> For example, try the following "1.org" file:
> ----
> #+include: "./1.org::*Heading" :only-contents t
> * Heading
> Text.
> ----
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]