From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: boldstyle for numbers in defineenumeration
Date: Fri, 06 Mar 2009 09:01:49 +0100 [thread overview]
Message-ID: <49B0D86D.5060504@wxs.nl> (raw)
In-Reply-To: <alpine.LNX.2.00.0903051501120.12354@ybpnyubfg.ybpnyqbznva>
Aditya Mahajan wrote:
> On Thu, 5 Mar 2009, Wolfgang Schuster wrote:
>
>>
>> Am 05.03.2009 um 20:19 schrieb Aditya Mahajan:
>>
>>> On Thu, 5 Mar 2009, Wolfgang Schuster wrote:
>>>
>>>>
>>>> Am 05.03.2009 um 19:48 schrieb Aditya Mahajan:
>>>>
>>>>>> The textcolor does not work. I have to put in in text field.
>>>>>> The example that works is:
>>>>> Hans: does it make sense to add text(style|color|command) and
>>>>> number(style|color|command) keys to enumerations? I could patch
>>>>> core-des.tex with these keys.
>>>>
>>>> Hi Aditya, if you do this, can you also integrate the headalign key
>>>> which is mentioned in core-des?
>>>
>>> What should headalign do?
>>
>>
>> It should control the alignment of the headtext.
>>
>> \setuplayout
>> [backspace=5cm,
>> leftmargin=4cm,
>> width=12cm]
>>
>> \definedescription
>> [description]
>> [location=margin,
>> width=\leftmarginwidth]
>>
>> \showframe
>>
>> \starttext
>>
>> \description{text} bla bla bla
>>
>> \description{longer text} bla bla bla
>>
>> %\setupdescriptions[description][headalign=flushright]
>> \setupdescriptions[description][text=\hfill]
>>
>> \description{text} bla bla bla
>>
>> \description{longer text} bla bla bla
>>
>> \stoptext
>
> Thanks. I first guess was
>
> \defineframed
> [framehead]
> [location=low,width=\leftmarginwidth,align=flushright,frame=off]
>
> \setupdescriptions[description][text=,location=command,headcommand=\framehead]
>
>
> but this does not work. You can also use, but it will be nice to have a
> headalign key.
>
> \setupdescriptions[description][command=\framehead]
>
> \description{text} bla bla bla
>
> \description{longer text} bla bla bla
>
> My only trouble with core-des is that it is ugly. It is an old module,
> and lot of features have been added in an ad-hoc manner with time. I
> hope that at some stage it will be rewritten in the new strc-* style.
sure, it's already different in strc but such 'upgrades' are rather
gradual since we want to keep compatibilitiy
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-03-06 8:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 20:11 Xan
2009-03-04 20:28 ` Aditya Mahajan
2009-03-05 15:04 ` Xan
2009-03-05 18:20 ` Aditya Mahajan
2009-03-05 18:39 ` Xan
2009-03-05 18:48 ` Aditya Mahajan
2009-03-05 19:13 ` Wolfgang Schuster
2009-03-05 19:19 ` Aditya Mahajan
2009-03-05 19:36 ` Wolfgang Schuster
2009-03-05 20:04 ` Aditya Mahajan
2009-03-06 8:01 ` Hans Hagen [this message]
2009-03-06 12:38 ` Xan
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=49B0D86D.5060504@wxs.nl \
--to=pragma@wxs.nl \
--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).