On 7/3/2018 8:52 AM, Procházka Lukáš Ing. wrote:
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?
impossible ... just define an extra grabbuffer


what has this to do with parallel texts

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to