Re: [NTG-context] \date format according to ISO 8601
Hi, I wouldn't like the idea of displaying \date in ISO 8601 format. I'd rather prefer the human-readable version. The ISO 8601 is a standard for exchange of date and time-related data [1], not for text documents made for humans to read. How to get what you want is explained here [2], I think. HTH. [1] http://en.wikipedia.org/wiki/ISO_8601 [2] http://wiki.contextgarden.net/Reference/en/date Best regards, Stefan On 01.02.2011 00:03, Marco wrote: Hi, in my opinion it makes sense to display the date in ISO 8601 format. now: \date results in: January 31, 2011 ISO 8601: \date would result in: 2011–01–31 In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like \setupdate [format={year, –, mm, –, day}] Regards Marco ___ 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] \date format according to ISO 8601
On 2011-02-01 Stefan Müller warrence@gmx.de wrote: Hi, I wouldn't like the idea of displaying \date in ISO 8601 format. I'd rather prefer the human-readable version. The ISO 8601 is a standard for exchange of date and time-related data [1], not for text documents made for humans to read. How to get what you want is explained here [2], I think. HTH. No, not really. \currentdate [year, –, mm, –, dd] gives me the date in ISO 8601 format. To force consistency it makes sense to specify the date format in a *global* setup like \setupdate [format={year, –, mm, –, dd}] to avoid ugly constructions like \def\Today{\currentdate [year, –, mm, –, dd]} Regards Marco ___ 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] \date format according to ISO 8601
On Tue, Feb 1, 2011 at 00:03, Marco wrote: In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like \setupdate [format={year, –, mm, –, day}] Your question wasn't clear at first. Is this what you want? \setuplanguage[en][date={year,–,mm,–,dd}] Mojca ___ 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] \date format according to ISO 8601
On 2011-02-01 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Tue, Feb 1, 2011 at 00:03, Marco wrote: In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like \setupdate [format={year, –, mm, –, day}] Your question wasn't clear at first. Is this what you want? \setuplanguage[en][date={year,–,mm,–,dd}] Brilliant, that's exactly what I want. I didn't expect the date »hidden« in the language settings, I looked for \setupdate. Thanks Mojca Marco ___ 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] \date format according to ISO 8601
On Tue, Feb 1, 2011 at 18:38, Marco wrote: On 2011-02-01 Mojca Miklavec wrote: On Tue, Feb 1, 2011 at 00:03, Marco wrote: In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like \setupdate [format={year, –, mm, –, day}] Your question wasn't clear at first. Is this what you want? \setuplanguage[en][date={year,–,mm,–,dd}] Brilliant, that's exactly what I want. I didn't expect the date »hidden« in the language settings, I looked for \setupdate. It's because each language requires a different output, but I share your thoughts. Please leave a note at http://wiki.contextgarden.net/Reference/en/date. Mojca ___ 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] \date format according to ISO 8601
On 2011-02-01 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: Your question wasn't clear at first. Is this what you want? \setuplanguage[en][date={year,–,mm,–,dd}] Brilliant, that's exactly what I want. I didn't expect the date »hidden« in the language settings, I looked for \setupdate. It's because each language requires a different output, but I share your thoughts. Please leave a note at http://wiki.contextgarden.net/Reference/en/date. Done Marco ___ 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] \date format according to ISO 8601
Hi, in my opinion it makes sense to display the date in ISO 8601 format. now: \date results in: January 31, 2011 ISO 8601: \date would result in: 2011–01–31 In case Hans does not like this idea, is it possible to change it to make ISO 8601 the default. Something like \setupdate [format={year, –, mm, –, day}] Regards Marco ___ 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 ___