HI all, I have a rather long sequence of items in which each one is numbered with a right stopper, a right parenthesis. Items numbered from 1) to 9) are correctly aligned and what I want is to have items 10) to 12) (for instance) be aligned in the same way, that is: (9) item number 9. (10) item number 10. (11) item number 11. (12) item number 12. in other words numbers above 10 should protrude to the left, not to the right (see the minimal example below). I am sure at some point in the past I solved this issue but I cannot find anymore how... Can anyone give insight? Another, secondary question, is: how can I make the items be numbered like: (1) item one (2) item two that is numbers are enclosed between parentheses? Thanks a lot in advance: OK %% item-sample.tex \defineconversion[exercise][\numbers] \starttext \startitemize[exercise][style=bold,stopper=)] \dorecurse{12}{\item This is question number \recurselevel.} \stopitemize \stoptext
Otared KAVIAN wrote:
Another, secondary question, is: how can I make the items be numbered like: (1) item one (2) item two that is numbers are enclosed between parentheses?
I just did this for a commercial project: \def\Withparens#1{(#1)} \defineconversion[withparens][\Withparens] \setupitemize [symbol=withparens,stopper=]
Otared, this should do the trick: \setupitemize[each][n] [margin=2em, % play with this dimension left={(}, stopper=, right={)}, alignment=left] Cheers Thomas On Nov 21, 2005, at 1:51 PM, Otared KAVIAN wrote:
HI all,
I have a rather long sequence of items in which each one is numbered with a right stopper, a right parenthesis. Items numbered from 1) to 9) are correctly aligned and what I want is to have items 10) to 12) (for instance) be aligned in the same way, that is: (9) item number 9. (10) item number 10. (11) item number 11. (12) item number 12.
in other words numbers above 10 should protrude to the left, not to the right (see the minimal example below).
I am sure at some point in the past I solved this issue but I cannot find anymore how... Can anyone give insight?
Another, secondary question, is: how can I make the items be numbered like: (1) item one (2) item two that is numbers are enclosed between parentheses?
Thanks a lot in advance: OK
%% item-sample.tex \defineconversion[exercise][\numbers] \starttext \startitemize[exercise][style=bold,stopper=)] \dorecurse{12}{\item This is question number \recurselevel.} \stopitemize \stoptext _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi Thomas and Taco,
Thanks for your help, which solves my secondary question... Actually
the following works, as suggested by Thomas:
\starttext
\setupitemize[left=(, right=), width=2em, stopper=,margin=2em]
\startitemize[n]
\item one item,
\item next item.
\item next item.
\item next item.
\stopitemize
\stoptext
where "margin=2em" is the distance of the text following "\item" to
the left margin, and "width=2em" is the width of the space reserved
around the item number. But I don't know how to arrange things to have
the item numbers aligned on the right parenthesis.
(By the way saying \startitemize[i] instead of \startitemize[n] gives
items numbered (i), (ii), etc)
Best regards: OK
On 11/21/05, Thomas A. Schmitz
Otared,
this should do the trick:
\setupitemize[each][n] [margin=2em, % play with this dimension left={(}, stopper=, right={)}, alignment=left]
Cheers
Thomas
On Nov 21, 2005, at 1:51 PM, Otared KAVIAN wrote:
HI all,
I have a rather long sequence of items in which each one is numbered with a right stopper, a right parenthesis. Items numbered from 1) to 9) are correctly aligned and what I want is to have items 10) to 12) (for instance) be aligned in the same way, that is: (9) item number 9. (10) item number 10. (11) item number 11. (12) item number 12.
in other words numbers above 10 should protrude to the left, not to the right (see the minimal example below).
I am sure at some point in the past I solved this issue but I cannot find anymore how... Can anyone give insight?
Another, secondary question, is: how can I make the items be numbered like: (1) item one (2) item two that is numbers are enclosed between parentheses?
Thanks a lot in advance: OK
%% item-sample.tex \defineconversion[exercise][\numbers] \starttext \startitemize[exercise][style=bold,stopper=)] \dorecurse{12}{\item This is question number \recurselevel.} \stopitemize \stoptext _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Sorry, I forgot one detail: On Nov 21, 2005, at 3:59 PM, Otared KAVIAN wrote:
Hi Thomas and Taco,
Thanks for your help, which solves my secondary question... Actually the following works, as suggested by Thomas:
\starttext \setupitemize[left=(, right=), width=2em, stopper=,margin=2em] \startitemize[n,inmargin] ^^^^^^^^ \item one item, \item next item. \item next item. \item next item. \stopitemize \stoptext
Is that what you're looking for?
Hi Thomas,
Many many thanks! Danke schön! Yes that was the point: "inmargin"...
Finally the simplest way of achieving my desired result seems to be:
\showframe
\starttext
\setupitemize[stopper=),margin=2.5em]
\startitemize[n,inmargin]
\dorecurse{12}{\item This is question number \recurselevel.}
\stopitemize
\stoptext
where "margin=2.5em" is obtained heuristically (for three digits items
for instance one has to say "margin=3em"). Maybe there is an elegant
method for finding automatically the amount of "margin" depending on
the maximum number of items, but I am not asking that much...
Best regards: OK
On 11/21/05, Thomas A. Schmitz
Sorry, I forgot one detail:
On Nov 21, 2005, at 3:59 PM, Otared KAVIAN wrote:
Hi Thomas and Taco,
Thanks for your help, which solves my secondary question... Actually the following works, as suggested by Thomas:
\starttext \setupitemize[left=(, right=), width=2em, stopper=,margin=2em] \startitemize[n,inmargin] ^^^^^^^^ \item one item, \item next item. \item next item. \item next item. \stopitemize \stoptext
Is that what you're looking for?
participants (3)
-
Otared KAVIAN
-
Taco Hoekwater
-
Thomas A. Schmitz