Re: [NTG-context] Enumeration numbering in the left margin
On Saturday, November 20, 2021 8:34:52 PM IST Wolfgang Schuster wrote: > Provide a complete minimal example to increase your chances for an answer. > > Wolfgang I was inspecting this just now and figured out that in one of the \defineenumeration I was inheriting another enumeration block which had the width parameter set. So I rewrote the definition without inheriting anything. Now, alternative=leftmargin works just as expected. No problems. My apologies to all for the oversight. kauśika ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Enumeration numbering in the left margin
kauśika via ntg-context schrieb am 20.11.2021 um 14:28: On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: Dear list, I have the following enumeration block. \defineenumeration[verse] \setupenumeration[verse] [alternative=leftmargin, text=, width=fit, distance=1em, way=bysection] I actually want to (flush) left align the enumeration's number inside the left margin and give it a blue color. But even if I have \setupmargindata[inleftmargin][color=bblue4,align=flushleft] there is no alignment, no color. However, if I do \setupenumeration[verse] [alternative=leftmargin, text=, width=\leftmarginwidth, headcolor=bblue4, distance=0em, way=bysection] I am able to get the desired effect. Is this the 'correct' way to do it? I mean to ask, am I doing something wrong with \setupmargindata or is this expected behaviour. Thanks, kauśika Also \setupenumeration[verse] [alternative=left, text=, headcommand=\inleftmargin, distance=0em, way=bysection] along with \setupmargindata[inleftmargin][color=bblue4,align=flushleft] achieves the required effect. So then am I using alternative=leftmargin incorrectly? Provide a complete minimal example to increase your chances for an answer. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Enumeration numbering in the left margin
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: > Dear list, > > I have the following enumeration block. > > \defineenumeration[verse] > \setupenumeration[verse] > [alternative=leftmargin, >text=, >width=fit, >distance=1em, >way=bysection] > > I actually want to (flush) left align the enumeration's number inside the > left margin and give it a blue color. But even if I have >\setupmargindata[inleftmargin][color=bblue4,align=flushleft] > there is no alignment, no color. > > However, if I do > \setupenumeration[verse] > [alternative=leftmargin, >text=, >width=\leftmarginwidth, >headcolor=bblue4, >distance=0em, >way=bysection] > I am able to get the desired effect. > > Is this the 'correct' way to do it? I mean to ask, am I doing something > wrong with \setupmargindata or is this expected behaviour. > > Thanks, > kauśika Also \setupenumeration[verse] [alternative=left, text=, headcommand=\inleftmargin, distance=0em, way=bysection] along with \setupmargindata[inleftmargin][color=bblue4,align=flushleft] achieves the required effect. So then am I using alternative=leftmargin incorrectly? Thanks, kauśika ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___