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 <yanta...@posteo.net> wrote: > Samuel Wales <samolog...@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