ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Frans Goddijn" <frans@iaf.nl>
Subject: how old are we toay
Date: Sun, 20 Aug 2000 18:27:25 +0200	[thread overview]
Message-ID: <000701c00ac3$bd55ef40$3701703e@saskiaschoofs> (raw)

Hello,

This is not really urgent: I was trying to see if I could get the current date (in dutch \huidigedatum) with oldstyle numbers. 

In my setup, \os{123} yields oldstyle numbers 123

As I expected, this didn't work: \huidigedatum[\os{dag},maand,\os{jaar}]

I then tried if the code I used to have for LaTeX happened to be plain TeX but apparantly it isn't. 

any pointers?

Below is the code I used to use in LaTeX:

%--------------Old style today----------------------------------%
\def\oldtoday{{\osfamily\number\day} \ifcase\month\or
  januari\or februari\or maart\or april\or mei\or juni\or juli\or
  augustus\or september\or oktober\or november\or december\fi
  \space {\osfamily\number\year}}
%---------------------------------------------------------------%

% -------------Old style \now-----------------------------------%
% \now macro levert met \now de tijd in hh:mm
% \oldnow in oldstyle numbers
\newcount\hh \newcount\mm
\hh=\time \divide\hh by 60
\mm=\hh \multiply\mm by 60 \mm=-\mm
\advance\mm by \time
\def\now{\number\hh:\ifnum\mm<10{}0\fi\number\mm}
%\def\oldnow{{\onumscfont\number\hh:\ifnum\mm<10{}0\fi \number\mm}}
\def\oldnow{{\osfamily\number\hh:\ifnum\mm<10{}0\fi \number\mm}}
%********************************************************************

Groet!

Frans

frans@goddijn.com   www.goddijn.com
tel NL 0621-815 881   fax: 026-3211759 
Postbus 30196      6803 AD  Arnhem NL


             reply	other threads:[~2000-08-20 16:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-20 16:27 Frans Goddijn [this message]
2000-08-21 10:46 ` Hans Hagen
2000-08-27 21:35 ` Oldstyle footnotemarks Frans Goddijn
2000-08-28  7:39   ` Hans Hagen

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='000701c00ac3$bd55ef40$3701703e@saskiaschoofs' \
    --to=frans@iaf.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).