Re: [NTG-context] boldstyle for numbers in defineenumeration
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 ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
En/na Aditya Mahajan ha escrit: 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. Aditya Good news if you implement this functionality and better if it serves to debug code... I'm happy this question serves for (all of) you revise the code ,-) Regards, Xan. ___ 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 ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
En/na Xan ha escrit: Hi, Is it possible to put numerstyle=boldstyle in this enumeration?: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] For the other hand, is it possible to make it's a framed? Thanks a lot, Xan. Aditya, numberstyle=bold does not work for me. The exact code I have is: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss,numberstyle=bold] What happens? Possibly old ConTeXt version? I have ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2009.2.17 int: english/english Regards, Xan. ___ 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 ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
On Thu, 5 Mar 2009, Xan wrote: En/na Xan ha escrit: Hi, Is it possible to put numerstyle=boldstyle in this enumeration?: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] For the other hand, is it possible to make it's a framed? Thanks a lot, Xan. Aditya, numberstyle=bold does not work for me. Sorry. I should have checked. Enumerations do not have a numberstyle key. It should. You can abuse the left and right keys to get a bold number, eg. \defineenumeration [exercici] [textcolor=middlecyan, text=Exercici, headstyle=sans, left={\bgroup\bf},right={\egroup}] Hans, do you plan to rework on core-des anytime soon? It could definitely use some cleanup. Aditya ___ 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 ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
En/na Aditya Mahajan ha escrit: On Thu, 5 Mar 2009, Xan wrote: En/na Xan ha escrit: Hi, Is it possible to put numerstyle=boldstyle in this enumeration?: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss] For the other hand, is it possible to make it's a framed? Thanks a lot, Xan. Aditya, numberstyle=bold does not work for me. Sorry. I should have checked. Enumerations do not have a numberstyle key. It should. You can abuse the left and right keys to get a bold number, eg. \defineenumeration [exercici] [textcolor=middlecyan, text=Exercici, headstyle=sans, left={\bgroup\bf},right={\egroup}] Hans, do you plan to rework on core-des anytime soon? It could definitely use some cleanup. Aditya ___ 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 ___ Thanks. The textcolor does not work. I have to put in in text field. The example that works is: \defineenumeration [exercici] [text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss] Xan. ___ 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 ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
On Thu, 5 Mar 2009, Xan wrote: numberstyle=bold does not work for me. 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. Aditya ___ 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 ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
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? 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
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? Aditya ___ 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 ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
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 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] boldstyle for numbers in defineenumeration
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. Aditya ___ 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 ___