On Wed, Aug 25 2010, Hans Hagen wrote:

> \definetyping[LUA]
> \setuptyping[LUA][option=LUA,escape={/btex,/etex}]
> 
> Hopefully you wikify this

Hello Hans,

I don't know what to wikify, because I don't understand what is supposed to
work and what is not. Here another example with strange behaviour:

\startbuffer[typefile-test]
btex-etex:  // /btex \em sometex /etex
xxx-yyy:    // XXX \em sometex YYY
zzz:        // ZZZ \em sometex
\stopbuffer
\savebuffer[typefile-test][typefile-test]
\definetyping[LUA]

\starttext
\section{file=zzz}
\start
\setuptyping[file][option=LUA, escape=ZZZ]
\typefile{typefile-test} % problem here
\stop

\section{file=zzz, lua=xxx-yyy}
\start
\setuptyping[file][option=LUA, escape=ZZZ]
\setuptyping[LUA][option=LUA, escape={XXX,YYY}]
\startLUA
btex-etex:  // /btex \em sometex /etex
xxx-yyy:    // XXX \em sometex YYY
zzz:        // ZZZ \em sometex
\stopLUA
\typefile{typefile-test} % problem here
\stop

\section{file=zzz, lua=btex-etex}
\start
\setuptyping[file][option=LUA, escape=ZZZ]
\setuptyping[LUA][option=LUA, escape={/btex,/etex}]
\startLUA
btex-etex:  // /btex \em sometex /etex
xxx-yyy:    // XXX \em sometex YYY
zzz:        // ZZZ \em sometex
\stopLUA
\typefile{typefile-test} % problem here
\stop

\section{file=zzz, lua=zzz}
\start
\setuptyping[file][option=LUA, escape=ZZZ]
\setuptyping[LUA][option=LUA, escape=ZZZ]
\typefile{typefile-test} % problem here
\stop

\section{file=zzz, lua=zzz}
\start
\setuptyping[file][option=LUA, escape=ZZZ]
\setuptyping[LUA][option=LUA, escape=ZZZ]
\startLUA
\stopLUA
\typefile{typefile-test} % now it works
\stop

\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to