ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: MKIV: Wrong conversion for \date
Date: Mon, 4 Apr 2011 12:31:24 +0200	[thread overview]
Message-ID: <B2001D0F-CFCD-41DB-967D-0FBA1249BA77@googlemail.com> (raw)


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

                 reply	other threads:[~2011-04-04 10:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B2001D0F-CFCD-41DB-967D-0FBA1249BA77@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).