mailing-list for TeXmacs Users

Text archives Help


[TeXmacs] Help: why unquote?


Chronological Thread 
  • From: Sam Liddicott <address@hidden>
  • To: address@hidden
  • Subject: [TeXmacs] Help: why unquote?
  • Date: Sat, 19 May 2012 10:10:26 +0100

Of these 4 macros, the last macro "nf-chunk-id" requires the quasi...unquote or I get the error "bad merge" if I try to invoke:
<nf-chunk-id|NAME|TAG|N>

I can't work out why. If I replace the call to nf-id with a call to another merge (as it used to be) then it works fine.

please help! 

These macros are part of a set to provide a fake-page environment which can be used when writing a document that talks about writing documents. It allows one to have a fake page or fake pages, with valid links and references between them, which under-go revisions within the narrative, but each revision gets it's own namespace.

The macros here are helpers for packages which will be fake-page -aware, so that they can prefix their id's with the fake-page namespace.

If found it much easier to do this when demonstrating literate programming than using render-only fake literate macros.

thanks

<assign|join-args|<xmacro|x|<with|join|<macro|i|n|<if|<equal|<arg|n>|1>|<arg|i>|<merge|<value|joiner>|<arg|i>>>>|joiner|<arg|x|0>|<map-args|join|merge|x|1>>>>

<assign|ns-id|<xmacro|x|<quasi|<join-args|:|<unquote*|<quote-arg|x>>>>>>

<assign|nf-id|<xmacro|x|<if|<and|<provides|fake-page-base-name>|<greater|<length|<value|fake-page-base-name>>|0>>|<quasi|<ns-id|<value|fake-page-base-name>|<merge|<unquote*|<quote-arg|x>>>>>|<quasi|<merge|<unquote*|<quote-arg|x>>>>>>>

<assign|nf-chunk-id|<macro|name|tag|n|<quasi|<nf-id|code|<unquote|<merge|<arg|tag>|-|<arg|name>|-|<arg|n>>>>>>>


  • [TeXmacs] Help: why unquote?, Sam Liddicott, 05/19/2012

Archive powered by MHonArc 2.6.19.

Top of page