Re: [NTG-context] enumeration with the Spanish alphabet
On 11/11/2014 6:40 PM, Pablo Rodriguez wrote: Hans, enumerating using the Spanish alphabet lacks a letter between n and o, the ñ. Here is the small sample that shows the missing letter: \mainlanguage[es] \starttext \startitemize[a] \dorecurse{30}{\item \recurselevel} \stopitemize \stoptext Instead of changing the default letter series, how about adding the ñ (or Ñ) after n and before o (or after N and before O) in a new enumeration series named ñ (and Ñ). This is the correct way to enumerate with letters in Spanish (and this is used in legislation, such as in https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49). in next beta \mainlanguage[es] \startitemize[a] % spanish conversion \dorecurse{30}{\item \recurselevel} \stopitemize \startitemize[alphabetic] % default conversioon \dorecurse{30}{\item \recurselevel} \stopitemize Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] enumeration with the Spanish alphabet
On 11/11/2014 07:25 PM, Hans Hagen wrote: > On 11/11/2014 6:40 PM, Pablo Rodriguez wrote: >> Hans, >> >> enumerating using the Spanish alphabet lacks a letter between n and o, >> the ñ. >> [...] > > see core-con.lua ... we can add a spanish number sequence there ... and > also some entries in core-con.mkiv ... (look at slovenian for instance) > > then send me patches I replicated the two Slovenian ocurrences and adapted it to the Spanish language. (I also corrected a typo.) Pablo -- http://www.ousia.tk --- ctxbase/core-con.lua 2014-09-10 23:13:00.0 +0200 +++ core-con.lua 2014-11-11 21:20:07.704095640 +0100 @@ -60,6 +60,14 @@ 0x006F, 0x0070, 0x0072, 0x0073, 0x0161, 0x0074, 0x0075, 0x0076, 0x007A, 0x017E }, +['spanish'] = { +0x0061, 0x0062, 0x0063, 0x0064, 0x0065, +0x0066, 0x0067, 0x0068, 0x0069, 0x006A, +0x006B, 0x006C, 0x006D, 0x006E, 0x00F1, +0x006F, 0x0070, 0x0071, 0x0072, 0x0073, +0x0074, 0x0075, 0x0076, 0x0077, 0x0078, +0x0079, 0x007A +}, ['greek'] = { -- this should be the lowercase table -- 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, -- 0x0396, 0x0397, 0x0398, 0x0399, 0x039A, @@ -131,6 +139,7 @@ counters['gr'] = counters['greek'] counters['g']= counters['greek'] counters['sl'] = counters['slovenian'] +counters['es'] = counters['spanish'] counters['kr'] = counters['korean'] counters['kr-p'] = counters['korean-parent'] counters['kr-c'] = counters['korean-circle'] @@ -893,7 +902,7 @@ [900] = "novecientos", [1000] = "mil", [1000^2] = "millón", - [1000^3] = "mil millónes", + [1000^3] = "mil millones", [1000^4] = "billón", } ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] typeset chapter elements
I would like to vary the typesetting of chapter titles by formatting the elements chapternumber, title and the word 'chapter' myself. However, the style values of the parameter setup from \setuphead[chapter][] should be used. Needed for this is access to and/or the naming scheme of the paramters: style, textstyle, numberstyle, color, textcolor, numbercolor. To clarify further, in \def\mychaptercode#1#2{...} \setuphead[chapter][command=mychaptercode] the #1 parameter gives the chapternumber typeset in a form that is just not how I want it. Thus instead of using #1 in the code for \mychaptercode I am using \headnumber[chapter]. But then cannot imagine how to set the right style and color. Finally, how is the macro containing the expansion for the chapter,sectiion-designation recalled? It is the macro defined by for example \setuplabeltext[chapter=Hoofdstuk ]. The reference manual does not reveal this as far as I can see. Yhanks in advance for either an answer or a pointer where to find the info. Hans van der Meer ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] enumeration with the Spanish alphabet
On 11/11/2014 6:40 PM, Pablo Rodriguez wrote: Hans, enumerating using the Spanish alphabet lacks a letter between n and o, the ñ. Here is the small sample that shows the missing letter: \mainlanguage[es] \starttext \startitemize[a] \dorecurse{30}{\item \recurselevel} \stopitemize \stoptext Instead of changing the default letter series, how about adding the ñ (or Ñ) after n and before o (or after N and before O) in a new enumeration series named ñ (and Ñ). This is the correct way to enumerate with letters in Spanish (and this is used in legislation, such as in https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49). Many thanks for your help, see core-con.lua ... we can add a spanish number sequence there ... and also some entries in core-con.mkiv ... (look at slovenian for instance) then send me patches Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] enumeration with the Spanish alphabet
Hans, enumerating using the Spanish alphabet lacks a letter between n and o, the ñ. Here is the small sample that shows the missing letter: \mainlanguage[es] \starttext \startitemize[a] \dorecurse{30}{\item \recurselevel} \stopitemize \stoptext Instead of changing the default letter series, how about adding the ñ (or Ñ) after n and before o (or after N and before O) in a new enumeration series named ñ (and Ñ). This is the correct way to enumerate with letters in Spanish (and this is used in legislation, such as in https://www.boe.es/buscar/act.php?id=BOE-A-1992-28741#a49). Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] position of qed symbol in proofs
On 11/11/2014 2:55 PM, Mikael P. Sundqvist wrote: On Mon, Nov 10, 2014 at 11:22 AM, Otared Kavian wrote: On 10 Nov 2014, at 10:58, Hans Hagen wrote: […] i'm not surprised: eqno only works in a formula and closecommand is not in the formula ... it would not align properly anyway Oh… I see. So there is not anymore the possibility to finish an enumeration (such as « proof » ine Mikael’s example) with aformula and automatically get the square of qed on the right? This was possible for quite a long time, although personnally I have used it seldom. Thanks and best regards: OK ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ OK, so I will put the square there by hand from now on. you can use it but not to put *anything* you like there and expect it to behave ... i really wonder if \eqno ever worked there as it's an "embedded in formulas" command ... if it did, it was definitely a side effect Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] position of qed symbol in proofs
On Mon, Nov 10, 2014 at 11:22 AM, Otared Kavian wrote: > >> On 10 Nov 2014, at 10:58, Hans Hagen wrote: >> […] >> i'm not surprised: eqno only works in a formula and closecommand is not in >> the formula ... it would not align properly anyway > > Oh… I see. > So there is not anymore the possibility to finish an enumeration (such as « > proof » ine Mikael’s example) with aformula and automatically get the square > of qed on the right? This was possible for quite a long time, although > personnally I have used it seldom. > > Thanks and best regards: OK > ___ > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ OK, so I will put the square there by hand from now on. Best regards, Mikael ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___