ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MKIV: Wrong conversion for \date
@ 2011-04-04 10:31 Wolfgang Schuster
  0 siblings, 0 replies; only message in thread
From: Wolfgang Schuster @ 2011-04-04 10:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1414 bytes --]

Hi Hans,

there are a few problems with the keywords for \date in MkIV.

\starttext

\starttabulate[|l|l|l|]
\NC keyword  \NC MkII     \NC MKIV                   \NC\NR
\NC day      \NC 4        \NC \currentdate[day]      \NC\NR
\NC day+     \NC 4        \NC \currentdate[day+]     \NC\NR
\NC month    \NC April    \NC \currentdate[month]    \NC\NR
\NC year     \NC 2011     \NC \currentdate[year]     \NC\NR
\NC d        \NC 4        \NC \currentdate[d]        \NC\NR
\NC d+       \NC 4        \NC \currentdate[d+]       \NC\NR
\NC m        \NC April    \NC \currentdate[m]        \NC\NR
\NC j        \NC 2011     \NC \currentdate[j]        \NC\NR
\NC y        \NC 2011     \NC \currentdate[y]        \NC\NR
\NC w        \NC Monday   \NC \currentdate[w]        \NC\NR
\NC dd       \NC 04       \NC \currentdate[dd]       \NC\NR
\NC dd+      \NC 4        \NC \currentdate[dd+]      \NC\NR
\NC mm       \NC 04       \NC \currentdate[mm]       \NC\NR
\NC jj       \NC 11       \NC \currentdate[jj]       \NC\NR
\NC yy       \NC 11       \NC \currentdate[yy]       \NC\NR
\NC weekday  \NC Monday   \NC \currentdate[weekday]  \NC\NR
\NC referral \NC 20110404 \NC \currentdate[referral] \NC\NR
\stoptabulate

\stoptext

What i miss is also a way to get the month with a single digit, e.g. 

  \currentdate[day,.,month,.,year]

print “4.April.2011” but i want “4.4.2011”.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2782 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-04 10:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-04 10:31 MKIV: Wrong conversion for \date Wolfgang Schuster

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).