* Setting up items... @ 2005-11-21 12:51 Otared KAVIAN 2005-11-21 13:16 ` Taco Hoekwater 2005-11-21 13:35 ` Thomas A. Schmitz 0 siblings, 2 replies; 7+ messages in thread From: Otared KAVIAN @ 2005-11-21 12:51 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Setting up items... 2005-11-21 12:51 Setting up items Otared KAVIAN @ 2005-11-21 13:16 ` Taco Hoekwater 2005-11-21 13:35 ` Thomas A. Schmitz 1 sibling, 0 replies; 7+ messages in thread From: Taco Hoekwater @ 2005-11-21 13:16 UTC (permalink / raw) 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=] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Setting up items... 2005-11-21 12:51 Setting up items Otared KAVIAN 2005-11-21 13:16 ` Taco Hoekwater @ 2005-11-21 13:35 ` Thomas A. Schmitz 2005-11-21 13:51 ` Taco Hoekwater 2005-11-21 14:59 ` Otared KAVIAN 1 sibling, 2 replies; 7+ messages in thread From: Thomas A. Schmitz @ 2005-11-21 13:35 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Setting up items... 2005-11-21 13:35 ` Thomas A. Schmitz @ 2005-11-21 13:51 ` Taco Hoekwater 2005-11-21 14:59 ` Otared KAVIAN 1 sibling, 0 replies; 7+ messages in thread From: Taco Hoekwater @ 2005-11-21 13:51 UTC (permalink / raw) Thomas A. Schmitz wrote: > Otared, > > this should do the trick: > > > \setupitemize[each][n] > [margin=2em, % play with this dimension > left={(}, > stopper=, > right={)}, > alignment=left] Much nicer ... fixed my project environment. Thanks, Taco ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Setting up items... 2005-11-21 13:35 ` Thomas A. Schmitz 2005-11-21 13:51 ` Taco Hoekwater @ 2005-11-21 14:59 ` Otared KAVIAN 2005-11-21 15:40 ` Thomas A. Schmitz 1 sibling, 1 reply; 7+ messages in thread From: Otared KAVIAN @ 2005-11-21 14:59 UTC (permalink / raw) 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 <thomas.schmitz@uni-bonn.de> wrote: > 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Setting up items... 2005-11-21 14:59 ` Otared KAVIAN @ 2005-11-21 15:40 ` Thomas A. Schmitz 2005-11-21 18:24 ` Otared KAVIAN 0 siblings, 1 reply; 7+ messages in thread From: Thomas A. Schmitz @ 2005-11-21 15:40 UTC (permalink / raw) 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? ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Setting up items... 2005-11-21 15:40 ` Thomas A. Schmitz @ 2005-11-21 18:24 ` Otared KAVIAN 0 siblings, 0 replies; 7+ messages in thread From: Otared KAVIAN @ 2005-11-21 18:24 UTC (permalink / raw) 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 <thomas.schmitz@uni-bonn.de> wrote: > 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? ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-11-21 18:24 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-11-21 12:51 Setting up items Otared KAVIAN 2005-11-21 13:16 ` Taco Hoekwater 2005-11-21 13:35 ` Thomas A. Schmitz 2005-11-21 13:51 ` Taco Hoekwater 2005-11-21 14:59 ` Otared KAVIAN 2005-11-21 15:40 ` Thomas A. Schmitz 2005-11-21 18:24 ` Otared KAVIAN
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).