ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Does \Level2Command work?
Date: Thu, 29 Mar 2007 10:20:41 +0200	[thread overview]
Message-ID: <ECAE5BB7-A269-4509-8467-9022FBE11E3B@uni-bonn.de> (raw)
In-Reply-To: <20070329100223244374.17350a62@st.estfiles.de>


On Mar 29, 2007, at 10:02 AM, Steffen Wolfrum wrote:

> Hi,
>
> in one of Luigi's "Grid-keeping table"-mail I saw the term  
> "\setbox100". I didn't try that code, don't know what it means.
> But it gave me the idea: is it actually possible to use numbers in  
> defining command's names?
>
> Something like this ...
>
> \setuphead[Level2]
> [header=empty,page=yes,numbercommand= 
> \Level2Command,align=middle,alternative=paragraph,style= 
> \Level2Style,before={\strut\blank[42pt]},after={\blank[12pt]}]
> \setuphead[Level3]
> [header=empty,page=yes,numbercommand= 
> \Level3Command,align=middle,alternative=paragraph,style= 
> \Level3Style,before={\strut\blank[42pt]},after={\blank[12pt]}]
>
> ... looks much clearer than using the numbers written out in letters.
>
> Steffen

The command is \setbox, 100 is the argument to this command. This is  
pure \TeX, I think it could also be written as \setbox{100} (but I  
may be wrong here). In \TeX, numbers have a catcode which is  
different from letters, that's why they cannot normally be used in  
command words (they can, however, become control symbols). For more,  
see the TeXbook, chapter 3, or Eijkhout's wonderful TeX by Topic, ch. 2.

HTH

Thomas

  reply	other threads:[~2007-03-29  8:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-29  8:02 Steffen Wolfrum
2007-03-29  8:20 ` Thomas A. Schmitz [this message]
2007-03-29  8:54   ` Hans Hagen
2007-03-29 12:35   ` luigi scarso

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=ECAE5BB7-A269-4509-8467-9022FBE11E3B@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --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).