IncludeFromSelfPage

Testing to include from the same page as the location of the include statement


Also see IncludeFromSelfPage2

Now I try the directive.

(:include IncludeFromSelfPage#desc#desc-end:)

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.

It doesn't work using {$Name} either. (works as of 2.2.0)

(:include {$Name}#desc#desc-end:)

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.


Below is the paragraph that will be extracted.

[[#desc]]
This is a paragraph starting with the label [@desc@] and ending with the paragraph [@desc-end@] in page [[Test/IncludeFromSelfPage]].
[[#desc-end]]

%comment% [=
[[#a]] Some text... [[#b]]
=]

This is a paragraph starting with the label desc and ending with the paragraph desc-end in page IncludeFromSelfPage.

[[#a]] Some text... [[#b]]


Comments

Rather than using include, wouldn't it make more sense to define "a macro" that was the target (not sure if this feature exists in any form in PmWiki).

So you might do something this:

  %definemacro% name = fred, content = { blah blah blah }

and then wherever you want the text to appear, just put in %fred% ...

NeilHerber January 21, 2005, at 07:41 AM

Peak memory: 1,500,168 bytes