[NTG-context] Command that does not give the expected result (Metafun)

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Aug 10 22:38:04 CEST 2015


> Fabrice Couvreur <mailto:fabrice1.couvreur at gmail.com>
> 10. August 2015 09:13
> Dear Hans,
> I tested without understanding what \unexpanded, and of course it works!
>
You can use ConTeXt’s \define command where you don’t have to think 
about \unexpanded etc., e.g.

\define[2]\ChapterCommand
   {\setbox\scratchbox\hbox to \leftmarginwidth{#1\hss}%
    \hskip-\dimexpr\leftmarginwidth+\leftmargindistance\relax
    \framed
      [background=titled,frame=off,offset=0pt]
      {\box\scratchbox
       \hskip\leftmargindistance
       #2}}

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150810/792eac60/attachment.html>


More information about the ntg-context mailing list