[NTG-context] Parallel output of source data

Procházka Lukáš Ing. LPr at pontex.cz
Tue Jul 3 08:52:25 CEST 2018


Hello,

I tried to \let shortcuts for \startcontentexport and \stopcontentexport, but Ctx run fails.

I guess this is a basic misunderstanding, but - why?

----
\unexpanded\def\startcontentexport{\dosingleempty\dostartcontentexport}

\def\dostartcontentexport[#1]%
{\iffirstargument
   \edef\contentexportfile{#1}%
   \else
   \let\contentexportfile\empty
   \fi
   \grabbufferdata[contentexport][startcontentexport][stopcontentexport]
}

\def\stopcontentexport{%
   \doifsomething{\contentexportfile}{\savebuffer[list=contentexport,prefix=no,file=\contentexportfile]}%
   \getbufferdata[contentexport]
}

\let\bX=\startcontentexport % <---- Use of these two "shortcuts" is not possible,
\let\eX=\stopcontentexport  % <---- I'm getting : ! TeX capacity exceeded, sorry [input stack size=10000]

\starttext

   A

   \startcontentexport[t~.out.mkiv]
     Hello!
     \startitemize
     \item Item
     \stopitemize
   \stopcontentexport

   B

   \bX[t2~.out.mkiv]
     Ahoj
   \eX

\stoptext
----

HSo how to define "shortcuts" properly?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.mkiv
Type: application/octet-stream
Size: 717 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180703/5f60a793/attachment.obj>


More information about the ntg-context mailing list