ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Enumerations and numbered labels
Date: Thu, 12 Jul 2007 15:39:47 +0200	[thread overview]
Message-ID: <115224fb0707120639u37c3df11lbf0f4291f01bb8b1@mail.gmail.com> (raw)
In-Reply-To: <EEFA9B9E-7768-4D43-BF6E-970E5A4EB226@cs.dal.ca>

2007/7/11, Norbert Zeh <nzeh@cs.dal.ca>:
> Ah, excellent.  Also thanks to Wolfgang for his earlier comment.  I
> had looked at location=left before but was thrown off by the
> excessive distance between the heading and the text...until I
> discovered the meaning of width=fit.  As you can see, I'm new to
> context.
>
> Has anybody looked into the bug (?) with numbered labels?
>
> Cheers,
> Norbert

\unprotect

\def\do@@label[#1][#2]%
  {\numberparameter{#1}\c!before
   \numberparameter{#1}\c!command
     {\doattributes{\@@thenumber{#1}}\c!headstyle\c!headcolor
        {%\dotextprefix{\numberparameter{#1}\c!text}%
         \getvalue{\e!next#1}[#2]}}%
   \numberparameter{#1}\c!after}%

\protect

\definelabel[frage][text=Frage,location=inmargin]

\starttext

\frage text

\stoptext

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


      reply	other threads:[~2007-07-12 13:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-10 10:45 Norbert Zeh
2007-07-10 11:38 ` Wolfgang Schuster
2007-07-11  7:39 ` Aditya Mahajan
2007-07-11  9:18   ` Norbert Zeh
2007-07-12 13:39     ` Wolfgang Schuster [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=115224fb0707120639u37c3df11lbf0f4291f01bb8b1@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).