ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Lance Larsen" <lance.c.larsen@gmail.com>
To: <ntg-context@ntg.nl>
Subject: Re: Formatting enumerations in MKIV
Date: Wed, 1 May 2013 07:24:57 -0700	[thread overview]
Message-ID: <518125ba.0269440a.3cb0.fffff977@mx.google.com> (raw)
In-Reply-To: <mailman.1.1367402401.12673.ntg-context@ntg.nl>

Thankyou Wolfgang. This was what I was missing. I think I was not
understanding the purpose of the width parameter.

-Lance


> Lance Larsen <lance.c.larsen@gmail.com>:
> I am trying to configure an enumeration in MKiv, but it is not clear 
> how to set some of the formatting. I need to be able to control the 
> distance between the title and the enumeration text, but parameters 
> such as 'inbetween' seem to have no effect. Is there a parameter I can 
> use to set the spacing. Also, how do I find out what parameters are 
> available. I tried to figure out where defineenumeration is defined in 
> the lua or mkiv files without luck.
> 
> \starttext
> 
> \defineenumeration[ref][alternative=left,inbetween=\blank]
> 
> \ref Testing \par
> \ref Testing \par
> 
> \stoptext

Your inbetween setting is ignored because \blank is a command to add
vertical space but the text of your enumeration is on the same line as the
content and you need a horizontal space.

To control the spacing you can change the width of the text with the ?width?
key and the distance between the text and the content with the ?distance?
key.

\starttext
\defineenumeration[ref][alternative=left,width=2cm,distance=5mm]
\startref Testing \stopref
\startref Testing \stopref
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


       reply	other threads:[~2013-05-01 14:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1367402401.12673.ntg-context@ntg.nl>
2013-05-01 14:24 ` Lance Larsen [this message]
2013-05-01  0:10 Lance Larsen
2013-05-01  7:09 ` Wolfgang Schuster

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=518125ba.0269440a.3cb0.fffff977@mx.google.com \
    --to=lance.c.larsen@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).