From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Left justify numbers on left margin edge
Date: Sat, 8 Jul 2006 19:49:56 -0400 (EDT) [thread overview]
Message-ID: <Pine.WNT.4.63.0607081946280.788@nqvgln> (raw)
In-Reply-To: <6faad9f00607081606x1fbc8519n6943019300b67e22@mail.gmail.com>
On Sun, 9 Jul 2006, Mojca Miklavec wrote:
> On 7/7/06, David Arnold wrote:
>> All,
>>
>> Why is it I cannot get my numbers to abut up against the left margin
>> edge? They are always a few points indented.
>>
>> \setuplabeltext[question=]
>>
>> \defineenumeration
>> [question]
>> [text=\labeltext{question}]
>>
>> \setupenumerations
>> [question]
>> [location=left,
>> width=broad,
>> hang=1,
>> headcolor=green,
>> right=.,
>> way=bysection,
>> sectionnumber=no]
>>
>> \starttext
>>
>> \startquestion
>> An icon is a representation of an action or the name of a computer
>> program. Icons are frequently used in operating systems on several
>> computer platforms.
>> \stopquestion
>>
>> \stoptext
>
> It seems that you're reading my mind. I guess that it must be
> approximately the same reason as why I can't get
>
> Question Q1
> Question Q2
>
> With
> \defineenumeration
> [question]
> [text=Question Q]
> \startquestion
> Why are there so many spaces?
> \stopquestion
> I get Question Q 1 (but I can't find a way to get Q1 as is possible in
> sections - the space seems to be there by default).
>
> I thought that
> headcommand=\myquestioncommand
> (command spotted when I took a look at texshow, it's not in the manual) and
> \def\myquestioncommand#1{Question Q#1}
> would solve that, but I don't see any evidence of \myquestioncommand
> ever being called/executed.
>
> I would be very happy if this issue was solved as well. Perhas a
> left=,right=
> pair of keywords could solve the problem (left= and right= surrounding
> the number; but then we would also have to surround the label with
> something as well), where the default of left= would be a space.
> \[whatever]commad= could also solve the problem.
>
left=Q works. The label is
<text><space><left><number><stopper><right>, so this works
\defineenumeration
[question]
[text=Question,
left=Q]
\starttext
\startquestion[abc]
Why are there so many spaces in \in[abc]?
\stopquestion
\stoptext
next prev parent reply other threads:[~2006-07-08 23:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-07 19:27 David Arnold
2006-07-08 23:06 ` Mojca Miklavec
2006-07-08 23:49 ` Aditya Mahajan [this message]
2006-07-09 0:21 ` Mojca Miklavec
2006-07-09 1:00 ` Aditya Mahajan
2006-07-11 9:10 ` Hans Hagen
2006-07-08 23:59 ` Aditya Mahajan
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=Pine.WNT.4.63.0607081946280.788@nqvgln \
--to=adityam@umich.edu \
--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).