ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Command that does not give the expected result (Metafun)
Date: Tue, 11 Aug 2015 09:03:40 +0200	[thread overview]
Message-ID: <CACyK-er7_Z-Spw1QapUbWX5nUdVjpUaHPy6B6emrv=atw5FDdg@mail.gmail.com> (raw)
In-Reply-To: <55C90BAC.7040702@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1384 bytes --]

Hi Wolfgang,
I will follow your advice but I will try to understand, when I have the time
, the difference between
\unexpanded\def\ChapterCommand#1#2% et \def\ChapterCommand#1#2%.
Fabrice

2015-08-10 22:38 GMT+02:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:

> Fabrice Couvreur <fabrice1.couvreur@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
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3514 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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	other threads:[~2015-08-11  7:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09 11:27 Fabrice Couvreur
2015-08-09 13:40 ` Hans Hagen
2015-08-10  7:13   ` Fabrice Couvreur
2015-08-10 20:38     ` Wolfgang Schuster
2015-08-11  7:03       ` Fabrice Couvreur [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACyK-er7_Z-Spw1QapUbWX5nUdVjpUaHPy6B6emrv=atw5FDdg@mail.gmail.com' \
    --to=fabrice1.couvreur@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).